Archetypes | Hugo - Static Site Generator | Tutorial 8
When you create a new page using the hugo new command, Hugo automatically populates the page with several front matter attributes. By default you get the title, date and a draft attribute. But what if you want to add more attributes by default. For example if you wanted to store the author of a page in the front matter on all your pages. Hugo has a way where you can define what the default front matter will be on each page. You can create a configuration file called an archetype.
1 view
1417
444
2 weeks ago 00:01:57 1
WE ARE NOT POLYPHIA (with @Lova_Lit)
2 weeks ago 00:06:52 1
Детали The Witcher 4 и Far Cry 7, анонс Bendy: Lone Wolf, успехи Marvel Rivals, геймплей Exodus…
2 months ago 00:00:17 1
Jack Sparrow VS Joseph Joestar (Pirates of the Caribbean VS Jojo Bizzare Adventure) | FAN MADE