From bcf9b230be6d74c71567fd0771b31d47d8dd39c7 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 21 Jan 2021 17:22:53 -0700 Subject: build the blog with nix --- src/_includes/image.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/_includes/image.html (limited to 'src/_includes/image.html') diff --git a/src/_includes/image.html b/src/_includes/image.html new file mode 100644 index 0000000..8875050 --- /dev/null +++ b/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