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.
|
|