Opening Image
Try to organize your stuff.
Purposes
- Learn section idea with layout assignment
- Meaning of hugo type and layout keyword front matter in .md
- Meaning of hugo archetype
Hugo Section Idea
In hugo, every folder under content we call it a “section”. You have to organize your file in your own way that can reduce the extra configuration for hugo.
It’s a great design idea! I had used hexo for 1 year and publish 30+ article. It some kind of messy and hard to manage. Hexo depend on cli command to solve this problem.
What do I need?
-
Create a new archetype in /archetypes (P.S You also could crete in theme//archetype)
-
Create a new aritcle in your [path to blog root]/content/[section]
section actually is subfolder in content also
Section Template Lookup Order
You have to creat your layout template following the rules in specific directory.
Great discussion about type and layout