Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a page for each tag #26

Merged
merged 9 commits into from Jul 19, 2023
Merged

Create a page for each tag #26

merged 9 commits into from Jul 19, 2023

Conversation

Samasaur1
Copy link
Owner

@Samasaur1 Samasaur1 commented Jul 19, 2023

Closes #24.
These pages have a list of the recent posts from the blog which have been tagged with the given post. They also support a description, and may be customized with more in the future.

This PR also:

  • extracts the HTML for a post in the list of posts to an include, so it can now be used on other pages
  • shows the "last updated date" for posts that have it
  • removes the list of "posts by tag" (superseded by the tag pages) and replaces it with a list of tags, showing the number of posts tagged with that tag

These pages don't look to great at the moment, but I wanted to make sure
that I had a working version in Git.

Things to note:
- I added a plugin
- The contents of the _data/tags.yml file generate the tag pages. they
  only need a `name` field to have a page generated — use the `class`
  field only when giving a unique color. more fields can be added
- The HTML for a post in the list (with tags, date, excerpt, etc.) has
  been extracted to an include, which is used in both the main blog page
  and each tag page. You can configure which tag is used for the post
  title.
- show tags correctly on post pages
- allow capital letters in tag pages (displayname)
- improve formatting on tag pages
@Samasaur1 Samasaur1 changed the title Create a page for each tag (closes #24) Create a page for each tag Jul 19, 2023
@Samasaur1 Samasaur1 merged commit 27427e5 into main Jul 19, 2023
@Samasaur1 Samasaur1 deleted the tag-pages branch July 19, 2023 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add page for each tag
1 participant