From beb62373ad8330e33840ae14d5eb24441d97b543 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 16 Apr 2026 14:52:16 +0200 Subject: 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 --- themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html | 1 + themes/danix-xyz-hacker/layouts/shortcodes/em.html | 1 + themes/danix-xyz-hacker/layouts/shortcodes/figure.html | 8 ++++++++ themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html | 3 +++ themes/danix-xyz-hacker/layouts/shortcodes/highlight.html | 3 +++ themes/danix-xyz-hacker/layouts/shortcodes/img.html | 1 + themes/danix-xyz-hacker/layouts/shortcodes/strike.html | 1 + themes/danix-xyz-hacker/layouts/shortcodes/youtube.html | 1 + 8 files changed, 19 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/em.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/figure.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/highlight.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/img.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/strike.html create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/youtube.html (limited to 'themes/danix-xyz-hacker/layouts/shortcodes') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html b/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html new file mode 100644 index 0000000..6114678 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html @@ -0,0 +1 @@ +{{ .Inner }} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/em.html b/themes/danix-xyz-hacker/layouts/shortcodes/em.html new file mode 100644 index 0000000..a3a096c --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/em.html @@ -0,0 +1 @@ +{{ .Inner }} 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" -}} +
+ {{- if $src -}}{{ $alt }}{{ end -}} + {{- .Inner -}} + {{- if .Get "caption" -}}
{{ .Get "caption" }}
{{ end -}} +
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html b/themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html new file mode 100644 index 0000000..b9f8098 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/gal-img.html @@ -0,0 +1,3 @@ +
+ {{ .Get +
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/highlight.html b/themes/danix-xyz-hacker/layouts/shortcodes/highlight.html new file mode 100644 index 0000000..1b6f12a --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/highlight.html @@ -0,0 +1,3 @@ +{{- $lang := .Get 0 -}} +{{- $opts := .Get 1 | default "" -}} +{{ highlight .Inner $lang $opts }} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/img.html b/themes/danix-xyz-hacker/layouts/shortcodes/img.html new file mode 100644 index 0000000..2393928 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/img.html @@ -0,0 +1 @@ +{{ .Get diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/strike.html b/themes/danix-xyz-hacker/layouts/shortcodes/strike.html new file mode 100644 index 0000000..275b7c1 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/strike.html @@ -0,0 +1 @@ +{{ .Inner }} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/youtube.html b/themes/danix-xyz-hacker/layouts/shortcodes/youtube.html new file mode 100644 index 0000000..80cbb93 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/youtube.html @@ -0,0 +1 @@ + -- cgit v1.2.3