feat: add Prettier with go-template and toml plugins, format all files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 13:18:05 +02:00
parent b78bc26322
commit 436223913e
36 changed files with 1765 additions and 1178 deletions
+11 -10
View File
@@ -2,15 +2,16 @@
Renders a Hugo image resource as an optimised WebP <img> with responsive srcset.
Parameters:
res — Hugo image resource (required)
widths — slice of pixel widths to generate, e.g. (slice 600 1200)
default: (slice 800 1600)
sizes — value for the <img sizes> attribute
default: "100vw"
class — CSS classes applied to <img>
alt — alt text (default "")
loading — "lazy" or "eager" (default "lazy")
*/ -}}
res — Hugo image resource (required)
widths — slice of pixel widths to generate, e.g. (slice 600 1200)
default: (slice 800 1600)
sizes — value for the <img sizes> attribute
default: "100vw"
class — CSS classes applied to <img>
alt — alt text (default "")
loading — "lazy" or "eager" (default "lazy")
*/
-}}
{{- $res := .res -}}
{{- $widths := .widths | default (slice 800 1600) -}}
{{- $sizes := .sizes | default "100vw" -}}
@@ -35,4 +36,4 @@
height="{{ $primary.Height }}"
loading="{{ $loading }}"
decoding="async"
>
/>