summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 15:50:40 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 15:50:40 +0200
commit722d094aab1f445fe438c3d4c4d1c04873399156 (patch)
tree2820425f22f78afa9bb54403d2fe4f36befd4bd9 /themes
parent61ac369b8cc84d277a2dfada19d39d39e190f6ea (diff)
downloaddanixxyz-722d094aab1f445fe438c3d4c4d1c04873399156.tar.gz
danixxyz-722d094aab1f445fe438c3d4c4d1c04873399156.zip
feat: create Photo article type template
Diffstat (limited to 'themes')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/article-types/photo.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/article-types/photo.html b/themes/danix-xyz-hacker/layouts/partials/article-types/photo.html
new file mode 100644
index 0000000..f4ccf06
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/partials/article-types/photo.html
@@ -0,0 +1,18 @@
+{{ if .Params.featured_image }}
+<figure class="mb-8">
+ <img
+ src="{{ .Params.featured_image }}"
+ alt="{{ .Title }}"
+ class="w-full h-auto rounded-lg border border-border/30"
+ />
+ {{ if .Params.featured_image_caption }}
+ <figcaption class="bg-surface/30 p-4 text-sm text-text-dim rounded-b-lg">
+ {{ .Params.featured_image_caption }}
+ </figcaption>
+ {{ end }}
+</figure>
+{{ end }}
+
+<div class="prose prose-invert max-w-none mb-12">
+ {{ .Content }}
+</div>