Allow linking to the file itself automatically
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user