Use CDN only in production

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2018-01-02 15:24:39 +01:00
parent 42af71d4c2
commit 31fc30e294

View File

@ -1,4 +1,4 @@
<img alt="{{ include.alt }}"
src=""
data-echo="{% if site.data.cdn.use %}{{ site.data.cdn.url }}{% else %}{{ site.baseurl }}{% endif %}{{ include.link }}"
data-echo="{% if site.data.cdn.use and jekyll.environment == 'production' %}{{ site.data.cdn.url }}{% else %}{{ site.baseurl }}{% endif %}{{ include.link }}"
class="img-fluid" />