# Jekyll-Admin: Add default "New metadata fields" to New Post Template

**URL:** https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435
**Category:** Help
**Created:** [May 15, 2020, 6:15pm UTC](https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435 "2020-05-15T18:15:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Stupidscript](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@Stupidscript](https://talk.jekyllrb.com/u/Stupidscript)
#### Post date: [May 15, 2020, 6:15pm UTC](https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435/1 "2020-05-15T18:15:09Z")

</div>

In Jekyll-Admin, going to Posts =\> New Post opens the template for creating new blog posts.

The template only has the Path, Title and Content fields.

I would like to add a few default “New metadata fields”, so blog writers don’t need to.

For example, I want to add “author” and “image” metadata fields to the default template.

Thank you in advance for any assistance with helping me learn how to do that.

---

<div class="post-metadata">

### Author: ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)
#### Post date: [May 16, 2020, 3:56pm UTC](https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435/2 "2020-05-16T15:56:38Z")

</div>

Have you tried using _[front matter defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/)_?

```auto
# _config.yml
defaults:
  - scope:
      path: "" # an empty string here means all files of a type
      type: "posts"
    values:
      author: "" # empty so not nil

```

---

<div class="post-metadata">

### Author: ![Stupidscript](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@Stupidscript](https://talk.jekyllrb.com/u/Stupidscript)
#### Post date: [June 29, 2020, 6:19pm UTC](https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435/3 "2020-06-29T18:19:15Z")

</div>

Front matter defaults do generate the metadata fields, however they are disabled, so the default values can not be edited.

How can we use the front matter defaults, but have them enabled for editing?

---

<div class="post-metadata">

### Author: ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)
#### Post date: [June 30, 2020, 10:10am UTC](https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435/4 "2020-06-30T10:10:28Z")

</div>

On v0.10.0 and v0.10.1, you can manually define a new key with the same name as the front matter default setting and it will override the default on render.  
In a future release, users will be able to enable the input field for editing.

---

<div class="post-metadata">

### Author: ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)
#### Post date: [July 2, 2020, 12:43pm UTC](https://talk.jekyllrb.com/t/jekyll-admin-add-default-new-metadata-fields-to-new-post-template/4435/5 "2020-07-02T12:43:48Z")

</div>

@Stupidscript Jekyll Admin v0.10.2 has been released. It allows you to edit the front matter defaults per page.
