AmazingRise / hugo-theme-diary

Moments piled up. A Hugo theme ported from SumiMakito/hexo-theme-Journal.
MIT License
568 stars 194 forks source link

Improve default post archetypes #126

Open Darthagnon opened 2 years ago

Darthagnon commented 2 years ago

Also added "posts.md", which is a copy of "default.md", useful for people who follow the official Hugo docs (https://gohugobrasil.netlify.app/content-management/archetypes/#default-archetypes) and use commands like: $ hugo new posts/my-new-post.md

(cherry picked from commit 803facc29305bc9a16508159f576dde5c7abe2cc)

Fixed version of my earlier pull request. Includes some post metadata that is not currently used by the Diary theme, but which I hope to add support for eventually (multi-authors)

Darthagnon commented 2 years ago

If you prefer, I can remove unused metadata from template

Darthagnon commented 2 years ago

I will be going through the Wiki and adding some parts to the templates, e.g. commented out "disable TOC" option

AmazingRise commented 2 years ago

Hi, Darthagnon I think these default values may be not necessary. And there are also some unused metadata in it.

Anyway, thanks for your contribution.