diff options
author | mms <michal@sapka.me> | 2024-01-03 18:17:19 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-01-03 18:17:19 +0100 |
commit | 3dc66eecd384498f4dfce5e617bc7360dbda487a (patch) | |
tree | 7417deaead131a971a7511c46627fbea46c5fa66 /layouts/_default | |
parent | 339ba0bf872a672fea7d611343df4a6f0e14d585 (diff) |
feat: move blog to org format
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index be7e066..b8e5c58 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 433233e..827bdc9 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" . }} |