mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 15:11:24 -04:00
docs: add showcase page (#86)
* docs: add showcase page * chore: update compiled CSS * chore: add showcase to navbar * chore: reorder show case on navbar * chore: update card image style * chore: update showcase images * chore: update showcase card image
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
{{- $image := .Get "image" -}}
|
||||
{{- $width := 0 -}}
|
||||
{{- $height := 0 -}}
|
||||
{{- $imageStyle := .Get "imageStyle" -}}
|
||||
|
||||
{{/* Image processing options */}}
|
||||
{{- $method := .Get "method" | default "Resize" | humanize -}}
|
||||
@ -58,10 +59,10 @@
|
||||
alt="{{ $title }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
style="color: transparent;"
|
||||
src="{{ $image | safeURL }}"
|
||||
{{ with $width }}width="{{ . }}"{{ end }}
|
||||
{{ with $height }}height="{{ . }}"{{ end }}
|
||||
{{ with $imageStyle }}style="{{ . | safeCSS }}"{{ end }}
|
||||
/>
|
||||
{{- end -}}
|
||||
|
||||
|
Reference in New Issue
Block a user