hydecorp / hydejack

A boutique Jekyll theme for hackers, nerds, and academics
https://hydejack.com
Other
1.42k stars 798 forks source link

How To Configure Displayed Blog Post Metadata #224

Closed AntsInMyEy3sJohnson closed 4 years ago

AntsInMyEy3sJohnson commented 4 years ago

Hi everyone,

I've been playing around with Hydejack recently, loving it so far. Now I have a question I have been unable to figure out for myself:

Context

I have a bunch of blog posts that use the blog layout, i. e. there is an index.html file contained in their root directory, as explained in this piece of documentation. Because I want to write blog posts on different topics, posts on one topic go into a dedicated directory sitting at the Jekyll root (for example, [root]/software-engineering. Each post has a category configured in its Front Matter, as well as a couple of tags.

Problem

The default behavior for how blog post metadata gets generated seems to work like so:

[date] in [local folder] / [category] on [list of all tags]

In my case, this yields something like the following:

28 Jul 2020 in Software-engineering / Software engineering on Software systems, Orthogonality, Coupling, Cohesion

Software-engineering is not spelled like this in English, and I also don't like how the first word in each tag is capitalized, but the second one isn't. Therefore:

Question

How can I configure the way the blog post metadata is created? Most importantly, I'd like to disable the inclusion of the local directory within the metadata because that couples the underlying folder structure to the way the content stored therein is presented to readers -- a coupling that, in my opinion, is undesirable.

qwtel commented 4 years ago

You can create a featured category (see docs) and give it an arbitrary name.

https://hydejack.com/docs/basics/#adding-a-category-or-tag

Sent from my iPhone

On 02.08.2020, at 20:52, AntsInMyEy3sJohnson notifications@github.com wrote:  Hi everyone,

I've been playing around with Hydejack recently, loving it so far. Now I have a question I have been unable to figure out for myself:

Context

I have a bunch of blog posts that use the blog layout, i. e. there is an index.html file contained in their root directory, as explained in this piece of documentation. Because I want to write blog posts on different topics, posts on one topic go into a dedicated directory sitting at the Jekyll root (for example, [root]/software-engineering. Each post has a category configured in its Front Matter, as well as a couple of tags.

Problem

The default behavior for how blog post metadata gets generated seems to work like so:

[date] in [local folder] / [category] on [list of all tags]

In my case, this yields something like the following:

28 Jul 2020 in Software-engineering / Software engineering on Software systems, Orthogonality, Coupling, Cohesion

Software-engineering is not spelled like this in English, and I also don't like how the first word in each tag is capitalized, but the second one isn't. Therefore:

Question

How can I configure the way the blog post metadata is created? Most importantly, I'd like to disable the inclusion of the local directory within the metadata because that couples the underlying folder structure to the way the content stored therein is presented to readers -- a coupling that, in my opinion, is undesirable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

AntsInMyEy3sJohnson commented 4 years ago

Cool, this has solved my problem. Thanks!