From f1998c321a4eec6d75b58d84aa8610971bf21979 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 31 Jul 2021 11:35:39 -0600 Subject: move static files into static sub-dir, refactor nix a bit --- static/src/_includes/image.html | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 static/src/_includes/image.html (limited to 'static/src/_includes/image.html') diff --git a/static/src/_includes/image.html b/static/src/_includes/image.html new file mode 100644 index 0000000..8875050 --- /dev/null +++ b/static/src/_includes/image.html @@ -0,0 +1,43 @@ +
+ + + {%- if include.width %} + {%- for targetWidth in site.img_widths reversed -%} + {% if include.width <= targetWidth %}{% continue %}{% endif %} + {%- if targetWidth > 1000 %} + 500 %} + + {%- endfor %} + {%- endif %} + {{ include.descr }} + + + {%- if include.descr %}
{{ include.descr }}{%- endif %} +
-- cgit v1.2.3