diff options
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/article-types/photo.html | 18 |
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> |
