mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 09:02:29 +00:00
Tweak theme
This commit is contained in:
29
themes/custom-theme/layouts/partials/footer.html
Normal file
29
themes/custom-theme/layouts/partials/footer.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<footer>
|
||||
<div class="copyright">
|
||||
{{ with $.Site.Copyright }}
|
||||
{{ . | safeHTML }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ $jsBuildOptions := dict "target" "es6" }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $jsBuildOptions = $jsBuildOptions | merge (dict "minify" "true") }}
|
||||
{{ end }}
|
||||
|
||||
{{ $prism := resources.Get "js/prism.js" | resources.ExecuteAsTemplate "js/prism.js" . }}
|
||||
{{ $bundle := slice $prism | resources.Concat "js/main.js" | js.Build $jsBuildOptions }}
|
||||
{{ $flexsearch := resources.Get "js/flexsearch.js" | resources.ExecuteAsTemplate "js/flexsearch.js" . | js.Build $jsBuildOptions }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $bundle = $bundle | fingerprint "sha512" }}
|
||||
{{ $flexsearch = $flexsearch | fingerprint "sha512" }}
|
||||
{{ end }}
|
||||
|
||||
{{/* prettier-ignore-start */}}
|
||||
<script src="{{ $bundle.RelPermalink }}"></script>
|
||||
<script src="{{ $flexsearch.RelPermalink }}"></script>
|
||||
{{/* prettier-ignore-end */}}
|
||||
|
||||
<!-- Extensibility -->
|
||||
{{ partial "footer_end.html" . }}
|
Reference in New Issue
Block a user