]> danix's work - danix.xyz-2.git/commitdiff
feat: include back-to-top button on single pages
authorDanilo M. <redacted>
Mon, 20 Apr 2026 20:17:46 +0000 (22:17 +0200)
committerDanilo M. <redacted>
Mon, 20 Apr 2026 20:17:46 +0000 (22:17 +0200)
themes/danix-xyz-hacker/layouts/_default/baseof.html

index 72aefba6a8e0386a8501132469fe1a16bdfcf622..c22e9902bfa2a3bde3a773874ac8a246e78be759 100644 (file)
@@ -31,6 +31,7 @@
     class="fixed top-0 left-0 h-1 transition-all duration-100"
     style="width: 0%; background: linear-gradient(to right, var(--accent), var(--accent2)); z-index: 9999;"
   ></div>
+  {{ partial "back-to-top.html" . }}
   {{ end }}
   <!-- Skip to main content link -->
   <a href="#main" class="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-accent focus:text-white focus:rounded">