summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorJonathan Ling <[email protected]>2020-01-19 08:42:27 -0500
committerBjørn Erik Pedersen <[email protected]>2020-01-19 14:42:27 +0100
commitd61bee5e0916b5d2b388e66ef85c336312a21a06 (patch)
tree9f32573bfdb31680142a3d06aea27a0f0bb86741 /examples
parent21ca2e9ce4255bfad2bb0576aff087a240acf70a (diff)
downloadhugo-d61bee5e0916b5d2b388e66ef85c336312a21a06.tar.gz
hugo-d61bee5e0916b5d2b388e66ef85c336312a21a06.zip
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 (limited to 'examples')
-rw-r--r--examples/blog/layouts/categories/list.html25
-rw-r--r--examples/blog/layouts/indexes/category.html24
-rw-r--r--examples/blog/layouts/partials/header.html5
-rw-r--r--examples/blog/layouts/post/list.html (renamed from examples/blog/layouts/indexes/post.html)0
-rw-r--r--examples/blog/layouts/tags/list.html (renamed from examples/blog/layouts/indexes/tag.html)0
5 files changed, 28 insertions, 26 deletions
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" . }}
+
+<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
deleted file mode 100644
index 653d81964..000000000
--- a/examples/blog/layouts/indexes/category.html
+++ /dev/null
@@ -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
index 5863e59ec..94de4c123 100644
--- 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
index b3a835ccd..b3a835ccd 100644
--- 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
index f59b76715..f59b76715 100644
--- a/examples/blog/layouts/indexes/tag.html
+++ b/examples/blog/layouts/tags/list.html