diff options
author | mms <michal@sapka.me> | 2023-12-20 23:18:22 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-12-20 23:18:22 +0100 |
commit | bb4641356d00ec204583fda58ba3f3376b478efd (patch) | |
tree | cf26e862eeb1c9f42299c505865bd560da42c4f7 /layouts/_default | |
parent | 52a93cdffe6ac624bd87f3ca4130b2f4c25fd0d1 (diff) |
feat: move articles to ox-hugo + gen content
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 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 }} |