Skip to content

Commit 8149ddc

Browse files
committed
Update file_links to download files
1 parent 9014080 commit 8149ddc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

��_includes/content_filelinks.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% if include.content.file_links.size > 0 %}
77
{%- for link in include.content.file_links -%}
88
{% assign linkfmt = include.content.formats[forloop.index0] %}
9-
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Self-Hosted" linkfmt=linkfmt %} href="{{ site.data.content.filehost | append: link }}"><i class="fa{% case linkfmt %}{% when "pdf" %}r fa-file-pdf{% when "jpeg" %}r fa-file-image{% when "mp3" %}r fa-file-audio{% when "m4a" %}r fa-file-audio{% when "epub" %}s fa-tablet-alt{% when "png" %}r fa-file-image{% when "mp3s" %}r fa-file-open{% when "zip" %}r fa-file-archive{% when "pdfs" %}r fa-file-open{% when "wma" %}r fa-file-audio{% else %}r fa-file{% endcase %}"></i> {{ linkfmt }}</a>
9+
<a download class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Self-Hosted" linkfmt=linkfmt %} href="{{ site.data.content.filehost | append: link }}"><i class="fas fa-cloud-arrow-down"></i> {{ linkfmt }}</a>
1010
{%- endfor -%}
1111
{%- endif -%}
1212
{%- if include.content.drive_links.size > 0 -%}

0 commit comments

Comments
 (0)