summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/partials/article_index.html2
-rw-r--r--layouts/partials/back_nav.html2
4 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index fe8c5e4..00bf322 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -50,7 +50,7 @@
{{ $section_class = "bsd" }}
{{ else if in .Page.Params.category "blog" }}
{{ $section_class = "blog" }}
- {{ else if in .Page.Params.category "article" }}
+ {{ else if in .Page.Params.categories "article" }}
{{ $section_class = "article" }}
{{ end }}
<body class="{{ $section_class }}">
@@ -65,7 +65,7 @@
{{ else if in .Page.Params.category "blog" }}
{{ $logo := resources.Get "logos/logo-blog-white.svg" }}
<img src="{{$logo.RelPermalink}}" class="blogicon">
- {{ else if in .Page.Params.category "article" }}
+ {{ else if in .Page.Params.categories "article" }}
{{ $logo := resources.Get "logos/logo-article-white.svg" }}
<img src="{{$logo.RelPermalink}}" class="files">
{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c26c0c8..433233e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,7 +2,7 @@
{{ if in .Page.Params.Category "blog" }}
{{ partial "partials/blog_index.html" . }}
- {{ else if in .Page.Params.Category "article" }}
+ {{ else if in .Page.Params.Categories "article" }}
{{ partial "partials/article_index.html" . }}
{{ else }}
diff --git a/layouts/partials/article_index.html b/layouts/partials/article_index.html
index 77d6db8..2fd2837 100644
--- a/layouts/partials/article_index.html
+++ b/layouts/partials/article_index.html
@@ -1,6 +1,6 @@
{{ .Page.Content }}
{{- $article_category := slice "article" }}
-{{- range (where .Site.RegularPages ".Params.category" "intersect" $article_category) }}
+{{- range (where .Site.RegularPages ".Params.categories" "intersect" $article_category) }}
{{- partial "partials/article_list_abstract_item.html" . }}
{{- end }}
diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html
index f4d26cc..ccc520f 100644
--- a/layouts/partials/back_nav.html
+++ b/layouts/partials/back_nav.html
@@ -10,7 +10,7 @@
<a href="/bsd/">&larr; Back to Daemonic BSD Site</a>
{{- else if in .Page.Params.Category "blog" }}
<a href="/blog/">&larr; Back to Michal's blog</a>
-{{- else if in .Page.Params.Category "article" }}
+{{- else if in .Page.Params.Categories "article" }}
<a href="/articles/">&larr; Back to Article Library</a>
{{- end }}
{{- if not .Page.Params.hardback }}