create: Provide .Name to the archetype templates
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Jan 2018 18:38:10 +0000 (19:38 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Jan 2018 18:41:55 +0000 (19:41 +0100)
commit863a812e07193541b42732b0e227f3d320433f01
tree45ee62687266d914a5b507bca552815db6411e4f
parentf08ea02d24d42929676756950f3affaca7fd8c01
create: Provide .Name to the archetype templates

This value will have a better suited value to base the titles on in your archetype templates when creating bundle ´index.md` type of files.

The internal template is updates, but you will have to update any custom archetype template to use the new `.Name` variable:

```bash
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
```

Fixes #4348
create/content_template_handler.go