fix(head): scroll to top element not found error

This commit is contained in:
ZhenShuo Leo
2025-10-04 07:36:22 +08:00
parent b9a45ea2a9
commit c599c3489e

View File

@@ -27,7 +27,7 @@
<div class="relative flex flex-col grow">
<main id="main-content" class="grow">
{{ block "main" . }}{{ end }}
{{ if and (site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
{{ if and (site.Params.footer.showScrollToTop | default true) }}
{{- partial "scroll-to-top.html" . -}}
{{ end }}
</main>