reuse frontmatter functions
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="content">
|
||||
<h1>Settings</h1>
|
||||
<form>
|
||||
{{ template "frontmatter" .Settings }}
|
||||
{{ template "frontmatter" . }}
|
||||
</form>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user