1
0
Fork 0

Changed front matter "credit" to "caption" and "url" to "caption_url"

This makes more sense and standardize frontmatter.
This commit is contained in:
Moritz »mo.« Sauer 2015-03-12 20:43:26 +01:00
parent 8ef95125bd
commit 37c68f331a
14 changed files with 33 additions and 33 deletions

View file

@ -62,9 +62,9 @@ format: blog-index
<a href="{{ site.url }}{{ post.url }}" title="{{ post.title escape_once }}"><img width="970" src="{{ site.url }}/images/{{ post.image.homepage }}" alt="{{ page.title escape_once }}"></a>
</p>
{% if post.image.url && post.image.credit %}
{% if post.image.caption_url && post.image.caption %}
<p class="text-right caption">
<a href="{{ post.image.url }}">{{ post.image.credit }}</a>
<a href="{{ post.image.caption_url }}">{{ post.image.caption }}</a>
</p>
{% endif %}
{% elsif post.image.homepage == NULL %}

View file

@ -6,9 +6,9 @@ format: page-fullwidth
<div class="row t30">
<div class="small-12 columns">
<img src="{{ site.url }}/images/{{ page.image.title }}" width="970" alt="{{ page.title escape_once }}">
{% if page.image.url && page.image.credit %}
{% if page.image.caption_url && page.image.caption %}
<p class="text-right caption">
<a href="{{ page.image.url }}">{{ page.image.credit }}</a>
<a href="{{ page.image.caption_url }}">{{ page.image.caption }}</a>
</p>
{% endif %}
</div><!-- /.small-12.columns -->

View file

@ -10,13 +10,13 @@ format: post
<figure>
<img src="{{ site.url }}/images/{{ page.image.title }}" width="970" alt="{{ page.title escape_once }}" itemprop="image">
{% if page.image.url && page.image.credit %}
{% if page.image.caption_url && page.image.caption %}
<figcaption class="text-right">
<a href="{{ page.image.url }}">{{ page.image.credit }}</a>
<a href="{{ page.image.caption_url }}">{{ page.image.caption }}</a>
</figcaption>
{% elsif page.image.credit %}
{% elsif page.image.caption %}
<figcaption class="text-right">
{{ page.image.credit }}
{{ page.image.caption }}
</figcaption>
{% endif %}
</figure>