make feature images accept hotlinks
This commit is contained in:
parent
32e84a39eb
commit
8cb3893856
5 changed files with 65 additions and 17 deletions
|
@ -13,10 +13,22 @@
|
||||||
|
|
||||||
{% include _navigation.html %}
|
{% include _navigation.html %}
|
||||||
|
|
||||||
{% if page.image.feature %}<div class="image-wrap">
|
{% if page.image.feature %}
|
||||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
|
<div class="image-wrap">
|
||||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
<img src=
|
||||||
</div><!-- /.image-wrap -->{% endif %}
|
{% if page.image.feature contains 'http://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% elsif page.image.feature contains 'https://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% else %}
|
||||||
|
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||||
|
{% endif %}
|
||||||
|
alt="{{ page.title }} feature image">
|
||||||
|
{% if page.image.credit %}
|
||||||
|
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
|
||||||
|
{% endif %}
|
||||||
|
</div><!-- /.image-wrap -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="article-author-side">
|
<div class="article-author-side">
|
||||||
{% include _author-bio.html %}
|
{% include _author-bio.html %}
|
||||||
|
|
|
@ -13,10 +13,22 @@
|
||||||
|
|
||||||
{% include _navigation.html %}
|
{% include _navigation.html %}
|
||||||
|
|
||||||
{% if page.image.feature %}<div class="image-wrap">
|
{% if page.image.feature %}
|
||||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
|
<div class="image-wrap">
|
||||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
<img src=
|
||||||
</div><!-- /.image-wrap -->{% endif %}
|
{% if page.image.feature contains 'http://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% elsif page.image.feature contains 'https://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% else %}
|
||||||
|
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||||
|
{% endif %}
|
||||||
|
alt="{{ page.title }} feature image">
|
||||||
|
{% if page.image.credit %}
|
||||||
|
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
|
||||||
|
{% endif %}
|
||||||
|
</div><!-- /.image-wrap -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div id="main" role="main">
|
<div id="main" role="main">
|
||||||
<div class="article-author-side">
|
<div class="article-author-side">
|
||||||
|
|
|
@ -13,10 +13,22 @@
|
||||||
|
|
||||||
{% include _navigation.html %}
|
{% include _navigation.html %}
|
||||||
|
|
||||||
{% if page.image.feature %}<div class="image-wrap">
|
{% if page.image.feature %}
|
||||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
|
<div class="image-wrap">
|
||||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
<img src=
|
||||||
</div><!-- /.image-wrap -->{% endif %}
|
{% if page.image.feature contains 'http://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% elsif page.image.feature contains 'https://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% else %}
|
||||||
|
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||||
|
{% endif %}
|
||||||
|
alt="{{ page.title }} feature image">
|
||||||
|
{% if page.image.credit %}
|
||||||
|
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
|
||||||
|
{% endif %}
|
||||||
|
</div><!-- /.image-wrap -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="article-author-side">
|
<div class="article-author-side">
|
||||||
{% include _author-bio.html %}
|
{% include _author-bio.html %}
|
||||||
|
|
|
@ -13,10 +13,22 @@
|
||||||
|
|
||||||
{% include _navigation.html %}
|
{% include _navigation.html %}
|
||||||
|
|
||||||
{% if page.image.feature %}<div class="image-wrap">
|
{% if page.image.feature %}
|
||||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
|
<div class="image-wrap">
|
||||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
<img src=
|
||||||
</div><!-- /.image-wrap -->{% endif %}
|
{% if page.image.feature contains 'http://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% elsif page.image.feature contains 'https://' %}
|
||||||
|
"{{ page.image.feature }}"
|
||||||
|
{% else %}
|
||||||
|
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||||
|
{% endif %}
|
||||||
|
alt="{{ page.title }} feature image">
|
||||||
|
{% if page.image.credit %}
|
||||||
|
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
|
||||||
|
{% endif %}
|
||||||
|
</div><!-- /.image-wrap -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div id="main" role="main">
|
<div id="main" role="main">
|
||||||
<div class="article-author-side">
|
<div class="article-author-side">
|
||||||
|
|
2
about.md
2
about.md
|
@ -6,7 +6,7 @@ tagline: Minimal Mistakes, a Jekyll Theme
|
||||||
tags: [about, Jekyll, theme, responsive]
|
tags: [about, Jekyll, theme, responsive]
|
||||||
modified: 9-9-2013
|
modified: 9-9-2013
|
||||||
image:
|
image:
|
||||||
feature: texture-feature-02.jpg
|
feature: http://lh3.googleusercontent.com/gv26Akm_nGFqhsIm6_YFsrK0Po3SHD9rrNTZIio9PiJP=w1358-h402-no
|
||||||
credit: Texture Lovers
|
credit: Texture Lovers
|
||||||
creditlink: http://texturelovers.com
|
creditlink: http://texturelovers.com
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue