diff options
author | WingLim <643089849@qq.com> | 2021-09-25 08:13:44 +0300 |
---|---|---|
committer | WingLim <643089849@qq.com> | 2021-09-25 08:13:44 +0300 |
commit | 84b088fb0655fc4ef3216729e945958564d3da6b (patch) | |
tree | f1f9637ff6b38c67a3a58a54763e1fdbb762ff83 | |
parent | 1be74e2b9364dcbe3650b739cb6da0d8bcc08305 (diff) |
feat: add custom footer
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer/custom.html | 0 | ||||
-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 |