Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WingLim/hugo-tania.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWingLim <643089849@qq.com>2021-09-25 08:13:44 +0300
committerWingLim <643089849@qq.com>2021-09-25 08:13:44 +0300
commit84b088fb0655fc4ef3216729e945958564d3da6b (patch)
treef1f9637ff6b38c67a3a58a54763e1fdbb762ff83
parent1be74e2b9364dcbe3650b739cb6da0d8bcc08305 (diff)
feat: add custom footer
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/footer/custom.html0
-rw-r--r--layouts/partials/footer/footer.html (renamed from layouts/partials/footer.html)3
3 files changed, 3 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 2179470..4a4a9e2 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -8,6 +8,6 @@
<main>
{{ block "main" . }}{{ end }}
</main>
- {{ partial "footer.html" . }}
+ {{ partial "footer/footer" . }}
</body>
</html> \ No newline at end of file
diff --git a/layouts/partials/footer/custom.html b/layouts/partials/footer/custom.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/footer/custom.html
diff --git a/layouts/partials/footer.html b/layouts/partials/footer/footer.html
index f301475..6c59006 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer/footer.html
@@ -34,4 +34,5 @@
{{- $opts := dict "minify" hugo.IsProduction -}}
{{ $features := resources.Get "ts/features.ts" | js.Build $opts | fingerprint }}
<script defer src="{{ $features.RelPermalink }}" data-enable-footnotes="{{ .Site.Params.enableFootnotes | default true }}"></script>
-</footer> \ No newline at end of file
+</footer>
+{{ partial "head/custom.html" . }} \ No newline at end of file