Update web design for blog refactor

master
Noah 5 years ago
parent d8ca3b477c
commit 66707b5242
  1. 4
      www/.layout.gohtml
  2. 20
      www/blog/tags.partial.gohtml
  3. 2
      www/guestbook.gohtml

@ -66,9 +66,9 @@
{{ template "content" . }}
{{ if and .CurrentUser.Admin .Editable }}
{{ if and .CurrentUser.Admin .Editable (ne .TemplatePath ".markdown.gohtml") }}
<p>
<strong>Admin:</strong> [<a href="/admin/editor?file={{ or .Data.MarkdownFile TemplateName }}">edit this page</a>]
<strong>Admin:</strong> [<a href="/admin/editor?file={{ .TemplatePath }}">edit this page</a>]
</p>
{{ end }}

@ -1,20 +0,0 @@
{{ if .IndexView }}
Sorted by most frequently used:
<ul class="list-unstyled">
{{ range .Tags }}
<li><a href="/tagged/{{ .Name }}">{{ .Name }}</a> ({{ .Count }})</li>
{{ end }}
</ul>
{{ else }}
<ul class="list-unstyled">
<li>&#0187; <a href="/archive">Blog Archives</a></li>
{{ range .Tags }}
{{ if ge .Count 8 }}
<li>&#0187; <a href="/tagged/{{ .Name }}">{{ .Name }}</a>
<small>({{ .Count }})</small></li>
{{ end }}
{{ end }}
<li>&#0187; <a href="/tagged">View all tags</a></li>
</ul>
{{ end }}

@ -3,6 +3,6 @@
<h1>My Guestbook</h1>
{{ RenderComments "Guestbook" "guestbook" }}
{{ RenderComments .Request "Guestbook" "guestbook" }}
{{ end }}

Loading…
Cancel
Save