Allow linking to the file itself automatically

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-01-13 03:38:56 +01:00
parent 065a63f60b
commit bf34fa76f3
+1 -3
View File
@@ -1,7 +1,5 @@
{% capture content %}
{% if include.link %}
<a href="{{ include.link }}" {% if include.caption %}alt="{{ include.caption }}"{% endif %}>
{% endif %}
{% if include.link %}<a href="{% if include.link == true %}{{ include.url }}{% else %}{{ include.link }}{% endif %}" {% if include.caption %}alt="{{ include.caption }}"{% endif %} target="_blank">{% endif %}
{% assign file_info = site.static_files | where: "path", include.url %}
{% if include.type == "image" %}
<picture