Draft: Initial content #11

Open
savau wants to merge 28 commits from content into restructure
2 changed files with 10 additions and 1 deletions
Showing only changes of commit 2be63d85a8 - Show all commits

View File

@ -192,8 +192,12 @@ main =
, constField "route" navRoute
, listField "posts" (constField "tag" tag' <> constField "route" navRoute <> postContext) (metadataSort =<< mapM load ids)
]
tagNavTemplate
| length ids > 1 = "templates/tag-nav.html"
| otherwise = "templates/tag-nav-singleton.html"
tagItem'
>>= loadAndApplyTemplate "templates/tag-nav.html" tagNavCtx
>>= loadAndApplyTemplate tagNavTemplate tagNavCtx
>>= normalizeUrls
postContext =
mconcat

View File

@ -0,0 +1,5 @@
<li class="nav-link">
<a class="nav-link" href="$route$">
$title$
</a>
</li>