$ show apvarun/digital-garden-hugo-theme
This is a Hugo theme for building personal digital gardens/static sites. It provides templates, styles, and scripts for a responsive multi-column layout with dark mode, newsletter integration, portfolio showcase, and social media links. The architecture follows Hugo's theme structure with layouts in /layouts, assets in /assets, and an example site for demonstration. Key entry points are the base template (_default/baseof.html) and section-specific templates (articles, portfolio, stack). Data flows involve rendering Hugo content (Markdown) via templates, consuming site config (menus, params), and optional data files (stack.json). External dependencies include Hugo (>=0.121.1), Tailwind CSS, and optional services like Google Analytics and newsletter providers (Buttondown, Substack, Revue).
The LLM identified 2 files worth highlighting for reuse:
Implements sidebar toggle behavior, scroll position restoration for blog listings, and dark mode persistence via localStorage. This vanilla JavaScript module is framework-agnostic, depends only on DOM APIs, and can be extracted to any web project with minimal selector adjustments.
Provides a client-side search filter for article lists using vanilla JavaScript. Demonstrates a reusable pattern for filtering DOM elements by text content with input event handling. The logic is decoupled from Hugo-specific markup and can adapt to different list structures by adjusting selectors.