diff options
| author | Veikka Kähkönen <insiding@gmail.com> | 2017-11-27 23:09:06 +0200 |
|---|---|---|
| committer | Veikka Kähkönen <insiding@gmail.com> | 2017-11-27 23:09:06 +0200 |
| commit | 6fb186d18008e24e97212c27a3f60138965aa33e (patch) | |
| tree | 66060c55c4e85719ec62f846ff027383bbba288d /_layouts | |
| parent | df4d2a345886f0114684358a91c9b4ba2fc8cb73 (diff) | |
Use absolute_url filter instead of a custom variable for URLs
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/default.html | 2 | ||||
| -rw-r--r-- | _layouts/hallitus.html | 2 | ||||
| -rw-r--r-- | _layouts/people_generic.html | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 9081473..e4ab96f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,8 +1,6 @@ <!DOCTYPE html> <html> - {% assign site_full_url = site.url | append: site.baseurl %} - {% include head.html %} <body> diff --git a/_layouts/hallitus.html b/_layouts/hallitus.html index c355037..14a7263 100644 --- a/_layouts/hallitus.html +++ b/_layouts/hallitus.html @@ -16,7 +16,7 @@ layout: page {% endif %} <div class="contact col span_1_of_2"> <div class="contact-inline"> - <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ site.url | append: site.baseurl }}/{{ person.picture }}" alt=""> + <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ person.picture | absolute_url }}" alt=""> <h3 class="contact__position_name contact__position_name--hallitus">{{ person.position_name }}</h3> <h4 class="contact__person_name">{{ person.person_name }}</h4> <div class="contact__section"> diff --git a/_layouts/people_generic.html b/_layouts/people_generic.html index 108828a..28b73c1 100644 --- a/_layouts/people_generic.html +++ b/_layouts/people_generic.html @@ -25,7 +25,7 @@ layout: page {% else %} {% assign picture_path = page.placeholder_img %} {% endif %} - <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ site.url | append: site.baseurl }}/{{ picture_path }}" alt=""> + <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ picture_path | absolute_url }}" alt=""> <h4 class="contact__person_name contact__person_name--generic">{{ member.name }}</h4> {% if member.email %} <div class="contact__section"> |
