1
0
Fork 0

Update web design for blog refactor

master
Noah 2018-02-10 15:16:41 -08:00
Ursprung d8ca3b477c
Commit 66707b5242
3 geänderte Dateien mit 3 neuen und 23 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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