theme: broadly renaming template files #891

This commit is contained in:
Sören Weber 2024-08-29 12:28:34 +02:00
parent 0c8efa7699
commit 8692fc4988
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
61 changed files with 124 additions and 124 deletions

View file

@ -1,15 +1,15 @@
{{- partialCached "page-meta.hugo" . .RelPermalink }} {{- partialCached "relearn-meta.gotmpl" . .RelPermalink }}
{{- $pages := slice }} {{- $pages := slice }}
{{- range .Site.Pages }} {{- range .Site.Pages }}
{{- if partial "pageHelper/isRelearnSpecialPage.html" . }} {{- if partial "_relearn/pageIsSpecial.gotmpl" . }}
{{- else if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }} {{- else if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
{{- $tags := slice }} {{- $tags := slice }}
{{- range .GetTerms "tags" }} {{- range .GetTerms "tags" }}
{{- $tags = $tags | append (partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true) | plainify) }} {{- $tags = $tags | append (partial "title.gotmpl" (dict "page" .Page "linkTitle" true) | plainify) }}
{{- end }} {{- end }}
{{- $pages = $pages | append (dict {{- $pages = $pages | append (dict
"uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "uri" (partial "permalink.gotmpl" (dict "to" .))
"title" (partial "pageHelper/title.hugo" (dict "page" .) | plainify) "title" (partial "title.gotmpl" (dict "page" .) | plainify)
"tags" $tags "tags" $tags
"breadcrumb" (trim (partial "breadcrumbs.html" (dict "page" . "dirOnly" true) | plainify | htmlUnescape) "\n\r\t ") "breadcrumb" (trim (partial "breadcrumbs.html" (dict "page" . "dirOnly" true) | plainify | htmlUnescape) "\n\r\t ")
"description" (trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " ) "description" (trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " )

View file

@ -1,3 +1,3 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . -}} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
@import "{{ printf "%s-%s.css%s" .prefix .light $assetBusting }}" screen and (prefers-color-scheme: light); @import "{{ printf "%s-%s.css%s" .prefix .light $assetBusting }}" screen and (prefers-color-scheme: light);
@import "{{ printf "%s-%s.css%s" .prefix .dark $assetBusting }}" screen and (prefers-color-scheme: dark); @import "{{ printf "%s-%s.css%s" .prefix .dark $assetBusting }}" screen and (prefers-color-scheme: dark);

View file

@ -1,4 +1,4 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . -}} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
@import "{{ printf "theme-%s.css%s" .themevariant.identifier $assetBusting }}"; @import "{{ printf "theme-%s.css%s" .themevariant.identifier $assetBusting }}";
@import "{{ printf "chroma-%s.css%s" .themevariant.chroma $assetBusting }}"; @import "{{ printf "chroma-%s.css%s" .themevariant.chroma $assetBusting }}";

View file

@ -1,2 +1,2 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . -}} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
@import "{{ printf "format-print.css%s" $assetBusting }}"; @import "{{ printf "format-print.css%s" $assetBusting }}";

View file

@ -1,4 +1,4 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . -}} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
/* Styles to make Swagger-UI fit into our theme */ /* Styles to make Swagger-UI fit into our theme */
@import "{{ printf "fonts.css%s" $assetBusting }}"; @import "{{ printf "fonts.css%s" $assetBusting }}";

View file

@ -1,4 +1,4 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . -}} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
/* this file is here for compatiblity with older installations /* this file is here for compatiblity with older installations
use theme-relearn-light instead */ use theme-relearn-light instead */
@import "{{ printf "theme-relearn-light.css%s" $assetBusting }}"; @import "{{ printf "theme-relearn-light.css%s" $assetBusting }}";

View file

@ -1,4 +1,4 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
<span class="github-buttons"></span> <span class="github-buttons"></span>
<p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn" title="love"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p> <p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn" title="love"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p>
<script> <script>

View file

@ -1,10 +1,10 @@
{{- partialCached "page-meta.hugo" . .RelPermalink }} {{- partialCached "relearn-meta.gotmpl" . .RelPermalink }}
{{- .Store.Set "relearnOutputFormat" "notfound" -}} {{- .Store.Set "relearnOutputFormat" "notfound" -}}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ .Page.Language.LanguageCode }}" dir="{{ .Page.Language.LanguageDirection | default (T "Reading-direction") | default "ltr" }}" itemscope itemtype="http://schema.org/Article"> <html lang="{{ .Page.Language.LanguageCode }}" dir="{{ .Page.Language.LanguageDirection | default (T "Reading-direction") | default "ltr" }}" itemscope itemtype="http://schema.org/Article">
<head> <head>
{{- partial "meta.html" . }} {{- partial "meta.html" . }}
{{- $title := partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }} {{- $title := partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) }}
<title>{{ $title }}</title> <title>{{ $title }}</title>
{{- /* because this file can be called from literally any URL inside your project, we need to base all relative URLs to make them work */}} {{- /* because this file can be called from literally any URL inside your project, we need to base all relative URLs to make them work */}}
@ -14,7 +14,7 @@
{{- partial "stylesheet.html" . }} {{- partial "stylesheet.html" . }}
{{- partial "custom-header.html" . }} {{- partial "custom-header.html" . }}
</head> </head>
<body class="mobile-support {{ with .Store.Get "relearnOutputFormat" }}{{ . }}{{ else }}html{{ end }}" data-url="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}"> <body class="mobile-support {{ with .Store.Get "relearnOutputFormat" }}{{ . }}{{ else }}html{{ end }}" data-url="{{ partial "permalink.gotmpl" (dict "to" .) }}">
<div id="R-body" class="default-animation"> <div id="R-body" class="default-animation">
<main id="R-body-inner" class="highlightable chapter" tabindex="-1"> <main id="R-body-inner" class="highlightable chapter" tabindex="-1">
<div class="flex-block-wrapper"> <div class="flex-block-wrapper">
@ -24,7 +24,7 @@
<p></p> <p></p>
<p>{{ T "message-404" }}</p> <p>{{ T "message-404" }}</p>
<p></p> <p></p>
<p><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Site.Home) }}">{{ T "Go-to-homepage" }}</a></p> <p><a href="{{ partial "permalink.gotmpl" (dict "to" .Site.Home) }}">{{ T "Go-to-homepage" }}</a></p>
<p id="shrug"> <p id="shrug">
<svg xmlns="http://www.w3.org/2000/svg" <svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512.000000 512.000000" viewBox="0 0 512.000000 512.000000"

View file

