okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
251 stars 134 forks source link

[content][blog] Duplicate metadata (title, date) necessary #655

Open stp-ip opened 4 years ago

stp-ip commented 4 years ago

What happened: Currently for a blog use case each article has their own directory and within 2 mandatory files. One index.md, which holds page specific metadata such as title etc. At least one content.md file with content specific metadata including title.

What you expected to happen: Only provide the title once.

Anything else we need to know?: Currently this feels quite complicated as a single file and a single title, date etc. would be helpful. On the other hand it opens up the possibility to add fragments specific to a blog post, differ between list and page title (usually shorter) and the full title accessible within the content.

Overall it feels more complex, but as we are quite modular it might be the complexity necessary. Happy for general ideas and suggestions. Maybe we need more documentation around this.

Not actionable yet and therefore marking as revisit and question.

mpourismaiel commented 4 years ago

Just to be sure, is it the fact that title in index.md doesn't render on page that is problematic or the fact that content fragment should be doing the same thing?

stp-ip commented 4 years ago

It's mostly about having to configure it twice. It's nice that one can configure it, but defaulting to the content title would be great overall. Mostly non fixable as far as I can see with current Hugo. But wanted to log it anyway.