For a while, I’ve wanted to add tag pages to the site. Today I did it, though in a quite unusual way:

  • The main tags page and the individual tag pages of specific tags are, essentially, the same page.
  • To see the posts of a specific tag, a hash with the tag name is added to the URL.
  • If the hash is present, then the full list of tags and the posts from other tags are hidden.
  • If the hash is absent, then the list of tags is shown only.
  • What is/isn’t needed in each case is hidden or unhidden using JavaScript.
  • The breadcrumbs are very important because they give you the sensation you aren’t always on the same page. They are also managed with JavaScript based on the hash provided.

This solution is enough for now. In the future, I think I will add a plugin that creates independent individual tag pages at build.