diff --git a/content b/content index 1287d32e..6ce28046 160000 --- a/content +++ b/content @@ -1 +1 @@ -Subproject commit 1287d32eed9523518785c5b54712e7e61ff2151f +Subproject commit 6ce280461e358b7a66da0dc436f9c677e3cccca8 diff --git a/hugo.yaml b/hugo.yaml index 65ef1aa9..494039dc 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -57,7 +57,7 @@ params: releaseInfo: # Note: See the new directory's /content/x.x.x./_index.md page to set release-related frontmatter variables. latest: "2.7.x" # displays matching directory's sections on home page; if blank, all directories are displayed. - patch: "2.7.4" # Used for announcements and to generate download links + patch: "2.8.0" # Used for announcements and to generate download links ## Nav features navLevel: true # displays level-2 directory items in the file tree. diff --git a/themes/pach-emdash/layouts/partials/directory.html b/themes/pach-emdash/layouts/partials/directory.html index 4b440f67..9b58116e 100644 --- a/themes/pach-emdash/layouts/partials/directory.html +++ b/themes/pach-emdash/layouts/partials/directory.html @@ -27,19 +27,16 @@ {{ template "directory" (dict "dir" .Pages "current" $.current "parent" .Parent "section" $.section "level" "2") }} {{ else }} -
- - {{ if eq $.current .RelPermalink }}👉{{else}} {{end}} {{if .Title}}{{.Title}}{{else}}{{ path.BaseName . | humanize }}{{end}} - -
+ {{ if and (not .Params.hidden) }} +
+ + {{ if eq $.current .RelPermalink }}👉{{else}} {{end}} {{if .Title}}{{.Title}}{{else}}{{ path.BaseName . | humanize }}{{end}} + +
+ {{end}} {{ end }} {{ end }} {{ end }} - - - - -{{/* todo: make logic to display pages with a new param: directory */}} \ No newline at end of file diff --git a/themes/pach-emdash/layouts/shortcodes/include.html b/themes/pach-emdash/layouts/shortcodes/include.html new file mode 100644 index 00000000..229f4392 --- /dev/null +++ b/themes/pach-emdash/layouts/shortcodes/include.html @@ -0,0 +1,6 @@ +{{ $currentPage := .Page }} +{{ $contentPath := .Get 0 }} +{{ $parentRelease := $currentPage.Param "release" }} + +{{ $p := site.GetPage (printf "%s/%s" $parentRelease $contentPath) }} +{{ $p.RenderShortcodes }} \ No newline at end of file