forked from Sync/hugo-theme-stack
Card-style Hugo theme designed for bloggers
8dc2880a9c
Add `allowedTypes` and `resizableTypes` to `imageProcessing` configuration Prior to this commit, SVG images were not processed by `render-image.html` because SVG does not have a physical dimension like JPEG. This logic was done using a conditional. I have now realised that Hugo can be very slow when resizing `gif` images. So I created this whitelist mechanism: - `allowedTypes`: image types with width and height attributes - `resizableTypes`: image types that can be resized Here's a list of media types: bmp, gif, jpeg, png, svg+xml, tiff, webp https://gohugo.io/templates/output-formats/#media-types |
||
---|---|---|
.devcontainer | ||
.github | ||
archetypes | ||
assets | ||
config/_default | ||
data | ||
docs | ||
exampleSite | ||
i18n | ||
images | ||
layouts | ||
.gitignore | ||
go.mod | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
theme.toml |
Hugo Theme Stack
Card-style Hugo theme designed for bloggers.
Quickstart
Use this template: CaiJimmy/hugo-theme-stack-starter
Demo
Documentation
Visit stack.jimmycai.com
Copyright
Licensed under the GNU General Public License v3.0
Please do not remove the "Theme Stack designed by Jimmy" text and link.
If you want to port this theme to another blogging platform, please let me know🙏.