How can I change layouts (heavily)? #381
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sidebar ModulesI'd suggest removing those sidebar modules and write your own instead, for example, remove the posts and taxonomies modules. module:
imports:
- path: github.com/hbstack/blog/modules/sidebar/posts
- path: github.com/hbstack/blog/modules/sidebar/taxonomies The source codes can be found on https://github.com/hbstack/blog/tree/main/modules/sidebar, copy one as the starting, and replace the module path ( Optimized ImagesIt depends how do you store the images, for images resources (global or page resources), you can use Fingerprint to hash image resources, for You can use the image partial as well, since the theme imported that module, you can use it directly. |
Beta Was this translation helpful? Give feedback.
Sidebar Modules
I'd suggest removing those sidebar modules and write your own instead, for example, remove the posts and taxonomies modules.
The source codes can be found on https://github.com/hbstack/blog/tree/main/modules/sidebar, copy one as the starting, and replace the module path (
go.mod
), module name (assets and partials folder name, and the parameters prefix inhugo.toml
) with yours, to make sure it won't conflict with the existing modules, learn more on https://hbstack.dev/en/develop/module/.Optimized Images
It depends how do you store the i…