wikingo/templates/page.html

16 lines
438 B
HTML
Raw Permalink Normal View History

2022-03-22 16:36:18 +01:00
{{define "title"}}
Wikingo - {{ .page.Name }}
{{end}}
{{define "body"}}
<h1>{{ .page.Name }}</h1>
{{ .html | safeHTML }}
2022-03-22 16:36:18 +01:00
<hr />
2022-03-28 17:14:01 +02:00
<a href="/{{ .page.Name }}/{{ .page.Version }}/edit">Edit</a>
2022-04-04 22:16:07 +02:00
{{ if gt .page.Version 1 }}
<a href="/{{ .page.Name }}/history">History</a>
{{ end }}
2022-03-22 16:36:18 +01:00
<p style="float: right">Last modified: {{ .page.UpdatedAt }}</p>
<p style="float: right">*{{ .page.Version }}*</p>
{{end}}