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

Taxonomies #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

theorangepotato
Copy link
Contributor

This adds support for taxonomies to Minimal Academic, as requested in issue #1. The last commit, which adds RSS links to taxonomy pages, is very optional, I just stylistically prefer it.

@Programazing
Copy link

@theorangepotato If someone was to implement this how would they use it? Does it display tags on a post page? Does it show a list page of the taxonomies and which blog posts use them?

@theorangepotato
Copy link
Contributor Author

These are good questions, sorry I didn't make this more clear. Currently, this is a pretty minimal implementation of taxonomies. There is no global declaration of categories or tags, but each post has its categories/tags listed in the metadata. These taxonomies are displayed in the post metadata next to the date, so they would appear both in lists (like /blog) and at the top of posts. For example, your post's markdown metadata could include:

categories:
- test
tags:
- one
- two

which would then look like this:

screenshot from 2019-02-18 20-56-35

Now, if you click on any of those taxonomy links, for instance test, it would take you to a taxonomy page that lists all posts with that taxonomy.

screenshot from 2019-02-18 20-58-57

This would allow you to group posts together, but would not be a very intrusive feature. Currently there are no meta taxonomy pages (pages that list all categories/tags), though that could be a feature that is implemented, if there is the desire.

Hopefully that answers all of your questions.

@Programazing
Copy link

Ahh, I see where I went wrong now.

I was using categories: "test" not

categories:
- test

@theorangepotato
Copy link
Contributor Author

Ah, yeah, that makes sense. There are several formats, and the one you tried is the TOML syntax to define new taxonomies (like, in addition to contegories and tags).

The default minimal-academic frontmatter is YAML, though.

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.

2 participants