From 734cbbd1817c04a865c03efb1a09102ba8ef70dc Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 25 May 2021 00:04:43 +0200 Subject: [PATCH] Remove about column in blog posts and fix case menu visibility in non blog posts --- .../chosto/layouts/{page => _default}/single.html | 15 +++++---------- themes/chosto/layouts/partials/about.html | 3 --- 2 files changed, 5 insertions(+), 13 deletions(-) rename themes/chosto/layouts/{page => _default}/single.html (77%) delete mode 100644 themes/chosto/layouts/partials/about.html diff --git a/themes/chosto/layouts/page/single.html b/themes/chosto/layouts/_default/single.html similarity index 77% rename from themes/chosto/layouts/page/single.html rename to themes/chosto/layouts/_default/single.html index 401fa4a..e6035c8 100644 --- a/themes/chosto/layouts/page/single.html +++ b/themes/chosto/layouts/_default/single.html @@ -4,9 +4,9 @@ If the current page is a blog post and belongs to a case, we will add a side menu with all other blog posts belonging to that case, emphasis to the current. --> - {{ if (and .IsPage (eq .FirstSection "posts"))}} + {{ if (and .IsPage (eq .FirstSection.Section "posts"))}} {{ with .CurrentSection }} - - {{ if (and .IsPage (eq .FirstSection "posts"))}} - - {{ end }} {{ end }} diff --git a/themes/chosto/layouts/partials/about.html b/themes/chosto/layouts/partials/about.html deleted file mode 100644 index 16b8828..0000000 --- a/themes/chosto/layouts/partials/about.html +++ /dev/null @@ -1,3 +0,0 @@ -