From 818c2db411f3ac70688433899554cfc0cfa06aa0 Mon Sep 17 00:00:00 2001 From: logikonline Date: Mon, 16 Mar 2026 21:43:46 -0400 Subject: [PATCH] feat(pages): add blog reading enhancements and gallery lightbox Add reading progress bar, table of contents sidebar, and back-to-top button for blog post detail pages. TOC auto-generates from h1-h4 headings with smooth scroll navigation and active section highlighting. Sidebar expands on hover from left edge. Add lightbox for gallery images with keyboard navigation (arrows, escape) and captions. Back-to-top button appears after 400px scroll on all pages. All features use inline styles for portability and minimal CSS conflicts. --- templates/base/footer.tmpl | 14 ++ templates/pages/base_footer.tmpl | 187 ++++++++++++++++++++++++++ templates/pages/base_head.tmpl | 2 +- templates/pages/bold-marketing.tmpl | 4 +- templates/pages/minimalist-docs.tmpl | 4 +- templates/pages/open-source-hero.tmpl | 4 +- templates/pages/saas-conversion.tmpl | 4 +- templates/repo/header.tmpl | 2 +- 8 files changed, 211 insertions(+), 10 deletions(-) diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 3af66e7369..72213b841a 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -10,5 +10,19 @@ {{template "custom/body_outer_post" .}} {{template "base/footer_content" .}} {{template "custom/footer" .}} + + diff --git a/templates/pages/base_footer.tmpl b/templates/pages/base_footer.tmpl index ae5ba1b38c..173f1394d2 100644 --- a/templates/pages/base_footer.tmpl +++ b/templates/pages/base_footer.tmpl @@ -1,3 +1,190 @@ +{{if .GalleryImages}} + + +{{end}} +{{if .PageIsBlogDetail}} + +
+
+
+ + + + + + + + +{{end}} {{if .ABTestActive}}