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:
parent
d8ca3b477c
commit
66707b5242
|
@ -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>» <a href="/archive">Blog Archives</a></li>
|
||||
{{ range .Tags }}
|
||||
{{ if ge .Count 8 }}
|
||||
<li>» <a href="/tagged/{{ .Name }}">{{ .Name }}</a>
|
||||
<small>({{ .Count }})</small></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<li>» <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…
Reference in New Issue
Block a user