@@ -122,7 +122,7 @@
{{- $isSelf := eq .RelPermalink $currentFileRelPermalink }}
{{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }}
{{- $isActive := $isSelf }}
- {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .) }}
+ {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" .) }}
{{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
{{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }}
{{- if $hidden }}
@@ -135,8 +135,8 @@
{{- $subHidden := and $relearnIsSubHiddenFrom (not $.showhidden) (not $isSelfSub) (not $isAncestorSub) }}
{{- $numberOfVisibleChildren = add $numberOfVisibleChildren (int (not $subHidden)) }}
{{- end }}
- {{- $title := partial "pageHelper/title.hugo" (dict "page" . "linkTitle" true) }}
- {{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
+ {{- $title := partial "title.gotmpl" (dict "page" . "linkTitle" true) }}
+ {{- $url := partial "permalink.gotmpl" (dict "to" .) }}
{{- safeHTML .Params.head }}
{{- if $numberOfVisibleChildren }}
{{- $isCollapsible := or (.Params.collapsibleMenu | default .Site.Params.collapsibleMenu) (not $url) }}
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 552c4e84c1..796ef7dca6 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -14,7 +14,7 @@
{{- end }}
- {{- $authorName := partialCached "authorname.hugo" . }}
+ {{- $authorName := partialCached "_relearn/authorName.gotmpl" . }}
{{- partial "twitter_cards.html" . }}
{{- partial "opengraph.html" . }}
diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html
index 124ccacb2a..534b6b5774 100644
--- a/layouts/partials/opengraph.html
+++ b/layouts/partials/opengraph.html
@@ -1,11 +1,11 @@
{{- /* based on Hugo 0.125.5 opengraph.html */}}
-
+
{{- with site.Title | plainify }}
{{- end }}
-{{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
+{{- with partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
{{- end }}
@@ -17,10 +17,10 @@
{{- end }}
-{{- if and .IsPage (not (partial "pageHelper/isRelearnSpecialPage.html" .)) }}
+{{- if and .IsPage (not (partial "_relearn/pageIsSpecial.gotmpl" .)) }}
{{- with .FirstSection }}
-
+
{{- end }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" }}
{{- with or .PublishDate .Date }}
@@ -30,7 +30,7 @@
{{- end }}
{{- range .GetTerms "tags" | first 6 }}
-
+
{{- end }}
{{- else }}
diff --git a/layouts/partials/relLangPrettyUglyURL.hugo b/layouts/partials/permalink.gotmpl
similarity index 100%
rename from layouts/partials/relLangPrettyUglyURL.hugo
rename to layouts/partials/permalink.gotmpl
diff --git a/layouts/partials/page-meta.hugo b/layouts/partials/relearn-meta.gotmpl
similarity index 97%
rename from layouts/partials/page-meta.hugo
rename to layouts/partials/relearn-meta.gotmpl
index 7f8d693c80..36efdcc43b 100644
--- a/layouts/partials/page-meta.hugo
+++ b/layouts/partials/relearn-meta.gotmpl
@@ -65,7 +65,7 @@ section: {{- .Section }}
{{- end }}
{{- end }}
- {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .node) }}
+ {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" .node) }}
{{- range $pages }}
{{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current }}
{{- end }}
diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html
index 18c54d7733..1fe3289bb7 100644
--- a/layouts/partials/schema.html
+++ b/layouts/partials/schema.html
@@ -1,5 +1,5 @@
{{- /* based on Hugo 0.125.5 schema.html */}}
-{{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
+{{- with partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
{{- end }}
@@ -36,17 +36,17 @@ Keywords precedence:
*/}}
{{- $keywords := slice }}
{{- range .GetTerms "keywords" }}
- {{- $keywords = $keywords | append (partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true) | plainify) }}
+ {{- $keywords = $keywords | append (partial "title.gotmpl" (dict "page" .Page "linkTitle" true) | plainify) }}
{{- else }}
{{- with .Keywords }}
{{- $keywords = . }}
{{- else }}
{{- range .GetTerms "tags" }}
- {{- $keywords = $keywords | append (partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true) | plainify) }}
+ {{- $keywords = $keywords | append (partial "title.gotmpl" (dict "page" .Page "linkTitle" true) | plainify) }}
{{- else }}
{{- range $taxonomy, $_ := site.Taxonomies }}
{{- range $.GetTerms $taxonomy }}
- {{- $keywords = $keywords | append (partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true) | plainify) }}
+ {{- $keywords = $keywords | append (partial "title.gotmpl" (dict "page" .Page "linkTitle" true) | plainify) }}
{{- end }}
{{- end }}
{{- end }}
diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index edcdeed866..d3f14a2755 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -1,5 +1,5 @@
{{- if not .Site.Params.disableSearch }}
- {{- $assetBusting := partialCached "assetbusting.hugo" . }}
+ {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
{{- $link := "" }}
{{- with .Site.Home.OutputFormats.Get "json" }}
{{- warnf "UNSUPPORTED usage of 'json' output format found, use 'search' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }}
@@ -17,7 +17,7 @@
{{- if not .Site.Params.disableSearchPage }}
{{- with .Site.GetPage "_relearn_searchpage" }}
- {{- $link = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
+ {{- $link = partial "permalink.gotmpl" (dict "to" .) }}
{{- end }}
{{- end }}
{{- end }}
@@ -35,7 +35,7 @@
{{- $missingcontentlangs := slice }}
{{- range $contentlangs }}
{{- $f := printf "/static/js/lunr/lunr.%s.min.js" . }}
- {{- if partialCached "fileExists.hugo" $f $f }}
+ {{- if partialCached "_relearn/fileExists.gotmpl" $f $f }}
{{- $quotedcontentlangs = $quotedcontentlangs | append (printf "'%s'" .) }}
{{- else }}
{{- $missingcontentlangs = $missingcontentlangs | append . }}
diff --git a/layouts/partials/shortcodes/children.html b/layouts/partials/shortcodes/children.html
index a7e96d66bd..b0b043948f 100644
--- a/layouts/partials/shortcodes/children.html
+++ b/layouts/partials/shortcodes/children.html
@@ -21,7 +21,7 @@
{{- with $page -}}
{{ (printf "<%s class=\"children children-%s children-sort-%s\">" $containerstyle $style $sortTerm)|safeHTML }}
- {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" . "by" $sortTerm) }}
+ {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" . "by" $sortTerm) }}
{{- template "childs" dict "menu" $pages "containerstyle" $containerstyle "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm "page" . }}
{{ (printf "%s>" $containerstyle)|safeHTML }}
{{- end }}
@@ -35,11 +35,11 @@
{{- if hasPrefix $.style "h" }}
{{- $num := sub ( int (trim $.style "h") ) 1 }}
{{- $numn := add $num $.count }}
-{{ (printf "
" $numn)|safeHTML }}{{ if .RelPermalink }}{{ .Title }}{{ else }}{{ .Title }}{{ end }}{{ (printf "" $numn)|safeHTML }}
+{{ (printf "
" $numn)|safeHTML }}{{ if .RelPermalink }}{{ .Title }}{{ else }}{{ .Title }}{{ end }}{{ (printf "" $numn)|safeHTML }}
{{- else if eq $.style "li" }}
-{{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}
{{ .Title }}{{ else }}
{{ .Title }}{{ end }}
+{{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}
{{ .Title }}{{ else }}
{{ .Title }}{{ end }}
{{- else }}
-{{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}
{{ .Title }}{{ else }}
{{ .Title }}{{ end }}{{ (printf "%s>" $.style)|safeHTML }}
+{{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}
{{ .Title }}{{ else }}
{{ .Title }}{{ end }}{{ (printf "%s>" $.style)|safeHTML }}
{{- end }}
{{- if $.description }}
{{- with or .Description .Summary -}}
@@ -51,7 +51,7 @@
{{- if eq $.style "li" }}
{{- (printf "<%s>" $.containerstyle)|safeHTML }}
{{- end }}
- {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" . "by" $.sortTerm) }}
+ {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" . "by" $.sortTerm) }}
{{- template "childs" dict "menu" $pages "containerstyle" $.containerstyle "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm "page" $page }}
{{- if eq $.style "li" }}
{{- (printf "%s>" $.containerstyle)|safeHTML }}
diff --git a/layouts/partials/shortcodes/expand.html b/layouts/partials/shortcodes/expand.html
index bb4632eedc..8ba0dc17ee 100644
--- a/layouts/partials/shortcodes/expand.html
+++ b/layouts/partials/shortcodes/expand.html
@@ -18,7 +18,7 @@
{{- if eq (printf "%T" $expanded) "string" }}
{{- $expanded = (eq $expanded "true") }}
{{- end }}
-{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $page) .id }}
+{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "_relearn/makeRandomMd5.gotmpl" $page) .id }}
{{- with $page }}
{{- if $hasContent -}}
diff --git a/layouts/partials/shortcodes/image.html b/layouts/partials/shortcodes/image.html
index 768f9d6bce..a1ff1fef5a 100644
--- a/layouts/partials/shortcodes/image.html
+++ b/layouts/partials/shortcodes/image.html
@@ -74,7 +74,7 @@
{{- $c := printf "%s%s" (cond $v "" "no") $k }}
{{- $classes = $classes | append $c }}
{{- end }}
-{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $page) .id }}
+{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "_relearn/makeRandomMd5.gotmpl" $page) .id }}
{{- $attributes = merge $attributes (dict "alt" $alt "src" $src "title" ($title | transform.HTMLEscape)) }}
{{- if $effects.lazy }}
{{- $attributes = merge $attributes (dict "loading" "lazy") }}
diff --git a/layouts/partials/shortcodes/link.html b/layouts/partials/shortcodes/link.html
index dbeaa28d8a..334eba3f11 100644
--- a/layouts/partials/shortcodes/link.html
+++ b/layouts/partials/shortcodes/link.html
@@ -62,7 +62,7 @@
{{- end }}
{{- $errorlevel := or $page.Params.link.errorlevel $page.Site.Params.link.errorlevel }}
{{- with $linkPage }}
- {{- $href = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
+ {{- $href = partial "permalink.gotmpl" (dict "to" .) }}
{{- with $u.RawQuery }}
{{- $href = printf "%s?%s" $href . }}
{{- end }}
diff --git a/layouts/partials/shortcodes/notice.html b/layouts/partials/shortcodes/notice.html
index bdb8e117f1..6299c25b80 100644
--- a/layouts/partials/shortcodes/notice.html
+++ b/layouts/partials/shortcodes/notice.html
@@ -31,7 +31,7 @@
{{- $expander = true }}
{{- end }}
{{- end }}
-{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $page) .id }}
+{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "_relearn/makeRandomMd5.gotmpl" $page) .id }}
{{- $idattribute := "" }}
{{- if $expander }}
{{- $containerclass = $containerclass | append "expand-content" }}
diff --git a/layouts/partials/shortcodes/openapi.html b/layouts/partials/shortcodes/openapi.html
index d9a8f1053b..0fed77941b 100644
--- a/layouts/partials/shortcodes/openapi.html
+++ b/layouts/partials/shortcodes/openapi.html
@@ -6,7 +6,7 @@
{{- $u := urls.Parse .src }}
{{- $src := $u.String }}
{{- $spec := "" }}
-{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $page) .id }}
+{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "_relearn/makeRandomMd5.gotmpl" $page) .id }}
{{- if not $u.IsAbs }}
{{- $path := strings.TrimPrefix "./" $u.Path }}
{{- with or
diff --git a/layouts/partials/shortcodes/tabs.html b/layouts/partials/shortcodes/tabs.html
index 8d5ff74ecd..edcba91dbd 100644
--- a/layouts/partials/shortcodes/tabs.html
+++ b/layouts/partials/shortcodes/tabs.html
@@ -3,7 +3,7 @@
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tabs' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5180" $page.File.Filename }}
{{- end }}
-{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) | plainify | anchorize }}
+{{- $groupid := .groupid | default (partial "_relearn/makeRandomMd5.gotmpl" $page) | plainify | anchorize }}
{{- $color := .color }}
{{- $style := .style }}
{{- $title := .title }}
diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
index 63bacfa418..b6abdafaf5 100644
--- a/layouts/partials/stylesheet.html
+++ b/layouts/partials/stylesheet.html
@@ -4,7 +4,7 @@
{{- else }}
{{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat..html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }}
{{- end }}
- {{- $assetBusting := partialCached "assetbusting.hugo" . }}
+ {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
{{- /* https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use */}}
@@ -12,7 +12,7 @@
- {{- $themevariants := partialCached "get-theme-variants.hugo" . }}
+ {{- $themevariants := partialCached "_relearn/themeVariants.gotmpl" . }}
{{- with index $themevariants 0 }}
@@ -20,14 +20,14 @@
{{- $f := printf "/static/css/format-%s.css" $outputFormat }}
- {{- if or (partialCached "fileExists.hugo" $f $f) (resources.Get (printf "/css/format-%s.css" $outputFormat)) }}
+ {{- if or (partialCached "_relearn/fileExists.gotmpl" $f $f) (resources.Get (printf "/css/format-%s.css" $outputFormat)) }}
{{- end }}