Browse Source

Update web design for blog refactor

master
Noah Petherbridge 2 years ago
parent
commit
66707b5242
3 changed files with 3 additions and 23 deletions
  1. +2
    -2
      www/.layout.gohtml
  2. +0
    -20
      www/blog/tags.partial.gohtml
  3. +1
    -1
      www/guestbook.gohtml

+ 2
- 2
www/.layout.gohtml 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 }}



+ 0
- 20
www/blog/tags.partial.gohtml 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 }}

+ 1
- 1
www/guestbook.gohtml View File

@@ -3,6 +3,6 @@

<h1>My Guestbook</h1>

{{ RenderComments "Guestbook" "guestbook" }}
{{ RenderComments .Request "Guestbook" "guestbook" }}

{{ end }}

Loading…
Cancel
Save