Skip to content

Commit 37c68f3

Browse files
committed
Changed front matter "credit" to "caption" and "url" to "caption_url"
This makes more sense and standardize frontmatter.
1 parent 8ef9512 commit 37c68f3

14 files changed

Lines changed: 33 additions & 33 deletions

_drafts/page_all_frontmatter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ image:
2323
title:
2424
homepage:
2525
thumb:
26-
credit:
27-
url:
26+
caption:
27+
caption_url:
2828
show_meta: false
2929
sidebar: left
3030
comments: true

_drafts/page_with_image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ image:
1313
title:
1414
thumb:
1515
homepage:
16-
credit:
17-
url:
16+
caption:
17+
caption_url:
1818
---
1919

2020

_drafts/post_with_image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ image:
1212
header: ""
1313
thumb: ""
1414
homepage: ""
15-
credit: ""
15+
caption: ""
1616
url: ""
1717
---
1818

_layouts/frontpage.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ <h2 class="font-size-h3 t10">{{ page.widget-3.title }}</h2>
6262
<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>
6363
</p>
6464

65-
{% if post.image.url && post.image.credit %}
65+
{% if post.image.caption_url && post.image.caption %}
6666
<p class="text-right caption">
67-
<a href="{{ post.image.url }}">{{ post.image.credit }}</a>
67+
<a href="{{ post.image.caption_url }}">{{ post.image.caption }}</a>
6868
</p>
6969
{% endif %}
7070
{% elsif post.image.homepage == NULL %}

_layouts/page-fullwidth.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<div class="row t30">
77
<div class="small-12 columns">
88
<img src="{{ site.url }}/images/{{ page.image.title }}" width="970" alt="{{ page.title escape_once }}">
9-
{% if page.image.url && page.image.credit %}
9+
{% if page.image.caption_url && page.image.caption %}
1010
<p class="text-right caption">
11-
<a href="{{ page.image.url }}">{{ page.image.credit }}</a>
11+
<a href="{{ page.image.caption_url }}">{{ page.image.caption }}</a>
1212
</p>
1313
{% endif %}
1414
</div><!-- /.small-12.columns -->

_layouts/page.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
<figure>
1111
<img src="{{ site.url }}/images/{{ page.image.title }}" width="970" alt="{{ page.title escape_once }}" itemprop="image">
1212

13-
{% if page.image.url && page.image.credit %}
13+
{% if page.image.caption_url && page.image.caption %}
1414
<figcaption class="text-right">
15-
<a href="{{ page.image.url }}">{{ page.image.credit }}</a>
15+
<a href="{{ page.image.caption_url }}">{{ page.image.caption }}</a>
1616
</figcaption>
17-
{% elsif page.image.credit %}
17+
{% elsif page.image.caption %}
1818
<figcaption class="text-right">
19-
{{ page.image.credit }}
19+
{{ page.image.caption }}
2020
</figcaption>
2121
{% endif %}
2222
</figure>

_posts/design/2014-07-09-post-left-sidebar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ categories:
1111
- design
1212
image:
1313
title: "unsplash_1.jpg"
14-
credit: Unsplash.com
15-
url: http://unsplash.com
14+
caption: Unsplash.com
15+
caption_url: http://unsplash.com
1616
---
1717
*Feeling Responsive* shows metadata by default. The default behaviour can be changed via `config.yml`. To show metadata at the end of a page/post just add the following to front matter:
1818

_posts/design/2014-07-10-page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ tags:
1414
- post format
1515
image:
1616
title: "unsplash_1.jpg"
17-
credit: Unsplash.com
18-
url: http://unsplash.com
17+
caption: Unsplash.com
18+
caption_url: http://unsplash.com
1919
author: mo
2020
---
2121
*Feeling Responsive* shows metadata by default. The default behaviour can be changed via `config.yml`. To show metadata at the end of a page/post just add the following to front matter:

_posts/design/2014-07-10-post-right-sidebar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ categories:
1212
image:
1313
thumb: "unsplash_2_thumb.jpg"
1414
title: "unsplash_2.jpg"
15-
credit: Unsplash.com
16-
url: http://unsplash.com
15+
caption: Unsplash.com
16+
caption_url: http://unsplash.com
1717
---
1818
*Feeling Responsive* shows metadata by default. The default behaviour can be changed via `config.yml`. To show metadata at the end of a page/post just add the following to front matter:
1919

_posts/design/2015-03-12-no-header-but-image.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ tags:
1212
header: no
1313
image:
1414
title: unsplash_eagle.jpg
15-
credit: This is a caption for the header image with link
16-
url: https://unsplash.com/
15+
caption: This is a caption for the header image with link
16+
caption_url: https://unsplash.com/
1717
---
1818
First turn of the header with `header: no`. Than add an image to with the following code. The caption is optional.
1919

2020
~~~
2121
header: no
2222
image:
2323
title: unsplash_eagle.jpg
24-
credit: This is a caption for the header image with link
25-
url: https://unsplash.com/
24+
caption: This is a caption for the header image with link
25+
caption_url: https://unsplash.com/
2626
~~~
2727

2828

0 commit comments

Comments
 (0)