- Read this file for module overview
- See
~/Sites/hugo/CLAUDE.mdfor workspace-level context - See
~/Sites/hugo/modules/hugo-claris/root/CLAUDE.mdfor theme that uses this module
claris-resources provides general-purpose Hugo partials for resource handling. It is a dependency of hugo-claris and is NOT used directly by sites.
Located in layouts/partials/claris/_functions/resources/images/:
| Partial | Purpose |
|---|---|
process-image.html |
Main image processing entry point |
get-srcset.html |
Generate responsive srcset |
get-dimensions.html |
Calculate image dimensions |
parse-aspect-ratio.html |
Parse aspect ratio strings |
render-image-attrs.html |
Generate img tag attributes |
Located in layouts/partials/claris/_functions/resources/fonts/:
| Partial | Purpose |
|---|---|
preload.html |
Generate font preload links |
Located in layouts/partials/claris/_functions/resources/:
| Partial | Purpose |
|---|---|
get-resource.html |
Generic resource fetching |
sites/heimlicher.com
└── hugo-claris (theme)
└── claris-resources (THIS MODULE)
This module is included via hugo-claris's go.mod. Sites don't reference it directly.
When developing alongside hugo-claris:
- Both modules should be in
go.work - Changes here are immediately visible in
hugo-claris - No separate commit/push needed during development
Unlike hugo-claris, this module uses a single branch (main) without worktrees, since it's only included indirectly via hugo-claris.