blog/root/.markdown.gohtml

13 lines
289 B
Plaintext
Raw Permalink Normal View History

{{ define "title" }}{{ .Data.Title }}{{ end }}
{{ define "content" }}
{{ .Data.HTML }}
{{ if and .CurrentUser.Admin .Editable }}
<p class="mt-4">
<strong>Admin:</strong> [<a href="/admin/editor?file={{ .Data.MarkdownPath }}">edit this page</a>]
</p>
{{ end }}
{{ end }}