mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +00:00
theme: broadly renaming template files #891
This commit is contained in:
parent
0c8efa7699
commit
8692fc4988
61 changed files with 124 additions and 124 deletions
|
@ -1,15 +1,15 @@
|
|||
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
||||
{{- partialCached "relearn-meta.gotmpl" . .RelPermalink }}
|
||||
{{- $pages := slice }}
|
||||
{{- 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) ) }}
|
||||
{{- $tags := slice }}
|
||||
{{- 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 }}
|
||||
{{- $pages = $pages | append (dict
|
||||
"uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .))
|
||||
"title" (partial "pageHelper/title.hugo" (dict "page" .) | plainify)
|
||||
"uri" (partial "permalink.gotmpl" (dict "to" .))
|
||||
"title" (partial "title.gotmpl" (dict "page" .) | plainify)
|
||||
"tags" $tags
|
||||
"breadcrumb" (trim (partial "breadcrumbs.html" (dict "page" . "dirOnly" true) | plainify | htmlUnescape) "\n\r\t ")
|
||||
"description" (trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " )
|
||||
|
|
|
@ -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 .dark $assetBusting }}" screen and (prefers-color-scheme: dark);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $assetBusting := partialCached "assetbusting.hugo" . -}}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
|
||||
@import "{{ printf "theme-%s.css%s" .themevariant.identifier $assetBusting }}";
|
||||
@import "{{ printf "chroma-%s.css%s" .themevariant.chroma $assetBusting }}";
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
{{- $assetBusting := partialCached "assetbusting.hugo" . -}}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
|
||||
@import "{{ printf "format-print.css%s" $assetBusting }}";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $assetBusting := partialCached "assetbusting.hugo" . -}}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
|
||||
/* Styles to make Swagger-UI fit into our theme */
|
||||
|
||||
@import "{{ printf "fonts.css%s" $assetBusting }}";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $assetBusting := partialCached "assetbusting.hugo" . -}}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . -}}
|
||||
/* this file is here for compatiblity with older installations
|
||||
use theme-relearn-light instead */
|
||||
@import "{{ printf "theme-relearn-light.css%s" $assetBusting }}";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
|
||||
<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>
|
||||
<script>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
||||
{{- partialCached "relearn-meta.gotmpl" . .RelPermalink }}
|
||||
{{- .Store.Set "relearnOutputFormat" "notfound" -}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Page.Language.LanguageCode }}" dir="{{ .Page.Language.LanguageDirection | default (T "Reading-direction") | default "ltr" }}" itemscope itemtype="http://schema.org/Article">
|
||||
<head>
|
||||
{{- 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>
|
||||
|
||||
{{- /* 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 "custom-header.html" . }}
|
||||
</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">
|
||||
<main id="R-body-inner" class="highlightable chapter" tabindex="-1">
|
||||
<div class="flex-block-wrapper">
|
||||
|
@ -24,7 +24,7 @@
|
|||
<p></p>
|
||||
<p>{{ T "message-404" }}</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">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512.000000 512.000000"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- partialCached "page-meta.hugo" . .RelPermalink -}}
|
||||
{{- partialCached "relearn-meta.gotmpl" . .RelPermalink -}}
|
||||
<!DOCTYPE html>
|
||||
{{- block "storeOutputFormat" . }}{{ end }}
|
||||
{{- 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">
|
||||
<head>
|
||||
{{- 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>
|
||||
|
||||
{{- /* multilingual stuff */}}
|
||||
{{- if .IsTranslated -}}
|
||||
{{- range $index, $trans := .AllTranslations }}
|
||||
{{- 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 }}
|
||||
<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 }}
|
||||
|
||||
|
@ -33,9 +33,9 @@
|
|||
{{- $link := "<link href=\"%s\" rel=\"%s\" type=\"%s\" title=\"%s\">" }}
|
||||
{{- range .AlternativeOutputFormats }}
|
||||
{{- if eq .Rel "canonical" }}
|
||||
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
|
||||
{{- else if not (partial "pageHelper/isRelearnSpecialPage.html" $page) }}
|
||||
{{ (printf $link (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) .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 "_relearn/pageIsSpecial.gotmpl" $page) }}
|
||||
{{ (printf $link (partial "permalink.gotmpl" (dict "to" .)) .Rel .MediaType.Type ($title | htmlEscape)) | safeHTML }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -44,7 +44,7 @@
|
|||
{{- partial "dependencies.html" (dict "page" . "location" "header") }}
|
||||
{{- partial "custom-header.html" . }}
|
||||
</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-overlay"></div>
|
||||
<nav id="R-topbar">
|
||||
|
@ -60,7 +60,7 @@
|
|||
</ol>
|
||||
{{- else }}
|
||||
<span class="topbar-breadcrumbs highlightable">
|
||||
{{ partial "pageHelper/title.hugo" (dict "page" . "linkTitle" true) }}
|
||||
{{ partial "title.gotmpl" (dict "page" . "linkTitle" true) }}
|
||||
</span>
|
||||
{{- end }}
|
||||
<div class="topbar-area topbar-area-end" data-area="end">
|
||||
|
@ -77,7 +77,7 @@
|
|||
{{- partial "custom-comments.html" . }}
|
||||
</div>
|
||||
{{- 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/perfect-scrollbar.min.js" | relURL}}{{ $assetBusting }}" defer></script>
|
||||
{{- partial "dependencies.html" (dict "page" . "location" "footer") }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{- /* 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 */}}
|
||||
{{- $authorEmail := "" }}
|
||||
{{- if and .Site.Params.author (reflect.IsMap .Site.Params.author) .Site.Params.author.email }}
|
||||
|
@ -15,7 +15,7 @@
|
|||
{{- end }}
|
||||
|
||||
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
|
||||
{{- $authorName := partialCached "authorname.hugo" . }}
|
||||
{{- $authorName := partialCached "_relearn/authorName.gotmpl" . }}
|
||||
|
||||
{{- $pages := .Pages }}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit }}
|
||||
|
@ -27,8 +27,8 @@
|
|||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) }}</title>
|
||||
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link>
|
||||
<title>{{ partial "title.gotmpl" (dict "page" . "fullyQualified" true "reverse" true) }}</title>
|
||||
<link>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</link>
|
||||
<description>{{ trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " | transform.XMLEscape | safeHTML }}</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
|
||||
|
@ -37,12 +37,12 @@
|
|||
<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 }}
|
||||
{{- 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 }}
|
||||
{{- range $pages }}
|
||||
{{- $visible := true }}
|
||||
{{- $relearnIsHiddenFrom := index ($page.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
|
||||
{{- if partial "pageHelper/isRelearnSpecialPage.html" . }}
|
||||
{{- if partial "_relearn/pageIsSpecial.gotmpl" . }}
|
||||
{{- $visible = false }}
|
||||
{{- else if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
||||
{{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
||||
|
@ -51,11 +51,11 @@
|
|||
{{- end }}
|
||||
{{- if $visible }}
|
||||
<item>
|
||||
<title>{{ partial "pageHelper/title.hugo" (dict "page" .) }}</title>
|
||||
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link>
|
||||
<title>{{ partial "title.gotmpl" (dict "page" .) }}</title>
|
||||
<link>{{ partial "permalink.gotmpl" (dict "to" . "abs" true) }}</link>
|
||||
<pubDate>{{ (or .PublishDate .Date).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{- 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>
|
||||
</item>
|
||||
{{- end }}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{{- /* 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 }}
|
||||
<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 }}
|
||||
{{- 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) ) }}
|
||||
<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 }}
|
||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.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="{{ .Language.LanguageCode }}" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}" />{{ end }}{{ 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 "permalink.gotmpl" (dict "to" . "abs" true) }}" />{{ end }}{{ end }}
|
||||
</url>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
{{- $url = replace $url "//" "/" }}
|
||||
{{- with site.Home.GetPage $url }}
|
||||
{{- /* 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 }}
|
||||
{{- $url_alt := replaceRE "^/[^/]*(/.*)" "${1}" $url }}
|
||||
{{- with site.Home.GetPage $url_alt }}
|
||||
{{- /* if defaultContentLanguageInSubdir=true we are ending here for home page */}}
|
||||
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
|
||||
{{- $url = partial "permalink.gotmpl" (dict "to" .) }}
|
||||
{{- else }}
|
||||
{{- /* 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 }}
|
||||
<meta charset="utf-8">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{- $depth := .depth | default 0 }}
|
||||
{{- with $page.Parent }}
|
||||
{{- $depth = add $depth 1 }}
|
||||
{{- partial "pageHelper/depth.hugo" (dict "page" . "depth" $depth) }}
|
||||
{{- partial "_relearn/pageDepth.gotmpl" (dict "page" . "depth" $depth) }}
|
||||
{{- else }}
|
||||
{{- $depth }}
|
||||
{{- end }}
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
{{- $filtered_pages := slice }}
|
||||
{{- range $pages }}
|
||||
{{- if not (partial "pageHelper/isRelearnSpecialPage.html" .) }}
|
||||
{{- if not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
|
||||
{{- $filtered_pages = $filtered_pages | append . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -8,7 +8,7 @@
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
{{- 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 }}
|
||||
{{- $pages = sort $pages ".Title" }}
|
|
@ -125,7 +125,7 @@ Chroma auto run:
|
|||
{{- end }}
|
||||
|
||||
{{- with resources.Get "css/variant.css" }}
|
||||
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
|
||||
{{- $assetBusting := partialCached "relearn/assetbusting.hugo" . }}
|
||||
{{- $variantcontent := print `@import "variables.css` $assetBusting `";` "\n\n" .Content }}
|
||||
{{- range $page.Site.Params.boxStyle }}
|
||||
{{- $identifier := upper .identifier }}
|
|
@ -3,11 +3,11 @@
|
|||
<header class="headline">
|
||||
</header>
|
||||
|
||||
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}
|
||||
{{- $title := partial "title.gotmpl" (dict "page" .) }}
|
||||
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
|
||||
{{- .Content }}
|
||||
{{- $lastCapital := "" }}
|
||||
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }}
|
||||
{{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . . }}
|
||||
{{- range $pages }}
|
||||
{{- $capital := substr .Title 0 1 | upper }}
|
||||
{{- if ne $lastCapital $capital }}
|
||||
|
@ -18,7 +18,7 @@
|
|||
<ul class="columnize">
|
||||
{{- end }}
|
||||
{{- /* 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 }}
|
||||
{{- end }}
|
||||
{{- if ne $lastCapital "" }}
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<header class="headline">
|
||||
</header>
|
||||
|
||||
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}
|
||||
{{- $title := partial "title.gotmpl" (dict "page" .) }}
|
||||
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
|
||||
{{- .Content }}
|
||||
{{- $lastCapital := "" }}
|
||||
{{- $pages := partialCached "partials/pageHelper/termPages.html" . . }}
|
||||
{{- $pages := partialCached "partials/_relearn/pagesTerm.gotmpl" . . }}
|
||||
{{- range $pages }}
|
||||
{{- $capital := substr .Title 0 1 | upper }}
|
||||
{{- if ne $lastCapital $capital }}
|
||||
|
@ -22,7 +22,7 @@
|
|||
{{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }}
|
||||
{{- $breadcrumb = trim (partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true) | plainify | htmlUnescape) "\n\r\t " }}
|
||||
{{- 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 }}
|
||||
{{- end }}
|
||||
{{- if ne $lastCapital "" }}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{- with .sect }}
|
||||
{{- $isSelf := eq .RelPermalink $currentFileRelPermalink }}
|
||||
{{- $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 }}
|
||||
{{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }}
|
||||
{{- if $hidden }}
|
||||
|
@ -29,11 +29,11 @@
|
|||
{{- $currentNode := .currentnode }}
|
||||
{{- with .sect }}
|
||||
{{- $page := . }}
|
||||
{{- partialCached "nested-content.hugo" $page $page.RelPermalink }}
|
||||
{{- partialCached "_relearn/nestedContent.gotmpl" $page $page.RelPermalink }}
|
||||
{{- range $page.Site.Params.relearn.dependencies }}
|
||||
{{- $has := printf "has%s" .name }}
|
||||
{{- $hasnested := printf "relearnHasNested%s" .name }}
|
||||
{{- $currentNode.Page.Store.Set $hasnested (or ($currentNode.Page.Store.Get $hasnested) ($page.Page.Store.Get $has)) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -1,20 +1,20 @@
|
|||
{{- $page := .page }}
|
||||
{{- $to := $page }}
|
||||
{{- $pageurl := partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }}
|
||||
{{- $lasturl := partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }}
|
||||
{{- $pageurl := partial "permalink.gotmpl" (dict "to" $page) }}
|
||||
{{- $lasturl := partial "permalink.gotmpl" (dict "to" $page) }}
|
||||
{{- if .dirOnly }}
|
||||
{{- $page = $page.Parent }}
|
||||
{{- $to = $page }}
|
||||
{{- $lasturl = partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }}
|
||||
{{- $lasturl = partial "permalink.gotmpl" (dict "to" $page) }}
|
||||
{{- 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 }}
|
||||
{{- $depth = add $depth -1 }}
|
||||
{{- end }}
|
||||
{{- $breadcrumb := slice }}
|
||||
{{- range seq $depth }}
|
||||
{{- if $to }}
|
||||
{{- if partial "pageHelper/isRelearnSpecialPage.html" $to }}
|
||||
{{- if partial "_relearn/pageIsSpecial.gotmpl" $to }}
|
||||
{{- break }}
|
||||
{{- else if or $to.Title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }}
|
||||
{{- $breadcrumb = $breadcrumb | append $to }}
|
||||
|
@ -33,8 +33,8 @@
|
|||
{{- range $i, $e := $breadcrumbReversed }}
|
||||
{{- $to := $e }}
|
||||
{{- $depth = add $depth 1 }}
|
||||
{{- $title := partial "pageHelper/title.hugo" (dict "page" $to "linkTitle" true) }}
|
||||
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}
|
||||
{{- $title := partial "title.gotmpl" (dict "page" $to "linkTitle" true) }}
|
||||
{{- $url := partial "permalink.gotmpl" (dict "to" $to) }}
|
||||
{{- $isPage := eq $url $pageurl }}
|
||||
{{- $isLast := eq $url $lasturl }}
|
||||
{{- $link := and $url (not $isPage) }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- /* 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 }}
|
||||
{{- end }}
|
|
@ -2,7 +2,7 @@
|
|||
{{- $location := .location }}
|
||||
{{- if eq $location "footer" }}
|
||||
{{- with $page }}
|
||||
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
|
||||
{{- $init := "{}" }}
|
||||
{{- if isset .Params "mathjaxinitialize" }}
|
||||
{{- $init = .Params.mathJaxInitialize }}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{- $location := .location }}
|
||||
{{- if eq $location "footer" }}
|
||||
{{- 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-dispatch.min.js" | relURL}}{{ $assetBusting }}" defer></script>
|
||||
<script src="{{"js/d3/d3-drag.min.js" | relURL}}{{ $assetBusting }}" defer></script>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{- $location := .location }}
|
||||
{{- if eq $location "footer" }}
|
||||
{{- with $page }}
|
||||
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
|
||||
<script src="{{"js/js-yaml.min.js" | relURL}}{{ $assetBusting }}" defer></script>
|
||||
{{- $urlOpenapi := "" }}
|
||||
{{- $relOpenapi := "" }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
|
||||
{{- $faviconMatch := false }}
|
||||
{{- $svg := dict "ext" "svg" "type" "type=\"image/svg+xml\"" }}
|
||||
{{- $png := dict "ext" "png" "type" "type=\"image/png\"" }}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}
|
||||
{{- $title := partial "title.gotmpl" (dict "page" .) }}
|
||||
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
|
|
@ -41,7 +41,7 @@
|
|||
}
|
||||
}
|
||||
</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">
|
||||
<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)"/>
|
||||
|
|
|
@ -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 }}
|
||||
{{- end }}
|
||||
<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>
|
||||
{{- end }}
|
||||
<hr class="padding">
|
||||
|
@ -23,7 +23,7 @@
|
|||
<div id="R-content-wrapper" class="highlightable">
|
||||
<div id="R-topics">
|
||||
<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 }}
|
||||
{{- range $pages }}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" $defaultAlwaysopen }}
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{- $shortcut := . }}
|
||||
{{- with $page.Site.GetPage (printf "%s" $shortcut.URL ) }}
|
||||
{{- $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 }}
|
||||
<li>{{ $shortcut.Pre }}<a class="padding" href="{{ $shortcut.URL | relLangURL }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
|
||||
{{- end }}
|
||||
|
@ -50,7 +50,7 @@
|
|||
{{- end }}
|
||||
{{- $siteLanguages := .Site.Languages }}
|
||||
{{- $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 }}
|
||||
{{- $footer := partial "menu-footer.html" . }}
|
||||
{{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }}
|
||||
|
@ -69,7 +69,7 @@
|
|||
{{- $page := .Page }}
|
||||
{{- $pageLang := .Page.Language.Lang }}
|
||||
{{- 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 }}
|
||||
</select>
|
||||
</div>
|
||||
|
@ -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) }}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
|
||||
{{- 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 }}">
|
||||
{{- partial "twitter_cards.html" . }}
|
||||
{{- partial "opengraph.html" . }}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{- /* 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 }}
|
||||
<meta property="og:site_name" content="{{ . }}">
|
||||
{{- 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="{{ . }}">
|
||||
{{- end }}
|
||||
|
||||
|
@ -17,10 +17,10 @@
|
|||
<meta property="og:locale" content="{{ replace . `-` `_` }}">
|
||||
{{- end }}
|
||||
|
||||
{{- if and .IsPage (not (partial "pageHelper/isRelearnSpecialPage.html" .)) }}
|
||||
{{- if and .IsPage (not (partial "_relearn/pageIsSpecial.gotmpl" .)) }}
|
||||
<meta property="og:type" content="article">
|
||||
{{- 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 }}
|
||||
{{- $iso8601 := "2006-01-02T15:04:05-07:00" }}
|
||||
{{- with or .PublishDate .Date }}
|
||||
|
@ -30,7 +30,7 @@
|
|||
<meta property="article:modified_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }}>
|
||||
{{- end }}
|
||||
{{- 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 }}
|
||||
{{- else }}
|
||||
<meta property="og:type" content="website">
|
||||
|
|
|
@ -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 }}
|
|
@ -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 }}
|
||||
<meta itemprop="name" content="{{ . }}">
|
||||
{{- 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 }}
|
||||
|
|
|
@ -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 @@
|
|||
</script>
|
||||
{{- 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 . }}
|
||||
|
|
|
@ -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 " <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" }}
|
||||
{{ (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 }}
|
||||
{{ (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 }}
|
||||
{{- 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 }}
|
||||
|
|
|
@ -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 -}}
|
||||
<div class="expand">
|
||||
|
|
|
@ -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") }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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" }}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{- 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" }}
|
||||
{{- end }}
|
||||
{{- $assetBusting := partialCached "assetbusting.hugo" . }}
|
||||
{{- $assetBusting := partialCached "_relearn/assetbusting.gotmpl" . }}
|
||||
{{- /* 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/nucleus.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
|
||||
|
@ -12,7 +12,7 @@
|
|||
<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/theme.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
|
||||
{{- $themevariants := partialCached "get-theme-variants.hugo" . }}
|
||||
{{- $themevariants := partialCached "_relearn/themeVariants.gotmpl" . }}
|
||||
{{- with index $themevariants 0 }}
|
||||
<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">
|
||||
|
@ -20,14 +20,14 @@
|
|||
<link href="{{"css/variant.css" | relURL}}{{ $assetBusting }}" rel="stylesheet">
|
||||
<link href="{{"css/print.css" | relURL}}{{ $assetBusting }}" rel="stylesheet" media="print">
|
||||
{{- $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">
|
||||
{{- end }}
|
||||
<script src="{{"js/variant.js" | relURL}}{{ $assetBusting }}"></script>
|
||||
<script>
|
||||
window.relearn = window.relearn || {};
|
||||
window.relearn.relBasePath='{{ partial "relBasePath.hugo" . | safeJS }}';
|
||||
window.relearn.relBaseUri='{{ partial "relBaseUri.hugo" . | safeJS }}';
|
||||
window.relearn.relBasePath='{{ partial "_relearn/relBasePath.gotmpl" . | safeJS }}';
|
||||
window.relearn.relBaseUri='{{ partial "_relearn/relBaseUri.gotmpl" . | safeJS }}';
|
||||
window.relearn.absBaseUri='{{ replaceRE "/*$" "" .Site.BaseURL | safeJS }}';
|
||||
window.relearn.disableAnchorCopy={{ printf "%t" (eq .Site.Params.disableAnchorCopy true) | safeJS }};
|
||||
window.relearn.disableAnchorScrolling={{ printf "%t" (eq .Site.Params.disableAnchorScrolling true) | safeJS }};
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
{{- $taxonomy_page := $page.Site.GetPage $taxonomy }}
|
||||
{{- $term_pages := slice }}
|
||||
{{- 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 }}
|
||||
{{- $taxonomy_title := partial "pageHelper/title.hugo" (dict "page" $taxonomy_page) }}
|
||||
{{- $taxonomy_title := partial "title.gotmpl" (dict "page" $taxonomy_page) }}
|
||||
{{- 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 }}>
|
||||
{{- if $icon }}
|
||||
|
@ -25,7 +25,7 @@
|
|||
<ul>
|
||||
{{- range sort . ".Title" }}
|
||||
{{- $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 }}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
{{- $lastCapital := "" }}
|
||||
{{- $pages := slice }}
|
||||
{{- if eq .Kind "taxonomy" }}
|
||||
{{- $pages = partialCached "partials/pageHelper/taxonomyPages.html" . . }}
|
||||
{{- $pages = partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . . }}
|
||||
{{- else if eq .Kind "term" }}
|
||||
{{- $pages = partialCached "partials/pageHelper/termPages.html" . . }}
|
||||
{{- $pages = partialCached "partials/_relearn/pagesTerm.gotmpl" . . }}
|
||||
{{- end }}
|
||||
{{- $toc_pages := "" }}
|
||||
{{- range $pages }}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{- with .page }}
|
||||
{{- $show := .File }}
|
||||
{{- if $show }}
|
||||
{{- $show = not (partial "pageHelper/isRelearnSpecialPage.html" .) }}
|
||||
{{- $show = not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
|
||||
{{- end }}
|
||||
{{- if $show }}
|
||||
{{- $filePath := printf "%s%s" (strings.TrimLeft "/" (replace .File.Dir "\\" "/")) .File.LogicalName }}
|
||||
|
|
|
@ -12,18 +12,18 @@
|
|||
{{- if eq .Page.Kind "term" }}
|
||||
{{- /* go to next term page */}}
|
||||
{{- $taxonomy_page := .Site.GetPage .Data.Plural }}
|
||||
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" $taxonomy_page $taxonomy_page }}
|
||||
{{- $next = partial "partials/pageHelper/next.html" (dict "collection" $pages "item" .) }}
|
||||
{{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" $taxonomy_page $taxonomy_page }}
|
||||
{{- $next = partial "partials/_relearn/pageNext.gotmpl" (dict "collection" $pages "item" .) }}
|
||||
{{- else if eq .Page.Kind "taxonomy" }}
|
||||
{{- /* go to first term page */}}
|
||||
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }}
|
||||
{{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . . }}
|
||||
{{- $next = (index $pages 0).Page }}
|
||||
{{- 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
|
||||
"page" .
|
||||
"class" "topbar-button-next"
|
||||
"href" (partial "relLangPrettyUglyURL.hugo" (dict "to" $next))
|
||||
"href" (partial "permalink.gotmpl" (dict "to" $next))
|
||||
"icon" "chevron-right"
|
||||
"onwidths" $onwidths
|
||||
"onwidthm" $onwidthm
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
{{- if eq .Page.Kind "term" }}
|
||||
{{- /* go to previous term page or taxonomy page if it is the first term */}}
|
||||
{{- $taxonomy_page := .Site.GetPage .Data.Plural }}
|
||||
{{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" $taxonomy_page $taxonomy_page }}
|
||||
{{- $prev = partial "partials/pageHelper/prev.html" (dict "collection" $pages "item" .) | default $taxonomy_page }}
|
||||
{{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" $taxonomy_page $taxonomy_page }}
|
||||
{{- $prev = partial "partials/_relearn/pagePrev.gotmpl" (dict "collection" $pages "item" .) | default $taxonomy_page }}
|
||||
{{- else if eq .Page.Kind "taxonomy" }}
|
||||
{{- $prev = .Site.Home }}
|
||||
{{- 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
|
||||
"page" .
|
||||
"class" "topbar-button-prev"
|
||||
"href" (partial "relLangPrettyUglyURL.hugo" (dict "to" $prev))
|
||||
"href" (partial "permalink.gotmpl" (dict "to" $prev))
|
||||
"icon" "chevron-left"
|
||||
"onwidths" $onwidths
|
||||
"onwidthm" $onwidthm
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{- $printFormat := .OutputFormats.Get "print" }}
|
||||
{{- $show := $printFormat }}
|
||||
{{- if $show }}
|
||||
{{- $show = not (partial "pageHelper/isRelearnSpecialPage.html" .) }}
|
||||
{{- $show = not (partial "_relearn/pageIsSpecial.gotmpl" .) }}
|
||||
{{- end }}
|
||||
{{- if $show }}
|
||||
{{- partial "topbar/func/button.html" (dict
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<meta name="twitter:card" content="summary">
|
||||
{{- 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="{{ . }}">
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue