mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
theme: wildspace
in partials and generated output
This commit is contained in:
parent
5574ec073e
commit
aa54732f09
23 changed files with 433 additions and 543 deletions
File diff suppressed because one or more lines are too long
|
@ -1,14 +1,8 @@
|
|||
<center>
|
||||
<!-- Place this tag where you want the button to render. -->
|
||||
<a class="github-button" href="https://github.com/McShelby/hugo-theme-relearn/archive/main.zip" data-icon="octicon-cloud-download" aria-label="Download McShelby/hugo-theme-relearn on GitHub">Download</a>
|
||||
|
||||
<!-- Place this tag where you want the button to render. -->
|
||||
<a class="github-button" href="https://github.com/McShelby/hugo-theme-relearn" data-icon="octicon-star" data-show-count="true" aria-label="Star McShelby/hugo-theme-relearn on GitHub">Star</a>
|
||||
|
||||
<!-- Place this tag where you want the button to render. -->
|
||||
<a class="github-button" href="https://github.com/McShelby/hugo-theme-relearn/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork McShelby/hugo-theme-relearn on GitHub">Fork</a>
|
||||
|
||||
<p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p>
|
||||
</center>
|
||||
<!-- Place this tag in your head or just before your close body tag. -->
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
<center>
|
||||
<a class="github-button" href="https://github.com/McShelby/hugo-theme-relearn/archive/main.zip" data-icon="octicon-cloud-download" aria-label="Download McShelby/hugo-theme-relearn on GitHub">Download</a>
|
||||
<a class="github-button" href="https://github.com/McShelby/hugo-theme-relearn" data-icon="octicon-star" data-show-count="true" aria-label="Star McShelby/hugo-theme-relearn on GitHub">Star</a>
|
||||
<a class="github-button" href="https://github.com/McShelby/hugo-theme-relearn/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork McShelby/hugo-theme-relearn on GitHub">Fork</a>
|
||||
<p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p>
|
||||
</center>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
|
@ -1 +1 @@
|
|||
{{ if .Params.chapter }}<b>{{ .Params.weight }}. </b>{{ end }}
|
||||
{{ if .Params.chapter }}<b>{{ .Params.weight }}.</b> {{ end }}
|
|
@ -1,6 +1,6 @@
|
|||
{{ $langsrc := .Get 1 | default "en" }}
|
||||
{{ $langtrg := .Page.Language.Lang }}
|
||||
{{ $words := dict
|
||||
{{- $langsrc := .Get 1 | default "en" }}
|
||||
{{- $langtrg := .Page.Language.Lang }}
|
||||
{{- $words := dict
|
||||
"Hugo" "Cap'n Hugo"
|
||||
"Info" "Ahoi"
|
||||
"Note" "Avast"
|
||||
|
@ -60,8 +60,7 @@
|
|||
"Relearn" "Relearrrn"
|
||||
"Learn" "Learrrn"
|
||||
}}
|
||||
|
||||
{{ $specials := dict
|
||||
{{- $specials := dict
|
||||
"(\\w)ing([\\s\\n<.,;?!:])" "'n"
|
||||
"(\\w)ings([\\s\\n<.,;?!:])" "'ns"
|
||||
"(\\w)tion([\\s\\n<.,;?!:])" "t'n"
|
||||
|
@ -73,29 +72,26 @@
|
|||
"(\\w)(?:[aeiou])nizes([\\s\\n<.,;?!:])" "'nizes"
|
||||
"(.)=\"/([^\".]*?\")" (printf "=\"/%s/" $langtrg)
|
||||
}}
|
||||
|
||||
{{ $fix := dict
|
||||
{{- $fix := dict
|
||||
"warn'n" "warning"
|
||||
"sect'n" "section"
|
||||
"n Cap'n" "n"
|
||||
"Documentat'n fer Cap'n Hugo Relearrrn Theme" "Documentation for Hugo Relearn Theme"
|
||||
"Avast right o' John" "Note right of John"
|
||||
}}
|
||||
|
||||
{{ $c := "" }}
|
||||
{{ range .Page.Translations }}
|
||||
{{ if eq .Language.Lang $langsrc }}
|
||||
{{/* $file | readFile | safeHTML */}}
|
||||
{{ $c = .Content }}
|
||||
{{ range $from, $to := $words }}
|
||||
{{ $c = replaceRE (printf "([\\s\\n>])%s([\\s\\n<.,;?!:])" $from) (printf "${1}%s${2}" $to) $c }}
|
||||
{{ end }}
|
||||
{{ range $from, $to := $specials }}
|
||||
{{ $c = replaceRE $from (printf "${1}%s${2}" $to) $c }}
|
||||
{{ end }}
|
||||
{{ range $from, $to := $fix }}
|
||||
{{- $c := "" }}
|
||||
{{- range .Page.Translations }}
|
||||
{{- if eq .Language.Lang $langsrc }}
|
||||
{{- $c = .Content }}
|
||||
{{- range $from, $to := $words }}
|
||||
{{- $c = replaceRE (printf "([\\s\\n>])%s([\\s\\n<.,;?!:])" $from) (printf "${1}%s${2}" $to) $c }}
|
||||
{{- end }}
|
||||
{{- range $from, $to := $specials }}
|
||||
{{- $c = replaceRE $from (printf "${1}%s${2}" $to) $c }}
|
||||
{{- end }}
|
||||
{{- range $from, $to := $fix }}
|
||||
{{ $c = replace $c $from $to }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $c | safeHTML }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $c | safeHTML }}
|
|
@ -1,55 +1,55 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{{ hugo.Generator -}}
|
||||
{{- partial "meta.html" . }}
|
||||
{{ partial "favicon.html" . }}
|
||||
{{- .Scratch.Add "title" "" }}
|
||||
{{- if eq .Site.Data.titles .Title }}
|
||||
{{- .Scratch.Set "title" (index .Site.Data.titles .Title).title }}
|
||||
{{- else }}
|
||||
{{- .Scratch.Set "title" .Title}}
|
||||
{{- end }}
|
||||
<title>{{ .Scratch.Get "title" }} {{ default "::" .Site.Params.titleSeparator }} {{ .Site.Title }}</title>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"> {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
||||
<title>{{ .Scratch.Get "title" }}</title>
|
||||
|
||||
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
{{with .Site.Params.themeVariant}}
|
||||
<link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
{{end}}
|
||||
<style>
|
||||
:root #header + #content > #left > #rlblock_left {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
p,
|
||||
li,
|
||||
ul {
|
||||
text-align: center
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
</style>
|
||||
{{ partial "custom-header.html" . }}
|
||||
</head>
|
||||
|
||||
{{- with .Site.Params.themeVariant }}
|
||||
<link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
{{- end }}
|
||||
<style>
|
||||
:root #header + #content > #left > #rlblock_left {
|
||||
display: none !important;
|
||||
}
|
||||
p, li, ul {
|
||||
text-align: center
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
</style>
|
||||
{{- partial "custom-header.html" . }}
|
||||
</head>
|
||||
<body class="" data-url="/">
|
||||
|
||||
<section id="body" style="margin-left:0px;">
|
||||
<div id="overlay"></div>
|
||||
<div id="chapter">
|
||||
<div id="body-inner">
|
||||
<h1>{{T "title-404"}}</h1>
|
||||
<p>
|
||||
</p>
|
||||
<p>{{T "message-404"}}</p>
|
||||
<h1>{{ T "title-404" }}</h1>
|
||||
<p></p>
|
||||
<p><a href='{{ "" | relLangURL }}'>{{T "Go-to-homepage"}}</a></p>
|
||||
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%" alt="Page not found!"></p>
|
||||
<p>{{ T "message-404" }}</p>
|
||||
<p></p>
|
||||
<p><a href="{{ "" | relLangURL }}">{{ T "Go-to-homepage" }}</a></p>
|
||||
<p><img src="{{ "/images/gopher-404.jpg" | relURL }}" style="width:50%" alt="Page not found!"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,22 +1,18 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{- partial "header.html" . }}
|
||||
{{- if eq .Kind "section" }}
|
||||
|
||||
{{ if eq .Kind "section" }}
|
||||
{{ partial "content.html" . }}
|
||||
{{end}}
|
||||
|
||||
{{ if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
<footer class=" footline" >
|
||||
{{with .Params.LastModifierDisplayName}}
|
||||
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</footer>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "content.html" . }}
|
||||
{{- end }}
|
||||
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
||||
<ul>
|
||||
{{- range .Pages }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
<footer class=" footline">
|
||||
{{- with .Params.LastModifierDisplayName }}
|
||||
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{ with $.Date }} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{ end }}
|
||||
{{- end }}
|
||||
</footer>
|
||||
{{- partial "footer.html" . }}
|
|
@ -1,12 +1,9 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{- partial "header.html" . }}
|
||||
|
||||
{{ partial "content.html" . }}
|
||||
|
||||
<footer class="footline">
|
||||
{{with .Params.LastModifierDisplayName}}
|
||||
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</footer>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
<footer class="footline">
|
||||
{{- with .Params.LastModifierDisplayName }}
|
||||
<i class='fas fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{ with $.Date }} <i class='fas fa-calendar'></i> {{ .Format "02/01/2006" }}{{ end }}
|
||||
{{- end }}
|
||||
</footer>
|
||||
{{- partial "footer.html" . }}
|
|
@ -1,4 +1,4 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{- partial "header.html" . }}
|
||||
<span id="sidebar-toggle-span">
|
||||
<a href="#" id="sidebar-toggle" data-sidebar-toggle=""><i class="fas fa-bars"></i> navigation</a>
|
||||
</span>
|
||||
|
@ -16,4 +16,4 @@
|
|||
<li><b>3. </b> Configure your server to automatically redirect home page to one your documentation page</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{- partial "footer.html" . }}
|
|
@ -1 +1 @@
|
|||
{{ .Content }}
|
||||
{{ .Content }}
|
|
@ -1,3 +1,3 @@
|
|||
<!-- import your comments system
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
-->
|
||||
-->
|
|
@ -1,5 +1,5 @@
|
|||
<!-- Partial intended to be overwritten with tags loaded at the end of the page loading (usually for Javascript)
|
||||
<script>
|
||||
console.log("running some javascript");
|
||||
console.log("running some javascript");
|
||||
</script>
|
||||
-->
|
||||
-->
|
|
@ -1,5 +1,5 @@
|
|||
<!-- Partial intended to be overwritten to add custom headers, like CSS or any other info
|
||||
<style type="text/css">
|
||||
/* Custom css */
|
||||
/* Custom css */
|
||||
</style>
|
||||
-->
|
|
@ -1 +1 @@
|
|||
<link rel="icon" href="{{"images/favicon.png" | relURL}}" type="image/png">
|
||||
<link rel="icon" href="{{"images/favicon.png" | relURL}}" type="image/png">
|
|
@ -1,25 +1,21 @@
|
|||
{{ if .Params.chapter }}
|
||||
</div> <!-- end chapter-->
|
||||
{{ end }}
|
||||
{{- if .Params.chapter }}
|
||||
</div> <!-- end chapter-->
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ partial "custom-comments.html" . }}
|
||||
{{- partial "custom-comments.html" . }}
|
||||
</div>
|
||||
<div id="navigation">
|
||||
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
||||
{{- if $showPrevNext }}
|
||||
{{- with ($.Scratch.Get "relearnPrevPage") }}
|
||||
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fa fa-chevron-left"></i></a>
|
||||
{{- end}}
|
||||
{{- with ($.Scratch.Get "relearnNextPage") }}
|
||||
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fa fa-chevron-right"></i></a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
|
||||
<div id="navigation">
|
||||
<!-- Next prev page -->
|
||||
{{$showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev))}}
|
||||
{{if $showPrevNext}}
|
||||
{{with ($.Scratch.Get "relearnPrevPage")}}
|
||||
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fa fa-chevron-left"></i></a>
|
||||
{{end}}
|
||||
{{with ($.Scratch.Get "relearnNextPage")}}
|
||||
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fa fa-chevron-right"></i></a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
||||
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
||||
</div>
|
||||
|
@ -30,28 +26,28 @@
|
|||
<script src="{{"js/jquery.svg.pan.zoom.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script src="{{"js/modernizr.custom-3.6.0.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
{{ if (or (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (not .Site.Params.disableMermaid)) }}
|
||||
{{ if isset .Params "custommermaidurl" }}
|
||||
<script src="{{ .Params.customMermaidURL }}"></script>
|
||||
{{ else if isset .Site.Params "custommermaidurl" }}
|
||||
<script src="{{ .Site.Params.customMermaidURL }}"></script>
|
||||
{{ else }}
|
||||
<script src="{{"js/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
{{ end }}
|
||||
{{ if isset .Params "mermaidinitialize" }}
|
||||
{{ $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }}
|
||||
{{ else if isset .Site.Params "mermaidinitialize" }}
|
||||
{{ $.Scratch.Set "mermaidInitialize" .Site.Params.mermaidInitialize }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
|
||||
{{ end }}
|
||||
<script>
|
||||
if (mermaid) {
|
||||
mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) );
|
||||
}
|
||||
</script>
|
||||
{{ end }}
|
||||
{{- if (or (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (not .Site.Params.disableMermaid)) }}
|
||||
{{- if isset .Params "custommermaidurl" }}
|
||||
<script src="{{ .Params.customMermaidURL }}"></script>
|
||||
{{- else if isset .Site.Params "custommermaidurl" }}
|
||||
<script src="{{ .Site.Params.customMermaidURL }}"></script>
|
||||
{{- else }}
|
||||
<script src="{{"js/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
{{- end }}
|
||||
{{- if isset .Params "mermaidinitialize" }}
|
||||
{{- $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }}
|
||||
{{- else if isset .Site.Params "mermaidinitialize" }}
|
||||
{{- $.Scratch.Set "mermaidInitialize" .Site.Params.mermaidInitialize }}
|
||||
{{- else }}
|
||||
{{- $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
|
||||
{{- end }}
|
||||
<script>
|
||||
if (mermaid) {
|
||||
mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) );
|
||||
}
|
||||
</script>
|
||||
{{- end }}
|
||||
<script src="{{"js/relearn.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
{{ partial "custom-footer.html" . }}
|
||||
{{- partial "custom-footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{{ hugo.Generator -}}
|
||||
{{ partial "meta.html" . }}
|
||||
{{- partial "meta.html" . }}
|
||||
{{ partial "favicon.html" . }}
|
||||
<title>{{ .Title }} {{ default "::" .Site.Params.titleSeparator }} {{ .Site.Title }}</title>
|
||||
|
||||
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
|
@ -17,104 +17,98 @@
|
|||
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/tabs.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
<link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
{{with .Site.Params.themeVariant}}
|
||||
{{- with .Site.Params.themeVariant }}
|
||||
<link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
{{end}}
|
||||
{{ range .Site.Params.custom_css -}}
|
||||
{{- end }}
|
||||
{{- range .Site.Params.custom_css }}
|
||||
<link href="{{(printf "%s" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
||||
{{- end }}
|
||||
|
||||
<script src="{{"js/jquery.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
|
||||
<style>
|
||||
:root #header + #content > #left > #rlblock_left{
|
||||
display:none !important;
|
||||
display:none !important;
|
||||
}
|
||||
{{ if .Site.Params.disableInlineCopyToClipBoard }}
|
||||
{{- if .Site.Params.disableInlineCopyToClipBoard }}
|
||||
:not(pre) > code + span.copy-to-clipboard {
|
||||
display: none;
|
||||
}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</style>
|
||||
{{ partial "custom-header.html" . }}
|
||||
{{- partial "custom-header.html" . }}
|
||||
</head>
|
||||
<body class="" data-url="{{ .RelPermalink }}">
|
||||
{{ partial "menu.html" . }}
|
||||
<section id="body">
|
||||
<div id="overlay"></div>
|
||||
<div class="padding highlightable">
|
||||
{{if not .IsHome}}
|
||||
<div>
|
||||
<div id="top-bar">
|
||||
{{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
|
||||
{{ $File := .File }}
|
||||
{{ $Site := .Site }}
|
||||
{{with $File.Path }}
|
||||
<div id="top-github-link">
|
||||
<a class="github-link" title='{{T "Edit-this-page"}}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
||||
<i class="fas fa-code-branch"></i>
|
||||
<span id="top-github-link-text">{{T "Edit-this-page"}}</span>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{$toc := (and (not .Params.disableToc) (not .Params.chapter))}}
|
||||
<div id="breadcrumbs">
|
||||
<span id="sidebar-toggle-span">
|
||||
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
|
||||
<i class="fas fa-bars"></i>
|
||||
</a>
|
||||
</span>
|
||||
{{ if $toc }}
|
||||
<span id="toc-menu"><i class="fas fa-list-alt"></i></span>
|
||||
{{ end }}
|
||||
{{$showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb))}}
|
||||
{{if $showBreadcrumb}}
|
||||
<ol class="links" itemscope itemtype="http://schema.org/BreadcrumbList">
|
||||
<meta itemprop="itemListOrder" content="Descending" />
|
||||
{{ template "breadcrumb" dict "page" . "depth" 0 }}
|
||||
</ol>
|
||||
{{ else }}
|
||||
<span class="links">
|
||||
{{ .Title }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if $toc }}
|
||||
{{ partial "toc.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- partial "menu.html" . }}
|
||||
<section id="body">
|
||||
<div id="overlay"></div>
|
||||
<div class="padding highlightable">
|
||||
{{- if not .IsHome }}
|
||||
<div>
|
||||
<div id="top-bar">
|
||||
{{- if and (or .IsPage .IsSection) .Site.Params.editURL }}
|
||||
{{- $File := .File }}
|
||||
{{- $Site := .Site }}
|
||||
{{- with $File.Path }}
|
||||
<div id="top-github-link">
|
||||
<a class="github-link" title='{{ T "Edit-this-page" }}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
||||
<i class="fas fa-code-branch"></i>
|
||||
<span id="top-github-link-text">{{T "Edit-this-page"}}</span>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div id="head-tags">
|
||||
{{ partial "tags.html" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $toc := (and (not .Params.disableToc) (not .Params.chapter)) }}
|
||||
<div id="breadcrumbs">
|
||||
<span id="sidebar-toggle-span">
|
||||
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
|
||||
<i class="fas fa-bars"></i>
|
||||
</a>
|
||||
</span>
|
||||
{{- if $toc }}
|
||||
<span id="toc-menu"><i class="fas fa-list-alt"></i></span>
|
||||
{{- end }}
|
||||
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
|
||||
{{- if $showBreadcrumb }}
|
||||
<ol class="links" itemscope itemtype="http://schema.org/BreadcrumbList">
|
||||
<meta itemprop="itemListOrder" content="Descending" />
|
||||
{{- template "breadcrumb" dict "page" . "depth" 0 }}
|
||||
</ol>
|
||||
{{- else }}
|
||||
<span class="links">
|
||||
{{ .Title }}
|
||||
</span>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- if $toc }}
|
||||
{{- partial "toc.html" . }}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ if .Params.chapter }}
|
||||
<div id="chapter">
|
||||
{{ end }}
|
||||
<div id="body-inner">
|
||||
{{if and (not .IsHome) (not .Params.chapter) }}
|
||||
<h1>
|
||||
{{ if eq .Kind "term" }}
|
||||
{{.Data.Singular}} ::
|
||||
{{ end }}
|
||||
{{.Title}}
|
||||
</h1>
|
||||
{{end}}
|
||||
|
||||
{{define "breadcrumb"}}
|
||||
{{$parent := .page.Parent }}
|
||||
{{$depth := add .depth 1 }}
|
||||
{{ if $parent }}
|
||||
{{ template "breadcrumb" dict "page" $parent "depth" $depth }}
|
||||
{{end}}
|
||||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">
|
||||
<meta itemprop="position" content="{{ $depth }}" />
|
||||
<a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}>
|
||||
<span itemprop="name">{{ .page.Title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ if .depth }}
|
||||
>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="head-tags">
|
||||
{{- partial "tags.html" . }}
|
||||
</div>
|
||||
{{- if .Params.chapter }}
|
||||
<div id="chapter">
|
||||
{{- end }}
|
||||
<div id="body-inner">
|
||||
{{- if and (not .IsHome) (not .Params.chapter) }}
|
||||
<h1>
|
||||
{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}
|
||||
</h1>
|
||||
{{- end }}
|
||||
{{- define "breadcrumb" }}
|
||||
{{- $parent := .page.Parent }}
|
||||
{{- $depth := add .depth 1 }}
|
||||
{{- if $parent }}
|
||||
{{- template "breadcrumb" dict "page" $parent "depth" $depth }}
|
||||
{{- end }}
|
||||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">
|
||||
<meta itemprop="position" content="{{ $depth }}" />
|
||||
<a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}>
|
||||
<span itemprop="name">{{ .page.Title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{- if .depth }}
|
||||
>
|
||||
{{- end }}
|
||||
{{- end }}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1,2 @@
|
|||
<p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn"><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"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p>
|
|
@ -1 +1 @@
|
|||
{{ .Params.Post | safeHTML }}
|
||||
{{ .Params.Post | safeHTML }}
|
|
@ -1 +1 @@
|
|||
{{ .Params.Pre | safeHTML }}
|
||||
{{ .Params.Pre | safeHTML }}
|
|
@ -1,145 +1,141 @@
|
|||
<nav id="sidebar" class="{{if $.Site.Params.showVisitedLinks }}showVisitedLinks{{end}}">
|
||||
{{ $currentNode := . }}
|
||||
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||
|
||||
<nav id="sidebar" class="{{ if $.Site.Params.showVisitedLinks }}showVisitedLinks{{ end }}">
|
||||
{{- $currentNode := . }}
|
||||
{{- $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||
<div id="header-wrapper">
|
||||
<div id="header">
|
||||
{{ partial "logo.html" . }}
|
||||
{{- partial "logo.html" . }}
|
||||
</div>
|
||||
{{if not .Site.Params.disableSearch}}
|
||||
{{ partial "search.html" . }}
|
||||
{{end}}
|
||||
{{- if not .Site.Params.disableSearch }}
|
||||
{{ partial "search.html" . }}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{if not .Site.Params.disableLandingPageButton }}
|
||||
<section id="homelinks">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="padding" href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">{{ .Site.Params.landingPageName | default `<i class="fas fa-home"></i> Home` | safeHTML }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
{{- if not .Site.Params.disableLandingPageButton }}
|
||||
<section id="homelinks">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="padding" href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">{{ .Site.Params.landingPageName | default `<i class="fas fa-home"></i> Home` | safeHTML }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
{{- end }}
|
||||
<div class="highlightable">
|
||||
<ul class="topics">
|
||||
{{if eq .Site.Params.ordersectionsby "title"}}
|
||||
{{range .Site.Home.Sections.ByTitle}}
|
||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" false }}
|
||||
{{end}}
|
||||
{{else}}
|
||||
{{range .Site.Home.Sections.ByWeight}}
|
||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" false }}
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{- if eq .Site.Params.ordersectionsby "title" }}
|
||||
{{- range .Site.Home.Sections.ByTitle }}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" false }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- range .Site.Home.Sections.ByWeight }}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" false }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle }}
|
||||
{{- with .Site.Menus.shortcuts }}
|
||||
<section id="shortcuts">
|
||||
<h3>{{ if not $disableShortcutsTitle }}{{ T "Shortcuts-Title" }}{{ end }}</h3>
|
||||
<ul>
|
||||
{{- range sort . "Weight" }}
|
||||
<li>
|
||||
{{ .Pre }}<a class="padding" href="{{ .URL | absLangURL }}">{{ safeHTML .Name }}</a>{{ .Post }}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{- end }}
|
||||
|
||||
{{ $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle}}
|
||||
{{with .Site.Menus.shortcuts}}
|
||||
<section id="shortcuts">
|
||||
<h3>{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}</h3>
|
||||
<ul>
|
||||
{{ range sort . "Weight"}}
|
||||
<li>
|
||||
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}">{{safeHTML .Name}}</a>{{.Post}}
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</section>
|
||||
{{end}}
|
||||
{{- if or .Site.IsMultiLingual $showvisitedlinks }}
|
||||
<section id="prefooter">
|
||||
<hr/>
|
||||
<ul>
|
||||
{{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton) }}
|
||||
<li>
|
||||
<a class="padding">
|
||||
<i class="fas fa-language fa-fw"></i>
|
||||
<div class="select-style">
|
||||
<select id="select-language" onchange="location = this.value;">
|
||||
{{- $siteLanguages := .Site.Languages }}
|
||||
{{- $pageLang := .Page.Lang }}
|
||||
{{- range .Page.AllTranslations }}
|
||||
{{- $translation := . }}
|
||||
{{- range $siteLanguages }}
|
||||
{{- if eq $translation.Lang .Lang }}
|
||||
{{- $selected := false }}
|
||||
{{- if eq $pageLang .Lang }}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}</option>
|
||||
{{- else }}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</select>
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="255px" height="255px" viewBox="0 0 255 255" style="enable-background:new 0 0 255 255;" xml:space="preserve">
|
||||
<g>
|
||||
<g id="arrow-drop-down">
|
||||
<polygon points="0,63.75 127.5,191.25 255,63.75 " />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
|
||||
{{ if or .Site.IsMultiLingual $showvisitedlinks }}
|
||||
<section id="prefooter">
|
||||
<hr/>
|
||||
<ul>
|
||||
{{ if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
|
||||
<li>
|
||||
<a class="padding">
|
||||
<i class="fas fa-language fa-fw"></i>
|
||||
<div class="select-style">
|
||||
<select id="select-language" onchange="location = this.value;">
|
||||
{{ $siteLanguages := .Site.Languages}}
|
||||
{{ $pageLang := .Page.Lang}}
|
||||
{{ range .Page.AllTranslations }}
|
||||
{{ $translation := .}}
|
||||
{{ range $siteLanguages }}
|
||||
{{ if eq $translation.Lang .Lang }}
|
||||
{{ $selected := false }}
|
||||
{{ if eq $pageLang .Lang}}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}</option>
|
||||
{{ else }}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</select>
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="255px" height="255px" viewBox="0 0 255 255" style="enable-background:new 0 0 255 255;" xml:space="preserve">
|
||||
<g>
|
||||
<g id="arrow-drop-down">
|
||||
<polygon points="0,63.75 127.5,191.25 255,63.75 " />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
|
||||
{{ if $showvisitedlinks}}
|
||||
<li><a class="padding" href="#" data-clear-history-toggle=""><i class="fas fa-history fa-fw"></i> {{T "Clear-History"}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{- if $showvisitedlinks }}
|
||||
<li><a class="padding" href="#" data-clear-history-toggle=""><i class="fas fa-history fa-fw"></i> {{ T "Clear-History" }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{- end }}
|
||||
<section id="footer">
|
||||
{{ partial "menu-footer.html" . }}
|
||||
{{- partial "menu-footer.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- templates -->
|
||||
{{ define "section-tree-nav" }}
|
||||
{{ $showvisitedlinks := .showvisitedlinks }}
|
||||
{{ $currentNode := .currentnode }}
|
||||
{{ $currentFileUniqueID := "" }}
|
||||
{{ $alwaysopen := .alwaysopen }}
|
||||
{{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
|
||||
{{with .sect}}
|
||||
{{ $hidden := and (eq (.Scratch.Get "relearnIsHiddenFromCurrent") true) (not $.showhidden) (not (.IsAncestor $currentNode))}}
|
||||
{{if $hidden }}
|
||||
{{else if .IsSection }}
|
||||
{{safeHTML .Params.head}}
|
||||
{{ $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}
|
||||
{{- define "section-tree-nav" }}
|
||||
{{- $showvisitedlinks := .showvisitedlinks }}
|
||||
{{- $currentNode := .currentnode }}
|
||||
{{- $currentFileUniqueID := "" }}
|
||||
{{- $alwaysopen := .alwaysopen }}
|
||||
{{- with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
|
||||
{{- with .sect }}
|
||||
{{- $hidden := and (eq (.Scratch.Get "relearnIsHiddenFromCurrent") true) (not $.showhidden) (not (.IsAncestor $currentNode)) }}
|
||||
{{- if $hidden }}
|
||||
{{- else if .IsSection }}
|
||||
{{- safeHTML .Params.head }}
|
||||
{{- $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}
|
||||
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item{{if eq .File.UniqueID $currentFileUniqueID}} active{{end}}{{if .IsAncestor $currentNode }} parent{{end}}{{if $currentAlwaysopen}} alwaysopen{{end}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }}
|
||||
{{ if $showvisitedlinks}}<i class="fas fa-check read-icon"></i>{{end}}
|
||||
{{ partial "menu-pre.html" . }}{{ or .Params.menuTitle .LinkTitle .Title }}{{ partial "menu-post.html" . }}
|
||||
{{ if $showvisitedlinks }}<i class="fas fa-check read-icon"></i>{{ end }}
|
||||
</a>
|
||||
<ul>
|
||||
{{ $currentNode.Scratch.Set "pages" .Pages }}
|
||||
{{ if .Sections}}
|
||||
{{ $currentNode.Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{end}}
|
||||
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
||||
|
||||
{{if eq .Site.Params.ordersectionsby "title"}}
|
||||
{{ range $pages.ByTitle }}
|
||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" true}}
|
||||
{{ end }}
|
||||
{{else}}
|
||||
{{ range $pages.ByWeight }}
|
||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" true}}
|
||||
{{ end }}
|
||||
{{end}}
|
||||
{{- $currentNode.Scratch.Set "pages" .Pages }}
|
||||
{{- if .Sections}}
|
||||
{{- $currentNode.Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{- end }}
|
||||
{{- $pages := ($currentNode.Scratch.Get "pages") }}
|
||||
{{- if eq .Site.Params.ordersectionsby "title" }}
|
||||
{{- range $pages.ByTitle }}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" true}}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- range $pages.ByWeight }}
|
||||
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" true}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{else}}
|
||||
{{- else }}
|
||||
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item{{if eq .File.UniqueID $currentFileUniqueID}} active{{end}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }}
|
||||
{{ if $showvisitedlinks}}<i class="fas fa-check read-icon"></i>{{end}}
|
||||
{{ partial "menu-pre.html" . }}{{ or .Params.menuTitle .LinkTitle .Title }}{{ partial "menu-post.html" . }}
|
||||
{{ if $showvisitedlinks }}<i class="fas fa-check read-icon"></i>{{ end }}
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -1,16 +1,16 @@
|
|||
<div class="searchbox">
|
||||
<label for="search-by"><i class="fas fa-search"></i></label>
|
||||
<input data-search-input id="search-by" type="search" placeholder="{{T "Search-placeholder"}}">
|
||||
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script type="text/javascript">
|
||||
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
|
||||
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
|
||||
var index_url={{"index.json" | relLangURL}};
|
||||
var root_url="/";
|
||||
var baseUri=root_url.replace(/\/$/, '');
|
||||
</script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<div class="searchbox">
|
||||
<label for="search-by"><i class="fas fa-search"></i></label>
|
||||
<input data-search-input id="search-by" type="search" placeholder="{{ T "Search-placeholder" }}">
|
||||
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
||||
<script type="text/javascript">
|
||||
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
|
||||
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
|
||||
var index_url={{"index.json" | relLangURL}};
|
||||
var root_url="/";
|
||||
var baseUri=root_url.replace(/\/$/, '');
|
||||
</script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
@ -1,7 +1,8 @@
|
|||
{{ if .Params.tags }}
|
||||
|
||||
{{- if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{range .Params.tags}}
|
||||
{{- range .Params.tags }}
|
||||
<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{end}}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{end}}
|
||||
{{- end }}
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
<div class="progress">
|
||||
<div class="wrapper">
|
||||
<div class="wrapper">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue