From 66707b5242c3bba14eea177d5547ca5723f9fde5 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 10 Feb 2018 15:16:41 -0800 Subject: [PATCH] Update web design for blog refactor --- www/.layout.gohtml | 4 ++-- www/blog/tags.partial.gohtml | 20 -------------------- www/guestbook.gohtml | 2 +- 3 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 www/blog/tags.partial.gohtml diff --git a/www/.layout.gohtml b/www/.layout.gohtml index 62ed35c..b8fbba5 100644 --- a/www/.layout.gohtml +++ b/www/.layout.gohtml @@ -66,9 +66,9 @@ {{ template "content" . }} - {{ if and .CurrentUser.Admin .Editable }} + {{ if and .CurrentUser.Admin .Editable (ne .TemplatePath ".markdown.gohtml") }}

- Admin: [edit this page] + Admin: [edit this page]

{{ end }} diff --git a/www/blog/tags.partial.gohtml b/www/blog/tags.partial.gohtml deleted file mode 100644 index 560464b..0000000 --- a/www/blog/tags.partial.gohtml +++ /dev/null @@ -1,20 +0,0 @@ -{{ if .IndexView }} - Sorted by most frequently used: - - -{{ else }} - -{{ end }} diff --git a/www/guestbook.gohtml b/www/guestbook.gohtml index 50ed42e..65b1154 100644 --- a/www/guestbook.gohtml +++ b/www/guestbook.gohtml @@ -3,6 +3,6 @@

My Guestbook

-{{ RenderComments "Guestbook" "guestbook" }} +{{ RenderComments .Request "Guestbook" "guestbook" }} {{ end }}