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/back_nav.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index be7e066b..b8e5c586 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -48,7 +48,7 @@
{{ $section_class = "site-info" }}
{{ else if in .Page.Params.category "bsd" }}
{{ $section_class = "bsd" }}
- {{ else if in .Page.Params.category "blog" }}
+ {{ else if in .Page.Params.categories "blog" }}
{{ $section_class = "blog" }}
{{ else if in .Page.Params.categories "article" }}
{{ $section_class = "article" }}
@@ -64,7 +64,7 @@
{{ else if in .Page.Params.categories "star-trek" }}
{{ $logo := resources.Get "logos/logo-startrek-white.svg" }}
<img src="{{$logo.RelPermalink}}" class="stbadge">
- {{ else if in .Page.Params.category "blog" }}
+ {{ else if in .Page.Params.categories "blog" }}
{{ $logo := resources.Get "logos/logo-blog-white.svg" }}
<img src="{{$logo.RelPermalink}}" class="blogicon">
{{ else if in .Page.Params.categories "article" }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 433233e3..827bdc96 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,6 +1,6 @@
{{ define "main" }}
- {{ if in .Page.Params.Category "blog" }}
+ {{ if in .Page.Params.Categories "blog" }}
{{ partial "partials/blog_index.html" . }}
{{ else if in .Page.Params.Categories "article" }}
{{ partial "partials/article_index.html" . }}
diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html
index c3a33717..54fbfdba 100644
--- a/layouts/partials/back_nav.html
+++ b/layouts/partials/back_nav.html
@@ -8,7 +8,7 @@
<a href="/site/">&larr; Back to Site Info</a>
{{- else if in .Page.Params.Category "bsd" }}
<a href="/bsd/">&larr; Back to Daemonic BSD Site</a>
-{{- else if in .Page.Params.Category "blog" }}
+{{- else if in .Page.Params.Categories "blog" }}
<a href="/blog/">&larr; Back to Michal's blog</a>
{{- else if in .Page.Params.Categories "article" }}
<a href="/articles/">&larr; Back to Article Library</a>