From eedf838d1f1f35116d9ad80abf6d5838f2f38e52 Mon Sep 17 00:00:00 2001 From: Fernando Ribeiro Date: Fri, 7 Oct 2016 21:45:59 +0100 Subject: [PATCH] add image helper for easier image insertion in posts --- _includes/image | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 _includes/image diff --git a/_includes/image b/_includes/image new file mode 100644 index 00000000..1c619bd7 --- /dev/null +++ b/_includes/image @@ -0,0 +1,14 @@ +{% include base_path %} + +
+ {% if include.alt %}{{ include.alt }}{% endif %} + {% if include.caption %} +
{{ include.caption | markdownify | remove: "

" | remove: "

" }}
+ {% endif %} +