blog/root/.markdown.gohtml

15 lines
319 B
Plaintext
Raw Normal View History

{{ define "title" }}{{ .Data.Title }}{{ end }}
{{ define "content" }}
2023-01-27 18:23:45 +00:00
<div class="markdown">
{{ .Data.HTML }}
2023-01-27 18:23:45 +00:00
</div>
{{ 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 }}