22edce91ab
feat: add responsive image support ( #1283 )
...
* feat: create responsive-image helper
* feat: new responsive-image helper
* feat: Implement responsive image rendering in page content using a new partial and configure image processing widths.
* feat: add `sizes` attribute for enhanced image responsiveness
* feat: add responsive image to page header too
* Check for `.Enabled` before processing image
* style: remove wrong article-list--tile width and height
* feat: add `helper/thumbnail-image` for responsive thumbnails
* feat: enable content image processing and update responsive image `sizes` attributes for improved display.
* fix: get src from the attributes so external image can work correctly
* fix: add missing data-title-escaped
* Update layouts/_partials/article/components/header.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* feat: remove default `true` for thumbnail resize parameter.
* Update layouts/_markup/render-image.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update layouts/_partials/helper/thumbnail-image.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* add original width and height to thumbnail pictures, for case that resize is not enabled
* Update layouts/_partials/helper/thumbnail-image.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 23:32:33 +01:00
Jimmy and GitHub
78800c7379
fix: keep external image url, and use reflect.IsImageResourceProcessable to check for svg and other non-processable image formats ( #1282 )
...
* fix: keep external image url, and use reflect.IsImageResourceProcessable to check for svg
* build: update Hugo version to 0.157.0 in the build script.
* docs: remove `Local` return value and simplify `Resource` description in image helper
* Check for reflect.IsImageResourceProcessable before getting color from image
* chore: update minimum Hugo version to 0.157.0
2026-03-04 13:05:17 +01:00
Jimmy and GitHub
31022581d8
refactor: image logic in page ( #1255 )
...
* fix: add SVG check in helper/image before accessing .Width and .Height
* refactor: drop image resizing logic in render-image, and use helper/image to process image
* fix: render-image $permalink not correct
2026-01-30 15:07:14 +01:00
Jimmy and GitHub
bc54cecf0a
refactor: centralize page filtering logic, and allow sort by lastmod ( #1250 )
...
* refactor: migrate page visibility control from `Params.hidden` to the new `build.list` parameter.
* refactor: centralize page filtering logic into a new `helper/pages.html` partial
* feat: introduce `SortBy` parameter to enable sorting pages by last modified date
* refactor: extract page sorting logic into a new `pages-sort.html` partial
2026-01-27 12:34:15 +01:00
Jimmy and GitHub
deceb17144
refactor: migrate page visibility control from Params.hidden to the new build.list parameter. ( #1249 )
...
* refactor: migrate page visibility control from `Params.hidden` to the new `build.list` parameter.
* Rename rss.xml to home.rss.xml
2026-01-27 12:00:40 +01:00
Jimmy and GitHub
067bcdb370
refactor: image handling logic + support for external images ( #1235 )
...
* refactor: simplify image partial logic, remove generation of different image sizes
* Remove `defaultImage.opengraph` configuration from `params.toml`.
2026-01-25 23:29:41 +01:00
Jimmy and GitHub
9d9ecc4d00
fix: error when no page is found ( #1234 )
2026-01-25 23:12:28 +01:00
Jimmy and GitHub
5f1ab2bc76
refactor: migrate to new template system introduced in Hugo v0.146.0 ( #1232 )
...
See: https://gohugo.io/templates/new-templatesystem-overview/
2026-01-25 22:42:00 +01:00