diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-16 14:52:16 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-16 14:52:16 +0200 |
| commit | beb62373ad8330e33840ae14d5eb24441d97b543 (patch) | |
| tree | 47839ce3583e979121b63eefb17f6f33b0081ddf /themes/danix-xyz-hacker/layouts/shortcodes/figure.html | |
| parent | 71f577b171f6208fff7de47c7dad087955aa5fae (diff) | |
| download | danixxyz-beb62373ad8330e33840ae14d5eb24441d97b543.tar.gz danixxyz-beb62373ad8330e33840ae14d5eb24441d97b543.zip | |
feat: import 36 articles with assets and create supporting shortcodes
- Migrate all English articles from old site to content/en/articles/
- Organize article assets in static/uppies/year/month/ structure
- Create Italian article stubs with draft=true status
- Add 7 new shortcodes: strike, em, dropcap, figure, highlight, img, youtube, gal-img
- Update article image paths to reference /uppies/ locations
- All 36 articles now build successfully without errors
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/figure.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/shortcodes/figure.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/figure.html b/themes/danix-xyz-hacker/layouts/shortcodes/figure.html new file mode 100644 index 0000000..27d6cb2 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/figure.html @@ -0,0 +1,8 @@ +{{- $src := .Get "src" -}} +{{- $alt := .Get "alt" -}} +{{- $class := .Get "class" -}} +<figure class="my-6 {{ $class }}"> + {{- if $src -}}<img src="{{ $src }}" alt="{{ $alt }}" class="w-full" />{{ end -}} + {{- .Inner -}} + {{- if .Get "caption" -}}<figcaption class="text-sm text-text-dim mt-2">{{ .Get "caption" }}</figcaption>{{ end -}} +</figure> |
