apply all metadata parsers to content also

This commit is contained in:
Sarah Vaupel 2023-11-29 13:29:58 +01:00
parent cb876c0acc
commit 203a3722b4
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ tags:
- index - index
- about - about
sort: 9999 sort: 9999
show: "False"
--- ---
# Unsere Partner # Unsere Partner

View File

@ -197,7 +197,7 @@ main =
fmap (fromMaybe tag') . runMaybeT . asum $ fmap (fromMaybe tag') . runMaybeT . asum $
map (\itemId -> MaybeT $ getMetadataField itemId "title") tagItems' map (\itemId -> MaybeT $ getMetadataField itemId "title") tagItems'
, constField "route" navRoute , constField "route" navRoute
, listField "posts" (constField "tag" tag' <> constField "route" navRoute <> postContext) (metadataSort =<< mapM load ids) , listField "posts" (constField "tag" tag' <> constField "route" navRoute <> postContext) (metadata =<< mapM load ids)
] ]
tagNavTemplate tagNavTemplate