How caijimmy/hugo-theme-stack works
Hugo Theme Stack is a card-style theme for bloggers. A site author supplies Hugo content and configuration; Hugo applies the theme’s page layouts and partials to produce a rendered site, with browser-side scripts and optional integrations adding interactive features. The tree identifies major rendering, search, comments, cookie-consent, and presentation modules, but only the README and go.mod were supplied as source text; layout and runtime connections below are therefore marked unverified.
Main entry points: baseof.html Base layout · list.html List layout · home.html Home layout · article.html Article renderer
Components 23
Page templates
- Base layout
layouts/baseof.html - Home layout
layouts/home.html - List layout
layouts/list.html - Single layout
layouts/single.html - Search page
layouts/page/search.html
Content presentation
- Article renderer
layouts/_partials/article/article.html - Article components
layouts/_partials/article/components - Article lists
layouts/_partials/article-list - Sidebar widgets
layouts/_partials/widget - Pagination
layouts/_partials/pagination.html - Head metadata
layouts/_partials/head/head.html - Theme styling
assets/scss/style.scss
Browser features
- Browser entry
assets/ts/main.ts - Search behavior
assets/ts/search.tsx - Image gallery
assets/ts/gallery.ts
Integrations
- Comment providers
layouts/_partials/comments - Cookie consent
layouts/_partials/cookies - Analytics consent
layouts/_partials/cookies/analytics.html
Other components
- Site author
- Hugo site
- Rendered site
- Comment services
- Analytics service
Connections 24
- Site author → Hugo site: provides content
README.md - Hugo site → Base layout: renders with
- Hugo site → Home layout: selects layout
- Hugo site → List layout: selects layout
- Hugo site → Single layout: selects layout
- Hugo site → Search page: selects layout
- Single layout → Article renderer: renders article
- Article renderer → Article components: uses components
- Home layout → Article lists: shows listings
- List layout → Article lists: shows listings
- List layout → Pagination: uses pagination
- Home layout → Sidebar widgets: shows widgets
- List layout → Sidebar widgets: shows widgets
- Base layout → Head metadata: includes metadata
- Base layout → Theme styling: loads styling
- Base layout → Browser entry: loads scripts
- Browser entry → Search behavior: uses search
- Article renderer → Image gallery: supports gallery
- Article components → Comment providers: offers comments
- Article components → Cookie consent: offers consent
- Cookie consent → Analytics consent: gates analytics
- Comment providers → Comment services: connects providers
- Analytics consent → Analytics service: loads analytics
- Base layout → Rendered site: produces pages