Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content
Submodule content updated 1309 files
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 7 additions & 10 deletions themes/pach-emdash/layouts/partials/directory.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,16 @@
{{ template "directory" (dict "dir" .Pages "current" $.current "parent" .Parent "section" $.section "level" "2") }}
</div>
{{ else }}
<div class="c-ml-2 ml-3 {{if (eq $.section.Title .CurrentSection.Title) }}{{else}}closed-folder{{end}}">

<a class="xs thin" href="{{ .RelPermalink }}">{{ if eq $.current .RelPermalink }}👉{{else}} {{end}} {{if .Title}}{{.Title}}{{else}}{{ path.BaseName . | humanize }}{{end}}</a>

</div>
{{ if and (not .Params.hidden) }}
<div class="c-ml-2 ml-3 {{if (eq $.section.Title .CurrentSection.Title) }}{{else}}closed-folder{{end}}">

<a class="xs thin" href="{{ .RelPermalink }}">{{ if eq $.current .RelPermalink }}👉{{else}} {{end}} {{if .Title}}{{.Title}}{{else}}{{ path.BaseName . | humanize }}{{end}}</a>

</div>
{{end}}
{{ end }}
{{ end }}

{{ end }}

</section>




{{/* todo: make logic to display pages with a new param: directory */}}
6 changes: 6 additions & 0 deletions themes/pach-emdash/layouts/shortcodes/include.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ $currentPage := .Page }}
{{ $contentPath := .Get 0 }}
{{ $parentRelease := $currentPage.Param "release" }}

{{ $p := site.GetPage (printf "%s/%s" $parentRelease $contentPath) }}
{{ $p.RenderShortcodes }}