mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
18
themes/minimo/layouts/partials/footer/copyright.html
Normal file
18
themes/minimo/layouts/partials/footer/copyright.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class='copyright'>
|
||||
<p>
|
||||
{{- with .Site.Copyright -}}
|
||||
{{ . }}
|
||||
{{- else -}}
|
||||
{{- with .Site.Params.copyright -}}
|
||||
|
||||
{{- with .startyear -}}
|
||||
{{- if lt ( int . ) now.Year -}}
|
||||
{{- $.Scratch.Set "copyrightStartYear" . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ .prefix | markdownify }} © {{ with ( $.Scratch.Get "copyrightStartYear" ) }}{{ . }}-{{ end }}{{ now.Year }} {{ or .holder $.Site.Title | markdownify }} {{ .suffix | markdownify }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</p>
|
||||
</div>
|
5
themes/minimo/layouts/partials/footer/extra.html
Normal file
5
themes/minimo/layouts/partials/footer/extra.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{/*
|
||||
If you need to add content to your page footer, override this template in your
|
||||
blog by creating a file named `/layout/partials/footer/extra.html`. This way
|
||||
you don't have to edit the theme itself.
|
||||
*/}}
|
16
themes/minimo/layouts/partials/footer/katex.html
Normal file
16
themes/minimo/layouts/partials/footer/katex.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- $defaultKatex := .Site.Data.config.default.katex -}}
|
||||
{{- $katex := ( or .Site.Data.config.katex $defaultKatex ) -}}
|
||||
|
||||
{{- if or ( eq .Params.katex true ) ( .HasShortcode "katex" ) -}}
|
||||
|
||||
<link rel='stylesheet' href='{{- $katex.library.css.main -}}'>
|
||||
<script src='{{- $katex.library.js.main -}}'></script>
|
||||
<script src='{{- $katex.library.js.autoRender -}}'></script>
|
||||
|
||||
<script type='text/javascript'>
|
||||
renderMathInElement(document.querySelector('.entry-content'),
|
||||
{{- $katex.options | jsonify | safeJS -}}
|
||||
);
|
||||
</script>
|
||||
|
||||
{{- end -}}
|
14
themes/minimo/layouts/partials/footer/mathjax.html
Normal file
14
themes/minimo/layouts/partials/footer/mathjax.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- $defaultMathjax := .Site.Data.config.default.mathjax -}}
|
||||
{{- $mathjax := ( or .Site.Data.config.mathjax $defaultMathjax ) -}}
|
||||
|
||||
{{- if eq .Params.mathjax true -}}
|
||||
|
||||
<script type='text/x-mathjax-config'>
|
||||
MathJax.Hub.Config(
|
||||
{{- $mathjax.config | jsonify -}}
|
||||
)
|
||||
</script>
|
||||
|
||||
<script type='text/javascript' async src='{{- $mathjax.library.path -}}{{- with $mathjax.library.config -}}?config={{- . -}}{{- end -}}'></script>
|
||||
|
||||
{{- end -}}
|
14
themes/minimo/layouts/partials/footer/mermaid.html
Normal file
14
themes/minimo/layouts/partials/footer/mermaid.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- $defaultMermaid := .Site.Data.config.default.mermaid -}}
|
||||
{{- $mermaid := ( or .Site.Data.config.mermaid $defaultMermaid ) -}}
|
||||
|
||||
{{- if eq .Params.mermaid true -}}
|
||||
|
||||
<script src='{{- $mermaid.library.path -}}' />
|
||||
|
||||
<script type='text/javascript'>
|
||||
mermaid.initialize(
|
||||
{{- $mermaid.config | jsonify | safeJS -}}
|
||||
);
|
||||
</script>
|
||||
|
||||
{{- end -}}
|
13
themes/minimo/layouts/partials/footer/scripts.html
Normal file
13
themes/minimo/layouts/partials/footer/scripts.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<script>window.__assets_js_src={{- "assets/js/" | relURL -}}</script>
|
||||
|
||||
<script src='{{ print "/assets/js/" .Site.Data.assets.main.js | relURL }}'></script>
|
||||
|
||||
{{- range .Site.Params.assets.customJS -}}
|
||||
<script src='{{ . | relURL }}'></script>
|
||||
{{- end -}}
|
||||
|
||||
{{ partial "footer/mathjax" . }}
|
||||
{{- partial "footer/katex" . -}}
|
||||
{{- partial "footer/mermaid" . -}}
|
||||
|
||||
{{ partial "footer/extra" . }}
|
Reference in New Issue
Block a user