@ -1,4 +1,4 @@
{{- partialCached "page-meta.hugo" . .RelPermalink -}} {{- partialCached "relearn-meta.gotmpl" . .RelPermalink -}}
<!DOCTYPE html> <!DOCTYPE html>
{{- block "storeOutputFormat" . }}{{ end }} {{- block "storeOutputFormat" . }}{{ end }}
{{- if eq . .Site.Sites.First.Home }} {{- if eq . .Site.Sites.First.Home }}
@ -13,16 +13,16 @@
<html lang="{{ .Page.Language.LanguageCode }}" dir="{{ .Page.Language.LanguageDirection | default (T "Reading-direction") | default "ltr" }}" itemscope itemtype="http://schema.org/Article"> <html lang="{{ .Page.Language.LanguageCode }}" dir="{{ .Page.Language.LanguageDirection | default (T "Reading-direction") | default "ltr" }}" itemscope itemtype="http://schema.org/Article">
<head> <head>
{{- partial "meta.html" . }} {{- partial "meta.html" . }}
{{- $title := partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }} {{- $title := partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) }}
<title>{{ $title }}</title> <title>{{ $title }}</title>
{{- /* multilingual stuff */}} {{- /* multilingual stuff */}}
{{- if .IsTranslated -}} {{- if .IsTranslated -}}
{{- range $index, $trans := .AllTranslations }} {{- range $index, $trans := .AllTranslations }}
{{- if eq $index 0 }} {{- if eq $index 0 }}
<link href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}" rel="alternate" hreflang="x-default"> <link href="{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}" rel="alternate" hreflang="x-default">
{{- end }} {{- end }}
<link href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}" rel="alternate" hreflang="{{ .Language.LanguageCode }}"> <link href="{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}" rel="alternate" hreflang="{{ .Language.LanguageCode }}">
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -33,9 +33,9 @@
{{- $link := "<link href=\"%s\" rel=\"%s\" type=\"%s\" title=\"%s\">" }} {{- $link := "<link href=\"%s\" rel=\"%s\" type=\"%s\" title=\"%s\">" }}
{{- range .AlternativeOutputFormats }} {{- range .AlternativeOutputFormats }}
{{- if eq .Rel "canonical" }} {{- if eq .Rel "canonical" }}
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} {{ (printf $link (partial "permalink.gotmpl" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
{{- else if not (partial "pageHelper/isRelearnSpecialPage.html" $page) }} {{- else if not (partial "_relearn/pageIsSpecial.gotmpl" $page) }}
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }} {{ (printf $link (partial "permalink.gotmpl" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -44,7 +44,7 @@
{{- partial "dependencies.html" (dict "page" . "location" "header") }} {{- partial "dependencies.html" (dict "page" . "location" "header") }}
{{- partial "custom-header.html" . }} {{- partial "custom-header.html" . }}
</head> </head>
<body class="mobile-support {{ with .Store.Get "relearnOutputFormat" }}{{ . }}{{ else }}html{{ end }}{{- if .Site.Params.disableInlineCopyToClipBoard }} disableInlineCopyToClipboard{{ end }}{{- if .Site.Params.disableHoverBlockCopyToClipBoard }} disableHoverBlockCopyToClipBoard{{ end }}" data-url="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}"> <body class="mobile-support {{ with .Store.Get "relearnOutputFormat" }}{{ . }}{{ else }}html{{ end }}{{- if .Site.Params.disableInlineCopyToClipBoard }} disableInlineCopyToClipboard{{ end }}{{- if .Site.Params.disableHoverBlockCopyToClipBoard }} disableHoverBlockCopyToClipBoard{{ end }}" data-url="{{ partial "permalink.gotmpl" (dict "to" .) }}">
<div id="R-body" class="default-animation"> <div id="R-body" class="default-animation">
<div id="R-body-overlay"></div> <div id="R-body-overlay"></div>
<nav id="R-topbar"> <nav id="R-topbar">
@ -60,7 +60,7 @@
</ol> </ol>
{{- else }} {{- else }}
<span class="topbar-breadcrumbs highlightable"> <span class="topbar-breadcrumbs highlightable">
{{ partial "pageHelper/title.hugo" (dict "page" . "linkTitle" true) }} {{ partial "title.gotmpl" (dict "page" . "linkTitle" true) }}
</span> </span>
{{- end }} {{- end }}
<div class="topbar-area topbar-area-end" data-area="end"> <div class="topbar-area topbar-area-end" data-area="end">
@ -77,7 +77,7 @@
{{- partial "custom-comments.html" . }} {{- partial "custom-comments.html" . }}
</div> </div>
{{- block "menu" . }}{{ end }} {{- block "menu" . }}{{ end }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
<script src="{{"js/clipboard.min.js" | relURL}}{{ $assetBusting }}" defer></script> <script src="{{"js/clipboard.min.js" | relURL}}{{ $assetBusting }}" defer></script>
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ $assetBusting }}" defer></script> <script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ $assetBusting }}" defer></script>
{{- partial "dependencies.html" (dict "page" . "location" "footer") }} {{- partial "dependencies.html" (dict "page" . "location" "footer") }}

View file

@ -1,5 +1,5 @@
{{- /* based on Hugo 0.125.5 rss.xml */}} {{- /* based on Hugo 0.125.5 rss.xml */}}
{{- partialCached "page-meta.hugo" . .RelPermalink }} {{- partialCached "relearn-meta.gotmpl" . .RelPermalink }}
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} {{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
{{- $authorEmail := "" }} {{- $authorEmail := "" }}
{{- if and .Site.Params.author (reflect.IsMap .Site.Params.author) .Site.Params.author.email }} {{- if and .Site.Params.author (reflect.IsMap .Site.Params.author) .Site.Params.author.email }}
@ -15,7 +15,7 @@
{{- end }} {{- end }}
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} {{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := partialCached "authorname.hugo" . }} {{- $authorName := partialCached "_relearn/authorName.gotmpl" . }}
{{- $pages := .Pages }} {{- $pages := .Pages }}
{{- $limit := .Site.Config.Services.RSS.Limit }} {{- $limit := .Site.Config.Services.RSS.Limit }}
@ -27,8 +27,8 @@
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>{{ partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }}</title> <title>{{ partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) }}</title>
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link> <link>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</link>
<description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description> <description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }} <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
@ -37,12 +37,12 @@
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "rss" }} {{- with .OutputFormats.Get "rss" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" ( partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true)) .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" ( partial "permalink.gotmpl" (dict "to" . "abs" true)) .MediaType | safeHTML }}
{{- end }} {{- end }}
{{- range $pages }} {{- range $pages }}
{{- $visible := true }} {{- $visible := true }}
{{- $relearnIsHiddenFrom := index ($page.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }} {{- $relearnIsHiddenFrom := index ($page.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
{{- if partial "pageHelper/isRelearnSpecialPage.html" . }} {{- if partial "_relearn/pageIsSpecial.gotmpl" . }}
{{- $visible = false }} {{- $visible = false }}
{{- else if or (eq .Kind "taxonomy") (eq .Kind "term") }} {{- else if or (eq .Kind "taxonomy") (eq .Kind "term") }}
{{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableTagHiddenPages true) ) }} {{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableTagHiddenPages true) ) }}
@ -51,11 +51,11 @@
{{- end }} {{- end }}
{{- if $visible }} {{- if $visible }}
<item> <item>
<title>{{ partial "pageHelper/title.hugo" (dict "page" .) }}</title> <title>{{ partial "title.gotmpl" (dict "page" .) }}</title>
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link> <link>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</link>
<pubDate>{{ (or .PublishDate .Date).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ (or .PublishDate .Date).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</guid> <guid>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</guid>
<description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description> <description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description>
</item> </item>
{{- end }} {{- end }}

View file

@ -1,17 +1,17 @@
{{- /* based on Hugo 0.125.5 sitemap.xml */}} {{- /* based on Hugo 0.125.5 sitemap.xml */}}
{{- partialCached "page-meta.hugo" . .RelPermalink }} {{- partialCached "relearn-meta.gotmpl" . .RelPermalink }}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{- range where .Pages "Sitemap.Disable" "ne" true }} {{- range where .Pages "Sitemap.Disable" "ne" true }}
{{- if partial "pageHelper/isRelearnSpecialPage.html" . }} {{- if partial "_relearn/pageIsSpecial.gotmpl" . }}
{{- else if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) }} {{- else if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) }}
<url> <url>
<loc>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</loc>{{ if not .Lastmod.IsZero }} <loc>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }} <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range $index, $trans := .AllTranslations }}{{- if eq $index 0 }} <priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range $index, $trans := .AllTranslations }}{{- if eq $index 0 }}
<xhtml:link rel="alternate" hreflang="x-default" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}" />{{ end }} <xhtml:link rel="alternate" hreflang="x-default" href="{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}" />{{ end }}
<xhtml:link rel="alternate" hreflang="{{ .Language.LanguageCode }}" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}" />{{ end }}{{ end }} <xhtml:link rel="alternate" hreflang="{{ .Language.LanguageCode }}" href="{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}" />{{ end }}{{ end }}
</url> </url>
{{- end -}} {{- end -}}
{{- end }} {{- end }}

View file

@ -9,15 +9,15 @@
{{- $url = replace $url "//" "/" }} {{- $url = replace $url "//" "/" }}
{{- with site.Home.GetPage $url }} {{- with site.Home.GetPage $url }}
{{- /* if defaultContentLanguageInSubdir=false we are ending here for home page of the default language */}} {{- /* if defaultContentLanguageInSubdir=false we are ending here for home page of the default language */}}
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- $url = partial "permalink.gotmpl" (dict "to" .) }}
{{- else }} {{- else }}
{{- $url_alt := replaceRE "^/[^/]*(/.*)" "${1}" $url }} {{- $url_alt := replaceRE "^/[^/]*(/.*)" "${1}" $url }}
{{- with site.Home.GetPage $url_alt }} {{- with site.Home.GetPage $url_alt }}
{{- /* if defaultContentLanguageInSubdir=true we are ending here for home page */}} {{- /* if defaultContentLanguageInSubdir=true we are ending here for home page */}}
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- $url = partial "permalink.gotmpl" (dict "to" .) }}
{{- else }} {{- else }}
{{- /* for regular aliases we are ending here with no original page found */}} {{- /* for regular aliases we are ending here with no original page found */}}
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "link" $url) }} {{- $url = partial "permalink.gotmpl" (dict "link" $url) }}
{{- end }} {{- end }}
{{- end }} {{- end }}
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -3,7 +3,7 @@
{{- $depth := .depth | default 0 }} {{- $depth := .depth | default 0 }}
{{- with $page.Parent }} {{- with $page.Parent }}
{{- $depth = add $depth 1 }} {{- $depth = add $depth 1 }}
{{- partial "pageHelper/depth.hugo" (dict "page" . "depth" $depth) }} {{- partial "_relearn/pageDepth.gotmpl" (dict "page" . "depth" $depth) }}
{{- else }} {{- else }}
{{- $depth }} {{- $depth }}
{{- end }} {{- end }}

View file

@ -33,7 +33,7 @@
{{- $filtered_pages := slice }} {{- $filtered_pages := slice }}
{{- range $pages }} {{- range $pages }}
{{- if not (partial "pageHelper/isRelearnSpecialPage.html" .) }} {{- if not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
{{- $filtered_pages = $filtered_pages | append . }} {{- $filtered_pages = $filtered_pages | append . }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -8,7 +8,7 @@
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if $count }} {{- if $count }}
{{- $pages = $pages| append (dict "Title" (partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true)) "Page" .Page "Count" $count )}} {{- $pages = $pages| append (dict "Title" (partial "title.gotmpl" (dict "page" .Page "linkTitle" true)) "Page" .Page "Count" $count )}}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- $pages = sort $pages ".Title" }} {{- $pages = sort $pages ".Title" }}

View file

@ -125,7 +125,7 @@ Chroma auto run:
{{- end }} {{- end }}
{{- with resources.Get "css/variant.css" }} {{- with resources.Get "css/variant.css" }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "relearn/assetbusting.hugo" . }}
{{- $variantcontent := print `@import "variables.css` $assetBusting `";` "\n\n" .Content }} {{- $variantcontent := print `@import "variables.css` $assetBusting `";` "\n\n" .Content }}
{{- range $page.Site.Params.boxStyle }} {{- range $page.Site.Params.boxStyle }}
{{- $identifier := upper .identifier }} {{- $identifier := upper .identifier }}

View file

@ -3,11 +3,11 @@
<header class="headline"> <header class="headline">
</header> </header>
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} {{- $title := partial "title.gotmpl" (dict "page" .) }}
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1> <h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
{{- .Content }} {{- .Content }}
{{- $lastCapital := "" }} {{- $lastCapital := "" }}
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }} {{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . . }}
{{- range $pages }} {{- range $pages }}
{{- $capital := substr .Title 0 1 | upper }} {{- $capital := substr .Title 0 1 | upper }}
{{- if ne $lastCapital $capital }} {{- if ne $lastCapital $capital }}
@ -18,7 +18,7 @@
<ul class="columnize"> <ul class="columnize">
{{- end }} {{- end }}
{{- /* display terms of a taxonomy */}} {{- /* display terms of a taxonomy */}}
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a> ({{ .Count }})</li> <li><a href="{{ partial "permalink.gotmpl" (dict "to" .Page) }}">{{ .Title }}</a> ({{ .Count }})</li>
{{- $lastCapital = $capital }} {{- $lastCapital = $capital }}
{{- end }} {{- end }}
{{- if ne $lastCapital "" }} {{- if ne $lastCapital "" }}

View file

@ -3,11 +3,11 @@
<header class="headline"> <header class="headline">
</header> </header>
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} {{- $title := partial "title.gotmpl" (dict "page" .) }}
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1> <h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
{{- .Content }} {{- .Content }}
{{- $lastCapital := "" }} {{- $lastCapital := "" }}
{{- $pages := partialCached "partials/pageHelper/termPages.html" . . }} {{- $pages := partialCached "partials/_relearn/pagesTerm.gotmpl" . . }}
{{- range $pages }} {{- range $pages }}
{{- $capital := substr .Title 0 1 | upper }} {{- $capital := substr .Title 0 1 | upper }}
{{- if ne $lastCapital $capital }} {{- if ne $lastCapital $capital }}
@ -22,7 +22,7 @@
{{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }} {{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }}
{{- $breadcrumb = trim (partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true) | plainify | htmlUnescape) "\n\r\t " }} {{- $breadcrumb = trim (partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true) | plainify | htmlUnescape) "\n\r\t " }}
{{- end }} {{- end }}
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a>{{ with $breadcrumb }}<div class="breadcrumbs highlightable" title="{{ . }}">{{ . }}</div>{{ end }}</li> <li><a href="{{ partial "permalink.gotmpl" (dict "to" .Page) }}">{{ .Title }}</a>{{ with $breadcrumb }}<div class="breadcrumbs highlightable" title="{{ . }}">{{ . }}</div>{{ end }}</li>
{{- $lastCapital = $capital }} {{- $lastCapital = $capital }}
{{- end }} {{- end }}
{{- if ne $lastCapital "" }} {{- if ne $lastCapital "" }}

View file

@ -6,7 +6,7 @@
{{- with .sect }} {{- with .sect }}
{{- $isSelf := eq .RelPermalink $currentFileRelPermalink }} {{- $isSelf := eq .RelPermalink $currentFileRelPermalink }}
{{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }} {{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }}
{{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .) }} {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" .) }}
{{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }} {{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
{{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }} {{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }}
{{- if $hidden }} {{- if $hidden }}
@ -29,11 +29,11 @@
{{- $currentNode := .currentnode }} {{- $currentNode := .currentnode }}
{{- with .sect }} {{- with .sect }}
{{- $page := . }} {{- $page := . }}
{{- partialCached "nested-content.hugo" $page $page.RelPermalink }} {{- partialCached "_relearn/nestedContent.gotmpl" $page $page.RelPermalink }}
{{- range $page.Site.Params.relearn.dependencies }} {{- range $page.Site.Params.relearn.dependencies }}
{{- $has := printf "has%s" .name }} {{- $has := printf "has%s" .name }}
{{- $hasnested := printf "relearnHasNested%s" .name }} {{- $hasnested := printf "relearnHasNested%s" .name }}
{{- $currentNode.Page.Store.Set $hasnested (or ($currentNode.Page.Store.Get $hasnested) ($page.Page.Store.Get $has)) }} {{- $currentNode.Page.Store.Set $hasnested (or ($currentNode.Page.Store.Get $hasnested) ($page.Page.Store.Get $has)) }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -1,20 +1,20 @@
{{- $page := .page }} {{- $page := .page }}
{{- $to := $page }} {{- $to := $page }}
{{- $pageurl := partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }} {{- $pageurl := partial "permalink.gotmpl" (dict "to" $page) }}
{{- $lasturl := partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }} {{- $lasturl := partial "permalink.gotmpl" (dict "to" $page) }}
{{- if .dirOnly }} {{- if .dirOnly }}
{{- $page = $page.Parent }} {{- $page = $page.Parent }}
{{- $to = $page }} {{- $to = $page }}
{{- $lasturl = partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }} {{- $lasturl = partial "permalink.gotmpl" (dict "to" $page) }}
{{- end }} {{- end }}
{{- $depth := add 1 (int (partial "pageHelper/depth.hugo" (dict "page" $page))) }} {{- $depth := add 1 (int (partial "_relearn/pageDepth.gotmpl" (dict "page" $page))) }}
{{- if .page.Site.Params.disableRootBreadcrumb }} {{- if .page.Site.Params.disableRootBreadcrumb }}
{{- $depth = add $depth -1 }} {{- $depth = add $depth -1 }}
{{- end }} {{- end }}
{{- $breadcrumb := slice }} {{- $breadcrumb := slice }}
{{- range seq $depth }} {{- range seq $depth }}
{{- if $to }} {{- if $to }}
{{- if partial "pageHelper/isRelearnSpecialPage.html" $to }} {{- if partial "_relearn/pageIsSpecial.gotmpl" $to }}
{{- break }} {{- break }}
{{- else if or $to.Title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }} {{- else if or $to.Title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }}
{{- $breadcrumb = $breadcrumb | append $to }} {{- $breadcrumb = $breadcrumb | append $to }}
@ -33,8 +33,8 @@
{{- range $i, $e := $breadcrumbReversed }} {{- range $i, $e := $breadcrumbReversed }}
{{- $to := $e }} {{- $to := $e }}
{{- $depth = add $depth 1 }} {{- $depth = add $depth 1 }}
{{- $title := partial "pageHelper/title.hugo" (dict "page" $to "linkTitle" true) }} {{- $title := partial "title.gotmpl" (dict "page" $to "linkTitle" true) }}
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }} {{- $url := partial "permalink.gotmpl" (dict "to" $to) }}
{{- $isPage := eq $url $pageurl }} {{- $isPage := eq $url $pageurl }}
{{- $isLast := eq $url $lasturl }} {{- $isLast := eq $url $lasturl }}
{{- $link := and $url (not $isPage) }} {{- $link := and $url (not $isPage) }}

View file

@ -1,4 +1,4 @@
{{- /* the following check avoids to print out content of headless bundles if called from nested-content.html */}} {{- /* the following check avoids to print out content of headless bundles if called from nested-content.html */}}
{{- if partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- if partial "permalink.gotmpl" (dict "to" .) }}
{{- .Content }} {{- .Content }}
{{- end }} {{- end }}

View file

@ -2,7 +2,7 @@
{{- $location := .location }} {{- $location := .location }}
{{- if eq $location "footer" }} {{- if eq $location "footer" }}
{{- with $page }} {{- with $page }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
{{- $init := "{}" }} {{- $init := "{}" }}
{{- if isset .Params "mathjaxinitialize" }} {{- if isset .Params "mathjaxinitialize" }}
{{- $init = .Params.mathJaxInitialize }} {{- $init = .Params.mathJaxInitialize }}

View file

@ -2,7 +2,7 @@
{{- $location := .location }} {{- $location := .location }}
{{- if eq $location "footer" }} {{- if eq $location "footer" }}
{{- with $page }} {{- with $page }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
<script src="{{"js/d3/d3-color.min.js" | relURL}}{{ $assetBusting }}" defer></script> <script src="{{"js/d3/d3-color.min.js" | relURL}}{{ $assetBusting }}" defer></script>
<script src="{{"js/d3/d3-dispatch.min.js" | relURL}}{{ $assetBusting }}" defer></script> <script src="{{"js/d3/d3-dispatch.min.js" | relURL}}{{ $assetBusting }}" defer></script>
<script src="{{"js/d3/d3-drag.min.js" | relURL}}{{ $assetBusting }}" defer></script> <script src="{{"js/d3/d3-drag.min.js" | relURL}}{{ $assetBusting }}" defer></script>

View file

@ -2,7 +2,7 @@
{{- $location := .location }} {{- $location := .location }}
{{- if eq $location "footer" }} {{- if eq $location "footer" }}
{{- with $page }} {{- with $page }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
<script src="{{"js/js-yaml.min.js" | relURL}}{{ $assetBusting }}" defer></script> <script src="{{"js/js-yaml.min.js" | relURL}}{{ $assetBusting }}" defer></script>
{{- $urlOpenapi := "" }} {{- $urlOpenapi := "" }}
{{- $relOpenapi := "" }} {{- $relOpenapi := "" }}

View file

@ -1,4 +1,4 @@
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
{{- $faviconMatch := false }} {{- $faviconMatch := false }}
{{- $svg := dict "ext" "svg" "type" "type=\"image/svg+xml\"" }} {{- $svg := dict "ext" "svg" "type" "type=\"image/svg+xml\"" }}
{{- $png := dict "ext" "png" "type" "type=\"image/png\"" }} {{- $png := dict "ext" "png" "type" "type=\"image/png\"" }}

View file

@ -1,2 +1,2 @@
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} {{- $title := partial "title.gotmpl" (dict "page" .) }}
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1> <h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>

View file

@ -41,7 +41,7 @@
} }
} }
</style> </style>
<a id="R-logo" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Site.Home) }}"> <a id="R-logo" href="{{ partial "permalink.gotmpl" (dict "to" .Site.Home) }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.044 64.044"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.044 64.044">
<path d="M46.103 136.34c-.642-.394-1.222-2.242-1.98-2.358-.76-.117-1.353.506-1.618 1.519-.266 1.012-.446 4.188.173 5.538.213.435.482.787 1.03.845.547.057.967-.504 1.45-1.027.482-.523.437-.9 1.142-.612.705.289 1.051.4 1.586 1.229.535.828 1.085 4.043.868 5.598-.241 1.458-.531 2.8-.59 4.088.26.075.517.148.772.217 2.68.724 5.373 1.037 7.873.02.001-.028.01-.105.008-.11-.048-.165-.18-.41-.36-.698-.18-.29-.414-.645-.586-1.114a3.212 3.212 0 0 1-.125-1.735c.056-.21.153-.342.249-.475 1.237-1.193 2.932-1.373 4.244-1.384.557-.004 1.389.016 2.198.255.809.239 1.706.724 2.068 1.843.187.578.114 1.17-.043 1.623-.153.438-.369.783-.545 1.091-.178.31-.329.6-.401.821-.007.02-.003.071-.005.094 2.256 1.008 4.716.91 7.189.398.55-.114 1.11-.247 1.673-.377.344-1.085.678-2.145.852-3.208.124-.752.158-2.311-.078-3.538-.118-.613-.306-1.15-.52-1.489-.221-.349-.413-.501-.747-.538-.243-.027-.51.013-.796.098-.67.223-1.33.606-1.966.76l-.008.002-.109.032c-.556.152-1.233.158-1.797-.36-.556-.51-.89-1.367-1.117-2.596-.283-1.528-.075-3.279.89-4.518l.071-.09h.07c.65-.71 1.485-.802 2.16-.599.706.213 1.333.629 1.772.84.736.354 1.185.319 1.475.171.291-.148.5-.439.668-.955.332-1.017.301-2.819.022-4.106-.148-.684-.13-1.292-.13-1.883-1.558-.463-3.067-.982-4.574-1.208-1.128-.169-2.263-.173-3.298.164-.13.046-.256.095-.38.15-.373.164-.633.342-.805.52-.077.098-.081.105-.087.21-.004.068.031.289.13.571.1.282.256.634.467 1.03.279.524.448 1.063.431 1.618a2.12 2.12 0 0 1-.499 1.309 1.757 1.757 0 0 1-.62.51h-.002c-.515.291-1.107.404-1.723.464-.86.083-1.787.026-2.598-.097-.806-.123-1.47-.28-1.948-.555-.444-.256-.79-.547-1.037-.925a2.273 2.273 0 0 1-.356-1.301c.029-.837.403-1.437.625-1.897.111-.23.191-.433.236-.583.045-.15.044-.25.046-.24-.005-.029-.127-.355-1.015-.741-1.138-.495-2.322-.673-3.533-.668h-.015a9.711 9.711 0 0 0-.521.016h-.002c-1.163.057-2.35.308-3.541.569.383 1.531.79 2.753.818 4.502-.096 1.297.158 2.114-1.03 2.935-.85.588-1.508.729-2.15.335" style="fill:#282828;fill-opacity:1;stroke:none;stroke-width:1.03763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="translate(-40.698 -95.175)"/> <path d="M46.103 136.34c-.642-.394-1.222-2.242-1.98-2.358-.76-.117-1.353.506-1.618 1.519-.266 1.012-.446 4.188.173 5.538.213.435.482.787 1.03.845.547.057.967-.504 1.45-1.027.482-.523.437-.9 1.142-.612.705.289 1.051.4 1.586 1.229.535.828 1.085 4.043.868 5.598-.241 1.458-.531 2.8-.59 4.088.26.075.517.148.772.217 2.68.724 5.373 1.037 7.873.02.001-.028.01-.105.008-.11-.048-.165-.18-.41-.36-.698-.18-.29-.414-.645-.586-1.114a3.212 3.212 0 0 1-.125-1.735c.056-.21.153-.342.249-.475 1.237-1.193 2.932-1.373 4.244-1.384.557-.004 1.389.016 2.198.255.809.239 1.706.724 2.068 1.843.187.578.114 1.17-.043 1.623-.153.438-.369.783-.545 1.091-.178.31-.329.6-.401.821-.007.02-.003.071-.005.094 2.256 1.008 4.716.91 7.189.398.55-.114 1.11-.247 1.673-.377.344-1.085.678-2.145.852-3.208.124-.752.158-2.311-.078-3.538-.118-.613-.306-1.15-.52-1.489-.221-.349-.413-.501-.747-.538-.243-.027-.51.013-.796.098-.67.223-1.33.606-1.966.76l-.008.002-.109.032c-.556.152-1.233.158-1.797-.36-.556-.51-.89-1.367-1.117-2.596-.283-1.528-.075-3.279.89-4.518l.071-.09h.07c.65-.71 1.485-.802 2.16-.599.706.213 1.333.629 1.772.84.736.354 1.185.319 1.475.171.291-.148.5-.439.668-.955.332-1.017.301-2.819.022-4.106-.148-.684-.13-1.292-.13-1.883-1.558-.463-3.067-.982-4.574-1.208-1.128-.169-2.263-.173-3.298.164-.13.046-.256.095-.38.15-.373.164-.633.342-.805.52-.077.098-.081.105-.087.21-.004.068.031.289.13.571.1.282.256.634.467 1.03.279.524.448 1.063.431 1.618a2.12 2.12 0 0 1-.499 1.309 1.757 1.757 0 0 1-.62.51h-.002c-.515.291-1.107.404-1.723.464-.86.083-1.787.026-2.598-.097-.806-.123-1.47-.28-1.948-.555-.444-.256-.79-.547-1.037-.925a2.273 2.273 0 0 1-.356-1.301c.029-.837.403-1.437.625-1.897.111-.23.191-.433.236-.583.045-.15.044-.25.046-.24-.005-.029-.127-.355-1.015-.741-1.138-.495-2.322-.673-3.533-.668h-.015a9.711 9.711 0 0 0-.521.016h-.002c-1.163.057-2.35.308-3.541.569.383 1.531.79 2.753.818 4.502-.096 1.297.158 2.114-1.03 2.935-.85.588-1.508.729-2.15.335" style="fill:#282828;fill-opacity:1;stroke:none;stroke-width:1.03763;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="translate(-40.698 -95.175)"/>
<path d="M61.472 101.34v.002c-.3-.003-.603.01-.894.04-.544.055-1.39.165-1.778.306-1.238.364.13 2.344.41 2.913.28.569.285 2.03.14 2.134-.144.103-.375.261-.934.345-.56.084.03-.037-1.589.086-1.62.122-5.506.29-8.265.248-.022.26-.036.521-.097.808-.309 1.442-.63 3.163-.494 4.074.071.473.168.65.414.8.23.14.737.235 1.62-.004.834-.227 1.3-.442 1.887-.456.595-.016 1.555.472 1.965.717.411.245-.03-.008.002 0s.128.05.176.102c.049.053-.276-.523.104.199.379.721.72 3.256.002 4.68-.46.913-1.01 1.49-1.64 1.711-.63.22-1.229.067-1.734-.135-.881-.353-1.584-.7-2.205-.647-1.199 1.94-1.186 4.17-.6 6.602.097.397.212.814.327 1.23 2.68-.556 5.542-1.016 8.337.132 1.064.437 1.73 1.015 1.902 1.857.169.831-.193 1.508-.438 1.986-.122.238-.23.46-.307.642-.07.164-.096.28-.104.324.069.429.309.723.686.945.385.227.89.355 1.35.423.723.104 1.567.152 2.287.086.693-.064 1.032-.338 1.241-.544a2.447 2.447 0 0 0 .303-.437.175.175 0 0 0 .013-.035c-.004-.066-.037-.246-.195-.527-.46-.816-.87-1.595-.817-2.51.028-.476.218-.938.529-1.288.304-.343.698-.586 1.186-.79 1.442-.606 2.96-.609 4.372-.409 1.525.216 2.963.679 4.378 1.083.226-2.09.784-3.9.592-5.77-.058-.565-.287-1.333-.598-1.827-.32-.508-.59-.717-1.036-.642-.648.11-1.472.935-2.707 1.078-.791.092-1.494-.267-1.95-.86-.45-.583-.678-1.335-.78-2.101-.202-1.525.031-3.229.89-4.27.615-.747 1.45-.887 2.15-.74.687.145 1.307.492 1.857.745v-.002c.546.252 1.033.388 1.281.344a.547.547 0 0 0 .353-.188c.113-.124.242-.35.384-.75.604-1.712.206-3.68-.303-5.654-.667.145-1.336.293-2.018.413-1.341.236-2.73.392-4.136.273-.656-.055-1.695-.085-2.58-.476-.442-.195-.903-.514-1.157-1.093-.259-.591-.205-1.313.08-2.014.223-.64 1.082-2.178.692-2.585-.391-.407-1.651-.56-2.554-.571z" style="fill:#282828;fill-opacity:1;stroke:none;stroke-width:.992837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="translate(-40.698 -95.175)"/> <path d="M61.472 101.34v.002c-.3-.003-.603.01-.894.04-.544.055-1.39.165-1.778.306-1.238.364.13 2.344.41 2.913.28.569.285 2.03.14 2.134-.144.103-.375.261-.934.345-.56.084.03-.037-1.589.086-1.62.122-5.506.29-8.265.248-.022.26-.036.521-.097.808-.309 1.442-.63 3.163-.494 4.074.071.473.168.65.414.8.23.14.737.235 1.62-.004.834-.227 1.3-.442 1.887-.456.595-.016 1.555.472 1.965.717.411.245-.03-.008.002 0s.128.05.176.102c.049.053-.276-.523.104.199.379.721.72 3.256.002 4.68-.46.913-1.01 1.49-1.64 1.711-.63.22-1.229.067-1.734-.135-.881-.353-1.584-.7-2.205-.647-1.199 1.94-1.186 4.17-.6 6.602.097.397.212.814.327 1.23 2.68-.556 5.542-1.016 8.337.132 1.064.437 1.73 1.015 1.902 1.857.169.831-.193 1.508-.438 1.986-.122.238-.23.46-.307.642-.07.164-.096.28-.104.324.069.429.309.723.686.945.385.227.89.355 1.35.423.723.104 1.567.152 2.287.086.693-.064 1.032-.338 1.241-.544a2.447 2.447 0 0 0 .303-.437.175.175 0 0 0 .013-.035c-.004-.066-.037-.246-.195-.527-.46-.816-.87-1.595-.817-2.51.028-.476.218-.938.529-1.288.304-.343.698-.586 1.186-.79 1.442-.606 2.96-.609 4.372-.409 1.525.216 2.963.679 4.378 1.083.226-2.09.784-3.9.592-5.77-.058-.565-.287-1.333-.598-1.827-.32-.508-.59-.717-1.036-.642-.648.11-1.472.935-2.707 1.078-.791.092-1.494-.267-1.95-.86-.45-.583-.678-1.335-.78-2.101-.202-1.525.031-3.229.89-4.27.615-.747 1.45-.887 2.15-.74.687.145 1.307.492 1.857.745v-.002c.546.252 1.033.388 1.281.344a.547.547 0 0 0 .353-.188c.113-.124.242-.35.384-.75.604-1.712.206-3.68-.303-5.654-.667.145-1.336.293-2.018.413-1.341.236-2.73.392-4.136.273-.656-.055-1.695-.085-2.58-.476-.442-.195-.903-.514-1.157-1.093-.259-.591-.205-1.313.08-2.014.223-.64 1.082-2.178.692-2.585-.391-.407-1.651-.56-2.554-.571z" style="fill:#282828;fill-opacity:1;stroke:none;stroke-width:.992837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="translate(-40.698 -95.175)"/>

View file

@ -15,7 +15,7 @@
{{- warnf "%q: UNSUPPORTED usage of 'landingPageURL' config parameter found, remove it and optionally overwrite the `logo.html` partial to provide a link if it should not point to the project's home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#420" .File.Filename }} {{- warnf "%q: UNSUPPORTED usage of 'landingPageURL' config parameter found, remove it and optionally overwrite the `logo.html` partial to provide a link if it should not point to the project's home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#420" .File.Filename }}
{{- end }} {{- end }}
<ul> <ul>
<li><a class="padding" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Site.Home) }}">{{ .Site.Params.landingPageName | default `<i class="fa-fw fas fa-home"></i> Home` | safeHTML }}</a></li> <li><a class="padding" href="{{ partial "permalink.gotmpl" (dict "to" .Site.Home) }}">{{ .Site.Params.landingPageName | default `<i class="fa-fw fas fa-home"></i> Home` | safeHTML }}</a></li>
</ul> </ul>
{{- end }} {{- end }}
<hr class="padding"> <hr class="padding">
@ -23,7 +23,7 @@
<div id="R-content-wrapper" class="highlightable"> <div id="R-content-wrapper" class="highlightable">
<div id="R-topics"> <div id="R-topics">
<ul class="enlarge morespace collapsible-menu"> <ul class="enlarge morespace collapsible-menu">
{{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .Site.Home) }} {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" .Site.Home) }}
{{- $defaultAlwaysopen := .Site.Params.alwaysopen | default false }} {{- $defaultAlwaysopen := .Site.Params.alwaysopen | default false }}
{{- range $pages }} {{- range $pages }}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" $defaultAlwaysopen }} {{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" $defaultAlwaysopen }}
@ -40,7 +40,7 @@
{{- $shortcut := . }} {{- $shortcut := . }}
{{- with $page.Site.GetPage (printf "%s" $shortcut.URL ) }} {{- with $page.Site.GetPage (printf "%s" $shortcut.URL ) }}
{{- $to := . }} {{- $to := . }}
<li>{{ $shortcut.Pre }}<a class="padding" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li> <li>{{ $shortcut.Pre }}<a class="padding" href="{{ partial "permalink.gotmpl" (dict "to" $to) }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
{{- else }} {{- else }}
<li>{{ $shortcut.Pre }}<a class="padding" href="{{ $shortcut.URL | relLangURL }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li> <li>{{ $shortcut.Pre }}<a class="padding" href="{{ $shortcut.URL | relLangURL }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
{{- end }} {{- end }}
@ -50,7 +50,7 @@
{{- end }} {{- end }}
{{- $siteLanguages := .Site.Languages }} {{- $siteLanguages := .Site.Languages }}
{{- $showlangswitch := and hugo.IsMultilingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }} {{- $showlangswitch := and hugo.IsMultilingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
{{- $themevariants := partialCached "get-theme-variants.hugo" . }} {{- $themevariants := partialCached "_relearn/themeVariants.gotmpl" . }}
{{- $showvariantswitch := gt (int (len $themevariants)) 1 }} {{- $showvariantswitch := gt (int (len $themevariants)) 1 }}
{{- $footer := partial "menu-footer.html" . }} {{- $footer := partial "menu-footer.html" . }}
{{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }} {{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }}
@ -69,7 +69,7 @@
{{- $page := .Page }} {{- $page := .Page }}
{{- $pageLang := .Page.Language.Lang }} {{- $pageLang := .Page.Language.Lang }}
{{- range .Page.AllTranslations }} {{- range .Page.AllTranslations }}
<option id="R-select-language-{{ .Language.Lang }}" value="#R-select-language-{{ .Language.Lang }}" data-url="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}" lang="{{ .Language.LanguageCode }}"{{ if eq $pageLang .Language.Lang }} selected{{ end }}>{{ .Language.LanguageName }}</option> <option id="R-select-language-{{ .Language.Lang }}" value="#R-select-language-{{ .Language.Lang }}" data-url="{{ partial "permalink.gotmpl" (dict "to" .) }}" lang="{{ .Language.LanguageCode }}"{{ if eq $pageLang .Language.Lang }} selected{{ end }}>{{ .Language.LanguageName }}</option>
{{- end }} {{- end }}
</select> </select>
</div> </div>
@ -122,7 +122,7 @@
{{- $isSelf := eq .RelPermalink $currentFileRelPermalink }} {{- $isSelf := eq .RelPermalink $currentFileRelPermalink }}
{{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }} {{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }}
{{- $isActive := $isSelf }} {{- $isActive := $isSelf }}
{{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .) }} {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" .) }}
{{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }} {{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
{{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }} {{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }}
{{- if $hidden }} {{- if $hidden }}
@ -135,8 +135,8 @@
{{- $subHidden := and $relearnIsSubHiddenFrom (not $.showhidden) (not $isSelfSub) (not $isAncestorSub) }} {{- $subHidden := and $relearnIsSubHiddenFrom (not $.showhidden) (not $isSelfSub) (not $isAncestorSub) }}
{{- $numberOfVisibleChildren = add $numberOfVisibleChildren (int (not $subHidden)) }} {{- $numberOfVisibleChildren = add $numberOfVisibleChildren (int (not $subHidden)) }}
{{- end }} {{- end }}
{{- $title := partial "pageHelper/title.hugo" (dict "page" . "linkTitle" true) }} {{- $title := partial "title.gotmpl" (dict "page" . "linkTitle" true) }}
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- $url := partial "permalink.gotmpl" (dict "to" .) }}
{{- safeHTML .Params.head }} {{- safeHTML .Params.head }}
{{- if $numberOfVisibleChildren }} {{- if $numberOfVisibleChildren }}
{{- $isCollapsible := or (.Params.collapsibleMenu | default .Site.Params.collapsibleMenu) (not $url) }} {{- $isCollapsible := or (.Params.collapsibleMenu | default .Site.Params.collapsibleMenu) (not $url) }}

View file

@ -14,7 +14,7 @@
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex"> <meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
{{- end }} {{- end }}
<meta name="description" content="{{ with trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " }}{{ . }}{{ end }}"> <meta name="description" content="{{ with trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " }}{{ . }}{{ end }}">
{{- $authorName := partialCached "authorname.hugo" . }} {{- $authorName := partialCached "_relearn/authorName.gotmpl" . }}
<meta name="author" content="{{ $authorName }}"> <meta name="author" content="{{ $authorName }}">
{{- partial "twitter_cards.html" . }} {{- partial "twitter_cards.html" . }}
{{- partial "opengraph.html" . }} {{- partial "opengraph.html" . }}

View file

@ -1,11 +1,11 @@
{{- /* based on Hugo 0.125.5 opengraph.html */}} {{- /* based on Hugo 0.125.5 opengraph.html */}}
<meta property="og:url" content="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}"> <meta property="og:url" content="{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}">
{{- with site.Title | plainify }} {{- with site.Title | plainify }}
<meta property="og:site_name" content="{{ . }}"> <meta property="og:site_name" content="{{ . }}">
{{- end }} {{- end }}
{{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }} {{- with partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
<meta property="og:title" content="{{ . }}"> <meta property="og:title" content="{{ . }}">
{{- end }} {{- end }}
@ -17,10 +17,10 @@
<meta property="og:locale" content="{{ replace . `-` `_` }}"> <meta property="og:locale" content="{{ replace . `-` `_` }}">
{{- end }} {{- end }}
{{- if and .IsPage (not (partial "pageHelper/isRelearnSpecialPage.html" .)) }} {{- if and .IsPage (not (partial "_relearn/pageIsSpecial.gotmpl" .)) }}
<meta property="og:type" content="article"> <meta property="og:type" content="article">
{{- with .FirstSection }} {{- with .FirstSection }}
<meta property="article:section" content="{{ partial "pageHelper/title.hugo" (dict "page" .) | plainify }}"> <meta property="article:section" content="{{ partial "title.gotmpl" (dict "page" .) | plainify }}">
{{- end }} {{- end }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" }}
{{- with or .PublishDate .Date }} {{- with or .PublishDate .Date }}
@ -30,7 +30,7 @@
<meta property="article:modified_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }}> <meta property="article:modified_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }}>
{{- end }} {{- end }}
{{- range .GetTerms "tags" | first 6 }} {{- range .GetTerms "tags" | first 6 }}
<meta property="article:tag" content="{{ partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true) | plainify }}"> <meta property="article:tag" content="{{ partial "title.gotmpl" (dict "page" .Page "linkTitle" true) | plainify }}">
{{- end }} {{- end }}
{{- else }} {{- else }}
<meta property="og:type" content="website"> <meta property="og:type" content="website">

View file

@ -65,7 +65,7 @@ section: {{- .Section }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .node) }} {{- $pages := partial "_relearn/pages.gotmpl" (dict "page" .node) }}
{{- range $pages }} {{- range $pages }}
{{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current }} {{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current }}
{{- end }} {{- end }}

View file

@ -1,5 +1,5 @@
{{- /* based on Hugo 0.125.5 schema.html */}} {{- /* 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 }}
<meta itemprop="name" content="{{ . }}"> <meta itemprop="name" content="{{ . }}">
{{- end }} {{- end }}
@ -36,17 +36,17 @@ Keywords precedence:
*/}} */}}
{{- $keywords := slice }} {{- $keywords := slice }}
{{- range .GetTerms "keywords" }} {{- 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 }} {{- else }}
{{- with .Keywords }} {{- with .Keywords }}
{{- $keywords = . }} {{- $keywords = . }}
{{- else }} {{- else }}
{{- range .GetTerms "tags" }} {{- 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 }} {{- else }}
{{- range $taxonomy, $_ := site.Taxonomies }} {{- range $taxonomy, $_ := site.Taxonomies }}
{{- range $.GetTerms $taxonomy }} {{- 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 }} {{- end }}
{{- end }} {{- end }}

