mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-02-06 20:03:31 +08:00
Card-style Hugo theme designed for bloggers
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
![logo](https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png)
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🙏.