From ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 12 Jun 2021 14:21:59 +0200 Subject: Initial commit --- templates/shortcodes/img.html | 9 +++++++++ templates/shortcodes/ref.html | 1 + 2 files changed, 10 insertions(+) create mode 100644 templates/shortcodes/img.html create mode 100644 templates/shortcodes/ref.html (limited to 'templates/shortcodes') diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html new file mode 100644 index 0000000..13d38d6 --- /dev/null +++ b/templates/shortcodes/img.html @@ -0,0 +1,9 @@ +{% set url = page.path ~ path | trim_start_matches(pat="/") -%} +
+ + {{ alt }} + + {% if caption -%} +
{{ caption }}
+ {% endif -%} +
diff --git a/templates/shortcodes/ref.html b/templates/shortcodes/ref.html new file mode 100644 index 0000000..6708552 --- /dev/null +++ b/templates/shortcodes/ref.html @@ -0,0 +1 @@ +{{ text | default(value="№ " ~ id) }} -- cgit v1.2.3-2-gb3c3