aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/image.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/_includes/image.html b/_includes/image.html
new file mode 100644
index 0000000..d6be65c
--- /dev/null
+++ b/_includes/image.html
@@ -0,0 +1,11 @@
+{% assign alternative = include.alt | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize %}
+{% assign identifier = include.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify %}
+{% assign source = include.src | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %}
+
+<a href="#{{ identifier }}">
+ <img alt="{{ alternative }}" src="{{ source }}" />
+</a>
+
+<a href="#" class="fullscreen" id="{{ identifier }}">
+ <img alt="{{ alternative }}" src="{{ source }}" />
+</a>