From d39ebe136789d6ff83aa5dcd26cc6a0b73c1726f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Tue, 23 Aug 2022 17:10:26 +0200 Subject: [PATCH] image include --- _includes/image.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _includes/image.html diff --git a/_includes/image.html b/_includes/image.html new file mode 100644 index 0000000..ff768d7 --- /dev/null +++ b/_includes/image.html @@ -0,0 +1,9 @@ +{% capture imagePath %}{{ page.date | date: "%Y-%m-%d" }}-{{ page.title | slugify }}/{{ include.name }}{% endcapture %} +{% if include.caption %} +
+ {{ include.alt }} +
{{ include.caption }}
+
+{% else %} + {{ include.alt }} +{% endif %} \ No newline at end of file