hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit d61bee5e0916b5d2b388e66ef85c336312a21a06
parent 21ca2e9ce4255bfad2bb0576aff087a240acf70a
Author: Jonathan Ling <colonelpopcorn.jl@gmail.com>
Date:   Sun, 19 Jan 2020 08:42:27 -0500

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
Diffstat:
Aexamples/blog/layouts/categories/list.html | 26++++++++++++++++++++++++++
Dexamples/blog/layouts/indexes/category.html | 24------------------------
Mexamples/blog/layouts/partials/header.html | 6++++--
Rexamples/blog/layouts/indexes/post.html -> examples/blog/layouts/post/list.html | 0
Rexamples/blog/layouts/indexes/tag.html -> examples/blog/layouts/tags/list.html | 0
5 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/examples/blog/layouts/categories/list.html b/examples/blog/layouts/categories/list.html
@@ -0,0 +1,25 @@
+{{ partial "header.html" . }}
+
+<body>
+    {{ partial "navbar.html" . }}
+    <div class="container">
+        <div class="row">
+            <div class="col-md-9">
+                <div class="well well-sm">
+                    <strong>Items in category <code>{{ .Title | lower }}</code></strong>
+                    <ul class="list-unstyled">
+                        {{ range .Data.Pages }}
+                        {{ .Render "li" }}
+                        {{ end}}
+                    </ul>
+                </div>
+            </div>
+
+            <!-- Sidebar -->
+            <div class="col-md-3">
+                {{ partial "menu.html" . }}
+            </div>
+        </div>
+        {{ partial "footer.copyright.html" . }}
+    </div>
+    {{ 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
@@ -1,24 +0,0 @@
-{{ partial "header.html" . }}
-<body>
-{{ partial "navbar.html" . }}
-<div class="container">
-    <div class="row">
-        <div class="col-md-9">
-            <div class="well well-sm">
-                <strong>Items in category <code>{{ .Title | lower }}</code></strong>
-                <ul class="list-unstyled">
-                    {{ range .Data.Pages }}
-                        {{ .Render "li" }}
-                    {{ end}}
-                </ul>
-            </div>
-        </div>
-
-        <!-- Sidebar -->
-        <div class="col-md-3">
-        {{ partial "menu.html" . }}
-        </div>
-    </div>
-{{ partial "footer.copyright.html" . }}
-</div>
-{{ partial "footer.html" . }}
diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html
@@ -1,5 +1,6 @@
 <!doctype html>
 <html lang="en">
+
 <head>
     {{ partial "meta.html" . }}
 
@@ -7,6 +8,6 @@
     <link rel="canonical" href="{{ .Permalink }}">
     {{ partial "header.includes.html" . }}
     {{ with .OutputFormats.Get "RSS" -}}
-    {{ printf "<link href=%q rel=\"alternate\" type=%q title=%q />" .Permalink .MediaType .Title | safeHTML }}
+    {{ printf "<link href=%q rel=\"alternate\" type=%q title=%q />" .Permalink .MediaType $.Site.Title | safeHTML }}
     {{- end }}
-</head>
+</head>+
\ No newline at end of file
diff --git a/examples/blog/layouts/indexes/post.html b/examples/blog/layouts/post/list.html
diff --git a/examples/blog/layouts/indexes/tag.html b/examples/blog/layouts/tags/list.html