From d61bee5e0916b5d2b388e66ef85c336312a21a06 Mon Sep 17 00:00:00 2001 From: Jonathan Ling Date: Sun, 19 Jan 2020 08:42:27 -0500 Subject: examples: Fix blog not building The example blog had not been updated for some time and I had to restructure it a little bit. Fixes #6752 Changed tag and category directory structure --- examples/blog/layouts/categories/list.html | 25 +++++++++++++++++++++++++ examples/blog/layouts/indexes/category.html | 24 ------------------------ examples/blog/layouts/indexes/post.html | 24 ------------------------ examples/blog/layouts/indexes/tag.html | 24 ------------------------ examples/blog/layouts/partials/header.html | 5 +++-- examples/blog/layouts/post/list.html | 24 ++++++++++++++++++++++++ examples/blog/layouts/tags/list.html | 24 ++++++++++++++++++++++++ 7 files changed, 76 insertions(+), 74 deletions(-) create mode 100644 examples/blog/layouts/categories/list.html delete mode 100644 examples/blog/layouts/indexes/category.html delete mode 100644 examples/blog/layouts/indexes/post.html delete mode 100644 examples/blog/layouts/indexes/tag.html create mode 100644 examples/blog/layouts/post/list.html create mode 100644 examples/blog/layouts/tags/list.html (limited to 'examples') diff --git a/examples/blog/layouts/categories/list.html b/examples/blog/layouts/categories/list.html new file mode 100644 index 000000000..0390d77c2 --- /dev/null +++ b/examples/blog/layouts/categories/list.html @@ -0,0 +1,25 @@ +{{ partial "header.html" . }} + + + {{ partial "navbar.html" . }} +
+
+
+
+ Items in category {{ .Title | lower }} +
    + {{ range .Data.Pages }} + {{ .Render "li" }} + {{ end}} +
+
+
+ + +
+ {{ partial "menu.html" . }} +
+
+ {{ partial "footer.copyright.html" . }} +
+ {{ partial "footer.html" . }} \ No newline at end of file diff --git a/examples/blog/layouts/indexes/category.html b/examples/blog/layouts/indexes/category.html deleted file mode 100644 index 653d81964..000000000 --- a/examples/blog/layouts/indexes/category.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ partial "header.html" . }} - -{{ partial "navbar.html" . }} -
-
-
-
- Items in category {{ .Title | lower }} -
    - {{ range .Data.Pages }} - {{ .Render "li" }} - {{ end}} -
-
-
- - -
- {{ partial "menu.html" . }} -
-
-{{ partial "footer.copyright.html" . }} -
-{{ partial "footer.html" . }} diff --git a/examples/blog/layouts/indexes/post.html b/examples/blog/layouts/indexes/post.html deleted file mode 100644 index b3a835ccd..000000000 --- a/examples/blog/layouts/indexes/post.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ partial "header.html" . }} - -{{ partial "navbar.html" . }} -
-
-
-
- Blog Post Archive -
    - {{ range .Data.Pages }} - {{ .Render "li" }} - {{ end}} -
-
-
- - -
- {{ partial "menu.html" . }} -
-
-{{ partial "footer.copyright.html" . }} -
-{{ partial "footer.html" . }} diff --git a/examples/blog/layouts/indexes/tag.html b/examples/blog/layouts/indexes/tag.html deleted file mode 100644 index f59b76715..000000000 --- a/examples/blog/layouts/indexes/tag.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ partial "header.html" . }} - -{{ partial "navbar.html" . }} -
-
-
-
- Items with tag {{ .Title | lower }} -
    - {{ range .Data.Pages }} - {{ .Render "li" }} - {{ end}} -
-
-
- - -
- {{ partial "menu.html" . }} -
-
-{{ partial "footer.copyright.html" . }} -
-{{ partial "footer.html" . }} diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html index 5863e59ec..94de4c123 100644 --- a/examples/blog/layouts/partials/header.html +++ b/examples/blog/layouts/partials/header.html @@ -1,5 +1,6 @@ + {{ partial "meta.html" . }} @@ -7,6 +8,6 @@ {{ partial "header.includes.html" . }} {{ with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType .Title | safeHTML }} + {{ printf "" .Permalink .MediaType $.Site.Title | safeHTML }} {{- end }} - + \ No newline at end of file diff --git a/examples/blog/layouts/post/list.html b/examples/blog/layouts/post/list.html new file mode 100644 index 000000000..b3a835ccd --- /dev/null +++ b/examples/blog/layouts/post/list.html @@ -0,0 +1,24 @@ +{{ partial "header.html" . }} + +{{ partial "navbar.html" . }} +
+
+
+
+ Blog Post Archive +
    + {{ range .Data.Pages }} + {{ .Render "li" }} + {{ end}} +
+
+
+ + +
+ {{ partial "menu.html" . }} +
+
+{{ partial "footer.copyright.html" . }} +
+{{ partial "footer.html" . }} diff --git a/examples/blog/layouts/tags/list.html b/examples/blog/layouts/tags/list.html new file mode 100644 index 000000000..f59b76715 --- /dev/null +++ b/examples/blog/layouts/tags/list.html @@ -0,0 +1,24 @@ +{{ partial "header.html" . }} + +{{ partial "navbar.html" . }} +
+
+
+
+ Items with tag {{ .Title | lower }} +
    + {{ range .Data.Pages }} + {{ .Render "li" }} + {{ end}} +
+
+
+ + +
+ {{ partial "menu.html" . }} +
+
+{{ partial "footer.copyright.html" . }} +
+{{ partial "footer.html" . }} -- cgit v1.2.3