diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-28 19:38:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-28 19:41:55 +0100 |
commit | 863a812e07193541b42732b0e227f3d320433f01 (patch) | |
tree | 45ee62687266d914a5b507bca552815db6411e4f /resource | |
parent | f08ea02d24d42929676756950f3affaca7fd8c01 (diff) |
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
Diffstat (limited to 'resource')
0 files changed, 0 insertions, 0 deletions