]> danix's work - danix.xyz-2.git/commitdiff
feat: create Photo article type template
authorDanilo M. <redacted>
Wed, 15 Apr 2026 13:50:40 +0000 (15:50 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 13:50:40 +0000 (15:50 +0200)
themes/danix-xyz-hacker/layouts/partials/article-types/photo.html [new file with mode: 0644]

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 (file)
index 0000000..f4ccf06
--- /dev/null
@@ -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>