diff options
| author | Jieiku | 2022-03-27 19:19:28 -0700 |
|---|---|---|
| committer | Jieiku | 2022-03-27 19:19:28 -0700 |
| commit | 2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9 (patch) | |
| tree | 33dda7250a49739153f501dbdec7c26792d87964 /templates/shortcodes/image.html | |
| download | abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.tar.gz abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.tar.bz2 abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.zip | |
init
Diffstat (limited to 'templates/shortcodes/image.html')
| -rw-r--r-- | templates/shortcodes/image.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/shortcodes/image.html b/templates/shortcodes/image.html new file mode 100644 index 0000000..ea236ef --- /dev/null +++ b/templates/shortcodes/image.html @@ -0,0 +1,7 @@ +<picture> + {% for source in sources -%} + {% set type = source | split(pat=".") | last -%} + <source srcset="{{ config.base_url | safe}}{{ page.path | safe }}{{ source | safe }}" type="{{ 'img/' ~ type }}"> + {% endfor -%} + <img src="{{ fallback_path }}" alt="{{ fallback_alt }}"/> +</picture> |
