Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Tweak how category URLs and labels work

Compare
Choose a tag to compare
@seanh seanh released this 01 Jan 18:29
· 85 commits to master since this release
c1b941c
Since Jekyll itself puts categories in URLs, it's up to the user to
design category names so that they make pretty URLs. Jekyll won't
downcase category names or replace spaces. So you have to name your
category "example-category" not "Example Category".

If an /example-category/ page exists, though, allow this page's title to
be used as the label when linking to the category, instead of the
category name itself.

With tags it's different since Jekyll doesn't allow those in permalink
URLs. So "Example Tag" with capitals and spaces is fine. The theme
itself converts that to /tags/example-tag/ when finding the tag page.