Add extra meta data to new .md files

I hope I worded that title correctly.

At the moment, when I create a new article it gives me

---
title: "_Index"
date: 2017-11-11T13:36:11Z
draft: false
---

at the top of the page. However, My theme uses several tags from the page and I have to manually type them in every time. It’s getting a little tedious.

Is there a way to have Hugo generate extra meta data on new page creation? so I could have something like:

---
title: "_Index"
date: 2017-11-11T13:36:11Z
draft: false
ogimage: ""
ogtitle: ""
seotitle: ""
author: ""
---

Thanks in advance :slight_smile:

yeah, search the docs for archetypes -

1 Like

Perfect, thank you.

@jamesgdev just a little tip for making lifes easier: If you submit code in the forum please put it in tickmarks like

This code is in between ``` and ``` tickmarks

This line starts with a single tickmark and ends with a single tickmark

Hope this helps, Leo

1 Like

Did not know. Thank you. I have edited the original.

Check out this related thread on Markdown formatting.

Now that looks cool - great