reuse frontmatter functions

This commit is contained in:
Henrique Dias
2015-09-14 14:42:48 +01:00
parent 0d9c1fa6ef
commit 0bf1182c91
4 changed files with 90 additions and 94 deletions

View File

@@ -4,8 +4,8 @@
<h2>{{ splitCapitalize $value.Name }}</h2>
{{ template "frontmatter" $value.Content }}
{{ else}}
<label for="{{ $value.Master }}_{{ $value.Name }}">{{ splitCapitalize $value.Name }}</label>
<input name="{{ $value.Master }}_{{ $value.Name }}" id="{{ $value.Master }}_{{ $value.Name }}" value="{{ $value.Content }}"></input><br>
<label for="{{ $value.Tag }}">{{ splitCapitalize $value.Name }}</label>
<input name="{{ $value.Tag }}" id="{{ $value.Tag }}" value="{{ $value.Content }}"></input><br>
{{ end }}
{{ end }}
{{ end }}