summaryrefslogtreecommitdiff
path: root/_includes/image.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2018-09-06 13:11:00 -0400
committerBrian Picciano <mediocregopher@gmail.com>2018-09-21 15:23:54 -0400
commitd9b046935fc606894a4bc7a6ba808dd7ff67812a (patch)
treefe7ca35a42aeec02cebcc6167a6fd9bab5b51302 /_includes/image.html
parent76e6a6c905d2a95b384b224198d26bacb0a1bf5e (diff)
begin mr. worldwide series, as well as impliment some image templating
Diffstat (limited to '_includes/image.html')
-rw-r--r--_includes/image.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/_includes/image.html b/_includes/image.html
new file mode 100644
index 0000000..4c5afc5
--- /dev/null
+++ b/_includes/image.html
@@ -0,0 +1,21 @@
+<div style="
+ box-sizing: border-box;
+ text-align: center;
+ padding-left: 2em;
+ padding-right: 2em;
+ margin-bottom: 1em;
+ {%- if include.float %}
+ float: {{ include.float }};
+ {% endif -%}
+ {%- if include.float or include.inline %}
+ max-width: 49%;
+ {% endif -%}
+ {%- if include.inline %}
+ display: inline-block;
+ {% endif -%}
+ ">
+ <a href="/img/{{ include.src }}" target="_blank">
+ <img style="max-height: 60vh;"
+ src="/img/{{ include.src }}" alt="{{ include.descr }}" /></a>
+ {%- if include.descr %}<br/><em>{{ include.descr }}</em>{%- endif %}
+</div>