From 7ff5415e2c2f964bdd1753d7dd3946a7ab39da40 Mon Sep 17 00:00:00 2001 From: Carson Ip Date: Sun, 19 Feb 2017 11:40:23 +0100 Subject: [PATCH] Tidy up code --- layouts/_default/list.html | 14 +------------- layouts/_default/single.html | 1 - layouts/index.html | 1 - layouts/partials/li.html | 12 ++++++++++++ 4 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 layouts/partials/li.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ed32083..921c2fc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,23 +9,11 @@
{{ range .Data.Pages }} - + {{ partial "li.html" . }} {{ end }}
{{ partial "footer.html" . }} - \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 485b7d5..e770af8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,7 +10,6 @@ {{ end }} {{ partial "footer.html" . }} - diff --git a/layouts/index.html b/layouts/index.html index 4e0f67e..6655256 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -59,7 +59,6 @@ {{ end }} {{ partial "footer.html" . }} - \ No newline at end of file diff --git a/layouts/partials/li.html b/layouts/partials/li.html new file mode 100644 index 0000000..af59671 --- /dev/null +++ b/layouts/partials/li.html @@ -0,0 +1,12 @@ +
+
+
+ +

+ {{ .Title }} +

+
+
+
\ No newline at end of file