diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/back_nav.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 7 |
3 files changed, 8 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b8e5c58..d17c92e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -46,6 +46,8 @@ {{ $section_class = "star-trek" }} {{ else if in .Page.Params.category "site-info" }} {{ $section_class = "site-info" }} + {{ else if in .Page.Params.categories "site" }} + {{ $section_class = "site-info" }} {{ else if in .Page.Params.category "bsd" }} {{ $section_class = "bsd" }} {{ else if in .Page.Params.categories "blog" }} diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html index 54fbfdb..2f81cfd 100644 --- a/layouts/partials/back_nav.html +++ b/layouts/partials/back_nav.html @@ -6,6 +6,8 @@ <a href="/star-trek/">← back to Space Cadet Log</a> {{- else if in .Page.Params.Category "site-info" }} <a href="/site/">← Back to Site Info</a> +{{- else if in .Page.Params.Categories "site" }} + <a href="/site/">← Back to Site Info</a> {{- else if in .Page.Params.Category "bsd" }} <a href="/bsd/">← Back to Daemonic BSD Site</a> {{- else if in .Page.Params.Categories "blog" }} diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html index 959ebf5..027f3bd 100644 --- a/layouts/shortcodes/recent-updates.html +++ b/layouts/shortcodes/recent-updates.html @@ -5,12 +5,13 @@ <nav> {{- range - (where .Site.RegularPages ".Params.category" "intersect" $filter).ByDate.Reverse }} + (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByDate.Reverse }} {{ partial "partials/article_list_item.html" . }} {{- end }} - + {{- range - (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByDate.Reverse }} + (where .Site.RegularPages ".Params.category" "intersect" $filter).ByDate.Reverse }} {{ partial "partials/article_list_item.html" . }} {{- end }} + </nav> |