janraasch / hugo-bearblog

🧸 A Hugo theme based on »Bear Blog«. Free, no-nonsense, super-fast blogging. This theme now includes a dark color scheme to support dark mode 🦉 ⬛️!
https://themes.gohugo.io/hugo-bearblog/
MIT License
902 stars 222 forks source link

Footer and `custom_body.html` order #92

Closed rkudryashov closed 6 months ago

rkudryashov commented 7 months ago

Is it possible to define where to insert custom_body.html? Currently, it is inserted after the footer:

<body>
  <header>
    {{- partial "header.html" . -}}
  </header>
  <main>
    {{- block "main" . }}{{- end }}
  </main>
  <footer>
    {{- partial "footer.html" . -}}
  </footer>

  <!-- A partial to be overwritten by the user.
  Simply place a custom_body.html into
  your local /layouts/partials-directory -->
  {{- partial "custom_body.html" . -}}
</body>

But if I want to add some commenting system (Disqus, giscus, etc.), its widget will appear after the footer. Of course, I can change baseof.html but I think there is a better solution.

Also, are there plans to support comments out of the box?