Myvideo

Guest

Login

Archetypes | Hugo - Static Site Generator | Tutorial 8

Uploaded By: Myvideo
1 view
0
0 votes
0

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.

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later