1
0
mirror of https://github.com/kirsle/kirsle.net synced 2024-12-28 09:49:29 +00:00

Update web design for blog refactor

This commit is contained in:
Noah 2018-02-10 15:16:41 -08:00
parent d8ca3b477c
commit 66707b5242
3 changed files with 3 additions and 23 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

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