Added CDN powered images

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2018-01-02 11:40:28 +01:00
parent 6a475f25ce
commit c1b8b57269
2 changed files with 5 additions and 0 deletions

2
_data/cdn.yml Normal file
View File

@ -0,0 +1,2 @@
use: false
url: https://cdn.2martens.de

3
_includes/image.html Normal file
View File

@ -0,0 +1,3 @@
<img alt="{{ include.alt }}"
src="{% if site.data.cdn.use %}{{ site.data.cdn.url }}{% else %}{{ site.baseurl }}{% endif %}{{ include.link }}"
class="img-fluid" />