Changed front matter "credit" to "caption" and "url" to "caption_url"
This makes more sense and standardize frontmatter.
This commit is contained in:
parent
8ef95125bd
commit
37c68f331a
14 changed files with 33 additions and 33 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue