From bb4641356d00ec204583fda58ba3f3376b478efd Mon Sep 17 00:00:00 2001 From: mms Date: Wed, 20 Dec 2023 23:18:22 +0100 Subject: feat: move articles to ox-hugo + gen content --- layouts/_default/baseof.html | 4 ++-- layouts/_default/list.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'layouts/_default') 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 }} @@ -65,7 +65,7 @@ {{ else if in .Page.Params.category "blog" }} {{ $logo := resources.Get "logos/logo-blog-white.svg" }} - {{ else if in .Page.Params.category "article" }} + {{ else if in .Page.Params.categories "article" }} {{ $logo := resources.Get "logos/logo-article-white.svg" }} {{ 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 }} -- cgit v1.2.3