View file

@ -1,5 +1,5 @@
{{- if not .Site.Params.disableSearch }} {{- if not .Site.Params.disableSearch }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
{{- $link := "" }} {{- $link := "" }}
{{- with .Site.Home.OutputFormats.Get "json" }} {{- 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" }} {{- 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 @@
</script> </script>
{{- if not .Site.Params.disableSearchPage }} {{- if not .Site.Params.disableSearchPage }}
{{- with .Site.GetPage "_relearn_searchpage" }} {{- with .Site.GetPage "_relearn_searchpage" }}
{{- $link = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- $link = partial "permalink.gotmpl" (dict "to" .) }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -35,7 +35,7 @@
{{- $missingcontentlangs := slice }} {{- $missingcontentlangs := slice }}
{{- range $contentlangs }} {{- range $contentlangs }}
{{- $f := printf "/static/js/lunr/lunr.%s.min.js" . }} {{- $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'" .) }} {{- $quotedcontentlangs = $quotedcontentlangs | append (printf "'%s'" .) }}
{{- else }} {{- else }}
{{- $missingcontentlangs = $missingcontentlangs | append . }} {{- $missingcontentlangs = $missingcontentlangs | append . }}

View file

@ -21,7 +21,7 @@
{{- with $page -}} {{- with $page -}}
{{ (printf "<%s class=\"children children-%s children-sort-%s\">" $containerstyle $style $sortTerm)|safeHTML }} {{ (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" . }} {{- 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 }} {{ (printf "</%s>" $containerstyle)|safeHTML }}
{{- end }} {{- end }}
@ -35,11 +35,11 @@
{{- if hasPrefix $.style "h" }} {{- if hasPrefix $.style "h" }}
{{- $num := sub ( int (trim $.style "h") ) 1 }} {{- $num := sub ( int (trim $.style "h") ) 1 }}
{{- $numn := add $num $.count }} {{- $numn := add $num $.count }}
{{ (printf " <h%d>" $numn)|safeHTML }}{{ if .RelPermalink }}<a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}">{{ .Title }}</a>{{ else }}<span>{{ .Title }}</span>{{ end }}{{ (printf "</h%d>" $numn)|safeHTML }} {{ (printf " <h%d>" $numn)|safeHTML }}{{ if .RelPermalink }}<a href="{{ partial "permalink.gotmpl" (dict "to" .) }}">{{ .Title }}</a>{{ else }}<span>{{ .Title }}</span>{{ end }}{{ (printf "</h%d>" $numn)|safeHTML }}
{{- else if eq $.style "li" }} {{- else if eq $.style "li" }}
{{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}<a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}">{{ .Title }}</a>{{ else }}<span>{{ .Title }}</span>{{ end }} {{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}<a href="{{ partial "permalink.gotmpl" (dict "to" .) }}">{{ .Title }}</a>{{ else }}<span>{{ .Title }}</span>{{ end }}
{{- else }} {{- else }}
{{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}<a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}">{{ .Title }}</a>{{ else }}<span>{{ .Title }}</span>{{ end }}{{ (printf "</%s>" $.style)|safeHTML }} {{ (printf " <%s>" $.style)|safeHTML }}{{ if .RelPermalink }}<a href="{{ partial "permalink.gotmpl" (dict "to" .) }}">{{ .Title }}</a>{{ else }}<span>{{ .Title }}</span>{{ end }}{{ (printf "</%s>" $.style)|safeHTML }}
{{- end }} {{- end }}
{{- if $.description }} {{- if $.description }}
{{- with or .Description .Summary -}} {{- with or .Description .Summary -}}
@ -51,7 +51,7 @@
{{- if eq $.style "li" }} {{- if eq $.style "li" }}
{{- (printf "<%s>" $.containerstyle)|safeHTML }} {{- (printf "<%s>" $.containerstyle)|safeHTML }}
{{- end }} {{- 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 }} {{- 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" }} {{- if eq $.style "li" }}
{{- (printf "</%s>" $.containerstyle)|safeHTML }} {{- (printf "</%s>" $.containerstyle)|safeHTML }}

View file

@ -18,7 +18,7 @@
{{- if eq (printf "%T" $expanded) "string" }} {{- if eq (printf "%T" $expanded) "string" }}
{{- $expanded = (eq $expanded "true") }} {{- $expanded = (eq $expanded "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 }}
{{- with $page }} {{- with $page }}
{{- if $hasContent -}} {{- if $hasContent -}}
<div class="expand"> <div class="expand">

View file

@ -74,7 +74,7 @@
{{- $c := printf "%s%s" (cond $v "" "no") $k }} {{- $c := printf "%s%s" (cond $v "" "no") $k }}
{{- $classes = $classes | append $c }} {{- $classes = $classes | append $c }}
{{- 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 }}
{{- $attributes = merge $attributes (dict "alt" $alt "src" $src "title" ($title | transform.HTMLEscape)) }} {{- $attributes = merge $attributes (dict "alt" $alt "src" $src "title" ($title | transform.HTMLEscape)) }}
{{- if $effects.lazy }} {{- if $effects.lazy }}
{{- $attributes = merge $attributes (dict "loading" "lazy") }} {{- $attributes = merge $attributes (dict "loading" "lazy") }}

View file

@ -62,7 +62,7 @@
{{- end }} {{- end }}
{{- $errorlevel := or $page.Params.link.errorlevel $page.Site.Params.link.errorlevel }} {{- $errorlevel := or $page.Params.link.errorlevel $page.Site.Params.link.errorlevel }}
{{- with $linkPage }} {{- with $linkPage }}
{{- $href = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- $href = partial "permalink.gotmpl" (dict "to" .) }}
{{- with $u.RawQuery }} {{- with $u.RawQuery }}
{{- $href = printf "%s?%s" $href . }} {{- $href = printf "%s?%s" $href . }}
{{- end }} {{- end }}

View file

@ -31,7 +31,7 @@
{{- $expander = true }} {{- $expander = true }}
{{- end }} {{- end }}
{{- 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 := "" }} {{- $idattribute := "" }}
{{- if $expander }} {{- if $expander }}
{{- $containerclass = $containerclass | append "expand-content" }} {{- $containerclass = $containerclass | append "expand-content" }}

View file

@ -6,7 +6,7 @@
{{- $u := urls.Parse .src }} {{- $u := urls.Parse .src }}
{{- $src := $u.String }} {{- $src := $u.String }}
{{- $spec := "" }} {{- $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 }} {{- if not $u.IsAbs }}
{{- $path := strings.TrimPrefix "./" $u.Path }} {{- $path := strings.TrimPrefix "./" $u.Path }}
{{- with or {{- with or

View file

@ -3,7 +3,7 @@
{{- $page = .context }} {{- $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 }} {{- 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 }} {{- end }}
{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) | plainify | anchorize }} {{- $groupid := .groupid | default (partial "_relearn/makeRandomMd5.gotmpl" $page) | plainify | anchorize }}
{{- $color := .color }} {{- $color := .color }}
{{- $style := .style }} {{- $style := .style }}
{{- $title := .title }} {{- $title := .title }}

View file

@ -4,7 +4,7 @@
{{- else }} {{- else }}
{{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat.<MYOUTPUTFORMAT>.html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }} {{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat.<MYOUTPUTFORMAT>.html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }}
{{- end }} {{- end }}
{{- $assetBusting := partialCached "assetbusting.hugo" . }} {{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
{{- /* https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use */}} {{- /* https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use */}}
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="{{"css/fontawesome-all.min.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"></noscript> <link href="{{"css/fontawesome-all.min.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="{{"css/fontawesome-all.min.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"></noscript>
<link href="{{"css/nucleus.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"> <link href="{{"css/nucleus.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
@ -12,7 +12,7 @@
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"> <link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
<link href="{{"css/fonts.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="{{"css/fonts.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"></noscript> <link href="{{"css/fonts.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="{{"css/fonts.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"></noscript>
<link href="{{"css/theme.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"> <link href="{{"css/theme.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
{{- $themevariants := partialCached "get-theme-variants.hugo" . }} {{- $themevariants := partialCached "_relearn/themeVariants.gotmpl" . }}
{{- with index $themevariants 0 }} {{- with index $themevariants 0 }}
<link href="{{(printf "css/theme-%s.css" .identifier) | relURL}}{{ $assetBusting }}" rel="stylesheet" id="R-variant-style"> <link href="{{(printf "css/theme-%s.css" .identifier) | relURL}}{{ $assetBusting }}" rel="stylesheet" id="R-variant-style">
<link href="{{(printf "css/chroma-%s.css" .chroma) | safeHTML | relURL}}{{ $assetBusting }}" rel="stylesheet" id="R-variant-chroma-style"> <link href="{{(printf "css/chroma-%s.css" .chroma) | safeHTML | relURL}}{{ $assetBusting }}" rel="stylesheet" id="R-variant-chroma-style">
@ -20,14 +20,14 @@
<link href="{{"css/variant.css" | relURL}}{{ $assetBusting }}" rel="stylesheet"> <link href="{{"css/variant.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
<link href="{{"css/print.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print"> <link href="{{"css/print.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print">
{{- $f := printf "/static/css/format-%s.css" $outputFormat }} {{- $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)) }}
<link href="{{(printf "css/format-%s.css" $outputFormat) | relURL}}{{ $assetBusting }}" rel="stylesheet"> <link href="{{(printf "css/format-%s.css" $outputFormat) | relURL}}{{ $assetBusting }}" rel="stylesheet">
{{- end }} {{- end }}
<script src="{{"js/variant.js" | relURL}}{{ $assetBusting }}"></script> <script src="{{"js/variant.js" | relURL}}{{ $assetBusting }}"></script>
<script> <script>
window.relearn = window.relearn || {}; window.relearn = window.relearn || {};
window.relearn.relBasePath='{{ partial "relBasePath.hugo" . | safeJS }}'; window.relearn.relBasePath='{{ partial "_relearn/relBasePath.gotmpl" . | safeJS }}';
window.relearn.relBaseUri='{{ partial "relBaseUri.hugo" . | safeJS }}'; window.relearn.relBaseUri='{{ partial "_relearn/relBaseUri.gotmpl" . | safeJS }}';
window.relearn.absBaseUri='{{ replaceRE "/*$" "" .Site.BaseURL | safeJS }}'; window.relearn.absBaseUri='{{ replaceRE "/*$" "" .Site.BaseURL | safeJS }}';
window.relearn.disableAnchorCopy={{ printf "%t" (eq .Site.Params.disableAnchorCopy true) | safeJS }}; window.relearn.disableAnchorCopy={{ printf "%t" (eq .Site.Params.disableAnchorCopy true) | safeJS }};
window.relearn.disableAnchorScrolling={{ printf "%t" (eq .Site.Params.disableAnchorScrolling true) | safeJS }}; window.relearn.disableAnchorScrolling={{ printf "%t" (eq .Site.Params.disableAnchorScrolling true) | safeJS }};

View file

@ -14,9 +14,9 @@
{{- $taxonomy_page := $page.Site.GetPage $taxonomy }} {{- $taxonomy_page := $page.Site.GetPage $taxonomy }}
{{- $term_pages := slice }} {{- $term_pages := slice }}
{{- range $page.GetTerms $taxonomy }} {{- range $page.GetTerms $taxonomy }}
{{- $term_pages = $term_pages | append (dict "Title" (partial "pageHelper/title.hugo" (dict "page" . "linkTitle" true)) "Term" . )}} {{- $term_pages = $term_pages | append (dict "Title" (partial "title.gotmpl" (dict "page" . "linkTitle" true)) "Term" . )}}
{{- end }} {{- end }}
{{- $taxonomy_title := partial "pageHelper/title.hugo" (dict "page" $taxonomy_page) }} {{- $taxonomy_title := partial "title.gotmpl" (dict "page" $taxonomy_page) }}
{{- with $term_pages }} {{- with $term_pages }}
<div class="R-taxonomy taxonomy-{{ $taxonomy }} cstyle{{ with $style }} {{ . }}{{ end }}{{ with $class }} {{ . }}{{ end }}" title="{{ $taxonomy_title }}"{{ if $color }}{{ printf " style=\"--VARIABLE-TAGS-BG-color: %s;\"" $color | safeHTMLAttr }}{{ end }}> <div class="R-taxonomy taxonomy-{{ $taxonomy }} cstyle{{ with $style }} {{ . }}{{ end }}{{ with $class }} {{ . }}{{ end }}" title="{{ $taxonomy_title }}"{{ if $color }}{{ printf " style=\"--VARIABLE-TAGS-BG-color: %s;\"" $color | safeHTMLAttr }}{{ end }}>
{{- if $icon }} {{- if $icon }}
@ -25,7 +25,7 @@
<ul> <ul>
{{- range sort . ".Title" }} {{- range sort . ".Title" }}
{{- $to := .Term }} {{- $to := .Term }}
<li><a class="term-link" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ .Title }}</a></li> <li><a class="term-link" href="{{ partial "permalink.gotmpl" (dict "to" $to) }}">{{ .Title }}</a></li>
{{- end }} {{- end }}
</ul> </ul>
</div> </div>

View file

@ -2,9 +2,9 @@
{{- $lastCapital := "" }} {{- $lastCapital := "" }}
{{- $pages := slice }} {{- $pages := slice }}
{{- if eq .Kind "taxonomy" }} {{- if eq .Kind "taxonomy" }}
{{- $pages = partialCached "partials/pageHelper/taxonomyPages.html" . . }} {{- $pages = partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . . }}
{{- else if eq .Kind "term" }} {{- else if eq .Kind "term" }}
{{- $pages = partialCached "partials/pageHelper/termPages.html" . . }} {{- $pages = partialCached "partials/_relearn/pagesTerm.gotmpl" . . }}
{{- end }} {{- end }}
{{- $toc_pages := "" }} {{- $toc_pages := "" }}
{{- range $pages }} {{- range $pages }}

View file

@ -4,7 +4,7 @@
{{- with .page }} {{- with .page }}
{{- $show := .File }} {{- $show := .File }}
{{- if $show }} {{- if $show }}
{{- $show = not (partial "pageHelper/isRelearnSpecialPage.html" .) }} {{- $show = not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
{{- end }} {{- end }}
{{- if $show }} {{- if $show }}
{{- $filePath := printf "%s%s" (strings.TrimLeft "/" (replace .File.Dir "\\" "/")) .File.LogicalName }} {{- $filePath := printf "%s%s" (strings.TrimLeft "/" (replace .File.Dir "\\" "/")) .File.LogicalName }}

View file

@ -12,18 +12,18 @@
{{- if eq .Page.Kind "term" }} {{- if eq .Page.Kind "term" }}
{{- /* go to next term page */}} {{- /* go to next term page */}}
{{- $taxonomy_page := .Site.GetPage .Data.Plural }} {{- $taxonomy_page := .Site.GetPage .Data.Plural }}
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" $taxonomy_page $taxonomy_page }} {{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" $taxonomy_page $taxonomy_page }}
{{- $next = partial "partials/pageHelper/next.html" (dict "collection" $pages "item" .) }} {{- $next = partial "partials/_relearn/pageNext.gotmpl" (dict "collection" $pages "item" .) }}
{{- else if eq .Page.Kind "taxonomy" }} {{- else if eq .Page.Kind "taxonomy" }}
{{- /* go to first term page */}} {{- /* go to first term page */}}
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }} {{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . . }}
{{- $next = (index $pages 0).Page }} {{- $next = (index $pages 0).Page }}
{{- end }} {{- end }}
{{- $nextTitle := partial "pageHelper/title.hugo" (dict "page" $next "outputFormat" "html") }} {{- $nextTitle := partial "title.gotmpl" (dict "page" $next "outputFormat" "html") }}
{{- partial "topbar/func/button.html" (dict {{- partial "topbar/func/button.html" (dict
"page" . "page" .
"class" "topbar-button-next" "class" "topbar-button-next"
"href" (partial "relLangPrettyUglyURL.hugo" (dict "to" $next)) "href" (partial "permalink.gotmpl" (dict "to" $next))
"icon" "chevron-right" "icon" "chevron-right"
"onwidths" $onwidths "onwidths" $onwidths
"onwidthm" $onwidthm "onwidthm" $onwidthm

View file

@ -12,16 +12,16 @@
{{- if eq .Page.Kind "term" }} {{- if eq .Page.Kind "term" }}
{{- /* go to previous term page or taxonomy page if it is the first term */}} {{- /* go to previous term page or taxonomy page if it is the first term */}}
{{- $taxonomy_page := .Site.GetPage .Data.Plural }} {{- $taxonomy_page := .Site.GetPage .Data.Plural }}
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" $taxonomy_page $taxonomy_page }} {{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" $taxonomy_page $taxonomy_page }}
{{- $prev = partial "partials/pageHelper/prev.html" (dict "collection" $pages "item" .) | default $taxonomy_page }} {{- $prev = partial "partials/_relearn/pagePrev.gotmpl" (dict "collection" $pages "item" .) | default $taxonomy_page }}
{{- else if eq .Page.Kind "taxonomy" }} {{- else if eq .Page.Kind "taxonomy" }}
{{- $prev = .Site.Home }} {{- $prev = .Site.Home }}
{{- end }} {{- end }}
{{- $prevTitle := partial "pageHelper/title.hugo" (dict "page" $prev "outputFormat" "html") }} {{- $prevTitle := partial "title.gotmpl" (dict "page" $prev "outputFormat" "html") }}
{{- partial "topbar/func/button.html" (dict {{- partial "topbar/func/button.html" (dict
"page" . "page" .
"class" "topbar-button-prev" "class" "topbar-button-prev"
"href" (partial "relLangPrettyUglyURL.hugo" (dict "to" $prev)) "href" (partial "permalink.gotmpl" (dict "to" $prev))
"icon" "chevron-left" "icon" "chevron-left"
"onwidths" $onwidths "onwidths" $onwidths
"onwidthm" $onwidthm "onwidthm" $onwidthm

View file

@ -5,7 +5,7 @@
{{- $printFormat := .OutputFormats.Get "print" }} {{- $printFormat := .OutputFormats.Get "print" }}
{{- $show := $printFormat }} {{- $show := $printFormat }}
{{- if $show }} {{- if $show }}
{{- $show = not (partial "pageHelper/isRelearnSpecialPage.html" .) }} {{- $show = not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
{{- end }} {{- end }}
{{- if $show }} {{- if $show }}
{{- partial "topbar/func/button.html" (dict {{- partial "topbar/func/button.html" (dict

View file

@ -7,7 +7,7 @@
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
{{- end }} {{- end }}
{{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }} {{- with partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
<meta name="twitter:title" content="{{ . }}"> <meta name="twitter:title" content="{{ . }}">
{{- end }} {{- end }}