Compare commits

..

5 Commits

Author SHA1 Message Date
ec315ea1b5 Improve taxonomy handling
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-09-13 15:01:59 +01:00
507708b242 Fix unhighlighted code styles
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-09-13 15:01:59 +01:00
f1ca91c9bc Add shell prompt support
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-09-13 15:01:59 +01:00
4c46e118c1 Fix layout bugs
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-09-13 15:01:58 +01:00
f207cf7472 Add image processing
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-09-13 15:01:23 +01:00

View File

@@ -25,28 +25,30 @@
{{- end -}}
{{- with $image -}}
{{ $full := . | images.Filter (images.Process "webp q90") }}
{{ $original := . }}
{{ $thumb := . }}
{{- if gt .Width 2000 -}}
{{- $thumb = . | images.Filter (images.Process "resize 2000x webp q75") -}}
{{ $full := $original | images.Filter (images.Process "webp q90") }}
{{ $thumb := $original }}
{{- if gt $original.Width 2000 -}}
{{- $thumb = $original | images.Filter (images.Process "resize 2000x webp q75") -}}
{{- else -}}
{{- $thumb = . | images.Filter (images.Process "webp q75") -}}
{{- $thumb = $original | images.Filter (images.Process "webp q75") -}}
{{- end -}}
<figure class="captioned-image lightbox">
<a
href="{{- .RelPermalink -}}"
data-pswp-src="{{- .RelPermalink -}}"
data-pswp-width="{{- .Width -}}"
data-pswp-height="{{- .Height -}}"
href="{{- $original.RelPermalink -}}"
data-pswp-src="{{- $full.RelPermalink -}}"
data-pswp-width="{{- $full.Width -}}"
data-pswp-height="{{- $full.Height -}}"
class="pswp-image"
>
<img
src="{{- $thumb.RelPermalink -}}"
width="{{- .Width -}}"
height="{{- .Height -}}"
width="{{- $thumb.Width -}}"
height="{{- $thumb.Height -}}"
loading="lazy"
{{ with $title }}title="{{- . -}}"{{ end }}
{{ with $alt }}alt="{{- . -}}"{{ end }}