Browse Source

Fix edit link for Wiki pages

master
Noah Petherbridge 3 years ago
parent
commit
72bf6ad621
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      www/.layout.gohtml

+ 6
- 0
www/.layout.gohtml View File

@@ -62,6 +62,12 @@

{{ template "content" . }}

{{ if and .CurrentUser.Admin .Editable }}
<p>
<strong>Admin:</strong> [<a href="/admin/editor?file={{ or .Data.MarkdownFile TemplateName }}">edit this page</a>]
</p>
{{ end }}

<div class="k-copyright">
Copyright &copy; {{ Now.Format "2006" }} Noah Petherbridge &mdash; All rights reserved<br>
Hosted by <a href="https://www.digitalocean.com/?refcode=ea01734d3fc7">DigitalOcean</a><br>


Loading…
Cancel
Save