You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in my layout category_archives.html how do I get the category being displayed to use in the title?
SOLVED I used {{ page.posts[0].categories[0] }} to grab the category being listed. Leaving this here if someone else needs this ... or if someone knows a better way. Thanks!
want to use different layouts for different categories (like /category/cat1/ and /category/cat2/ with completely different layouts) I think this is not supported
simply want to access the category name inside the layout, you can use page.title, as stated in the docs.
Regarding "Type-specific layouts"
site.com/categories
works using my definedlayout:
But how do I specify the layout for
site.com/categories/category1
?It lists posts with
category1
but I don't see how to customize the layout.The text was updated successfully, but these errors were encountered: