diff --git a/themes/ananke/layouts/index.html b/themes/ananke/layouts/index.html index 4614168..c08d16a 100644 --- a/themes/ananke/layouts/index.html +++ b/themes/ananke/layouts/index.html @@ -10,12 +10,14 @@ {{/* Derive the section name */}} {{ $section_name := . }} {{/* Create a variable with that section to use in multiple places. */}} - {{ $section := where $.Site.RegularPages "Section" "in" $section_name }} + {{/* $section := where $.Site.RegularPages "Section" "in" $section_name */}} + {{ $section := $.Site.RegularPages }} {{ $section_count := len $section }} {{ if ge $section_count 1 }}
{{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}} - {{ with $.Site.GetPage "section" $section_name }} + {{/* with $.Site.GetPage "section" $section_name */}} + {{ with (dict "Title" "") }}

{{ $.Param "recent_copy" | default (i18n "recentTitle" .) }}

@@ -36,7 +38,7 @@

{{ i18n "more" }}

{{/* Now, range through the next four after the initial $n_posts items. Nest the requirements, "after" then "first" on the outside */}} - {{ range (first 4 (after $n_posts $section)) }} + {{ range (first ($.Param "other_posts_number" | default 4) (after $n_posts $section)) }}

{{ .Title }} @@ -45,9 +47,9 @@ {{ end }} {{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}} - {{ with $.Site.GetPage "section" $section_name }} +

{{ end }} diff --git a/themes/ananke/layouts/partials/page-header.html b/themes/ananke/layouts/partials/page-header.html index 3891c45..d8809f1 100644 --- a/themes/ananke/layouts/partials/page-header.html +++ b/themes/ananke/layouts/partials/page-header.html @@ -18,7 +18,7 @@ {{ else }}
-
+
{{ partial "site-navigation.html" . }}
diff --git a/themes/ananke/layouts/partials/site-footer.html b/themes/ananke/layouts/partials/site-footer.html index 8aee885..3418412 100644 --- a/themes/ananke/layouts/partials/site-footer.html +++ b/themes/ananke/layouts/partials/site-footer.html @@ -1,10 +1,10 @@ -