1

I have a set of tags in my posts.

For example in posts/somepost.md:

---
name: Some Post
tags: ["tag_a", "tag_b"]
---

I would like to render pages based on the tags dynamically. Like: tags/tag_a.html, tags/tag_b.html, etcetera. Of course, the content of those pages will contain the posts with those tags.

How is this called in Jekyll, and/or what would be a workaround to achieve this?

Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
  • You use plugin like this one : https://github.com/pattex/jekyll-tagging – David Jacquel May 04 '18 at 14:57
  • You can also create a collection with the tags and refer to them very easily in a CMS like CloudCannon. That is more in line with the Jekyll architecture IMO. – Mr. Hugo May 06 '18 at 08:10
  • Thanks, I agree @JoostS, can I somehow capture the collection on rendering the page to create custom pages? – Bob van Luijt May 06 '18 at 11:51
  • Collections create pages by default. Just make sure `output` is set to `true` in the _config.yml (again: default). – Mr. Hugo May 06 '18 at 21:33

0 Answers0