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
|
@ -23,8 +23,8 @@ image:
|
||||||
title:
|
title:
|
||||||
homepage:
|
homepage:
|
||||||
thumb:
|
thumb:
|
||||||
credit:
|
caption:
|
||||||
url:
|
caption_url:
|
||||||
show_meta: false
|
show_meta: false
|
||||||
sidebar: left
|
sidebar: left
|
||||||
comments: true
|
comments: true
|
||||||
|
|
|
@ -13,8 +13,8 @@ image:
|
||||||
title:
|
title:
|
||||||
thumb:
|
thumb:
|
||||||
homepage:
|
homepage:
|
||||||
credit:
|
caption:
|
||||||
url:
|
caption_url:
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ image:
|
||||||
header: ""
|
header: ""
|
||||||
thumb: ""
|
thumb: ""
|
||||||
homepage: ""
|
homepage: ""
|
||||||
credit: ""
|
caption: ""
|
||||||
url: ""
|
url: ""
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -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>
|
<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>
|
</p>
|
||||||
|
|
||||||
{% if post.image.url && post.image.credit %}
|
{% if post.image.caption_url && post.image.caption %}
|
||||||
<p class="text-right 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>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elsif post.image.homepage == NULL %}
|
{% elsif post.image.homepage == NULL %}
|
||||||
|
|
|
@ -6,9 +6,9 @@ format: page-fullwidth
|
||||||
<div class="row t30">
|
<div class="row t30">
|
||||||
<div class="small-12 columns">
|
<div class="small-12 columns">
|
||||||
<img src="{{ site.url }}/images/{{ page.image.title }}" width="970" alt="{{ page.title escape_once }}">
|
<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">
|
<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>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div><!-- /.small-12.columns -->
|
</div><!-- /.small-12.columns -->
|
||||||
|
|
|
@ -10,13 +10,13 @@ format: post
|
||||||
<figure>
|
<figure>
|
||||||
<img src="{{ site.url }}/images/{{ page.image.title }}" width="970" alt="{{ page.title escape_once }}" itemprop="image">
|
<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">
|
<figcaption class="text-right">
|
||||||
<a href="{{ page.image.url }}">{{ page.image.credit }}</a>
|
<a href="{{ page.image.caption_url }}">{{ page.image.caption }}</a>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{% elsif page.image.credit %}
|
{% elsif page.image.caption %}
|
||||||
<figcaption class="text-right">
|
<figcaption class="text-right">
|
||||||
{{ page.image.credit }}
|
{{ page.image.caption }}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
|
@ -11,8 +11,8 @@ categories:
|
||||||
- design
|
- design
|
||||||
image:
|
image:
|
||||||
title: "unsplash_1.jpg"
|
title: "unsplash_1.jpg"
|
||||||
credit: Unsplash.com
|
caption: Unsplash.com
|
||||||
url: http://unsplash.com
|
caption_url: http://unsplash.com
|
||||||
---
|
---
|
||||||
*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:
|
*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:
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ tags:
|
||||||
- post format
|
- post format
|
||||||
image:
|
image:
|
||||||
title: "unsplash_1.jpg"
|
title: "unsplash_1.jpg"
|
||||||
credit: Unsplash.com
|
caption: Unsplash.com
|
||||||
url: http://unsplash.com
|
caption_url: http://unsplash.com
|
||||||
author: mo
|
author: mo
|
||||||
---
|
---
|
||||||
*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:
|
*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:
|
||||||
|
|
|
@ -12,8 +12,8 @@ categories:
|
||||||
image:
|
image:
|
||||||
thumb: "unsplash_2_thumb.jpg"
|
thumb: "unsplash_2_thumb.jpg"
|
||||||
title: "unsplash_2.jpg"
|
title: "unsplash_2.jpg"
|
||||||
credit: Unsplash.com
|
caption: Unsplash.com
|
||||||
url: http://unsplash.com
|
caption_url: http://unsplash.com
|
||||||
---
|
---
|
||||||
*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:
|
*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:
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@ tags:
|
||||||
header: no
|
header: no
|
||||||
image:
|
image:
|
||||||
title: unsplash_eagle.jpg
|
title: unsplash_eagle.jpg
|
||||||
credit: This is a caption for the header image with link
|
caption: This is a caption for the header image with link
|
||||||
url: https://unsplash.com/
|
caption_url: https://unsplash.com/
|
||||||
---
|
---
|
||||||
First turn of the header with `header: no`. Than add an image to with the following code. The caption is optional.
|
First turn of the header with `header: no`. Than add an image to with the following code. The caption is optional.
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ First turn of the header with `header: no`. Than add an image to with the follow
|
||||||
header: no
|
header: no
|
||||||
image:
|
image:
|
||||||
title: unsplash_eagle.jpg
|
title: unsplash_eagle.jpg
|
||||||
credit: This is a caption for the header image with link
|
caption: This is a caption for the header image with link
|
||||||
url: https://unsplash.com/
|
caption_url: https://unsplash.com/
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ title: "Now with Comments!"
|
||||||
teaser: "For a blog you need comments. Like all those other jekyll themes we baked in Disqus. It's easy to set, it works and makes a static jekyll blog more dynamic."
|
teaser: "For a blog you need comments. Like all those other jekyll themes we baked in Disqus. It's easy to set, it works and makes a static jekyll blog more dynamic."
|
||||||
header:
|
header:
|
||||||
image_fullwidth: "header_typewriter.jpg"
|
image_fullwidth: "header_typewriter.jpg"
|
||||||
credit: Image by Florian Klauer
|
caption: Image by Florian Klauer
|
||||||
url: "http://florianklauer.de/"
|
caption_url: "http://florianklauer.de/"
|
||||||
image:
|
image:
|
||||||
thumb: typewriter_thumb.jpg
|
thumb: typewriter_thumb.jpg
|
||||||
homepage: homepage_typewriter.jpg
|
homepage: homepage_typewriter.jpg
|
||||||
|
|
|
@ -8,8 +8,8 @@ header: no
|
||||||
image:
|
image:
|
||||||
thumb: homepage_typography_thumb.jpg
|
thumb: homepage_typography_thumb.jpg
|
||||||
homepage: homepage_typography.jpg
|
homepage: homepage_typography.jpg
|
||||||
credit: Image by Antonio
|
caption: Image by Antonio
|
||||||
url: "http://www.aisleone.net/"
|
caption_url: "http://www.aisleone.net/"
|
||||||
categories:
|
categories:
|
||||||
- design
|
- design
|
||||||
---
|
---
|
||||||
|
|
|
@ -150,15 +150,15 @@ image:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Credits with URL
|
### Captions with URL
|
||||||
|
|
||||||
Sometimes you want to give credit to the creator of your images, maybe with a link. Especially when you use Creative Commons-images like I do for this website. Just add the following front matter and *Feeling Responsive* does the rest:
|
Sometimes you want to give credit to the creator of your images, maybe with a link. Especially when you use Creative Commons-images like I do for this website. Just add the following front matter and *Feeling Responsive* does the rest:
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
image:
|
image:
|
||||||
title: header_image.jpg
|
title: header_image.jpg
|
||||||
credit: Image by Phlow
|
caption: Image by Phlow
|
||||||
url: "http://phlow.de/"
|
caption_url: "http://phlow.de/"
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
### Define all images for an article
|
### Define all images for an article
|
||||||
|
@ -168,8 +168,8 @@ image:
|
||||||
title: title_image.jpg
|
title: title_image.jpg
|
||||||
thumb: thumbnail_image.jpg
|
thumb: thumbnail_image.jpg
|
||||||
homepage: header_homepage_13.jpg
|
homepage: header_homepage_13.jpg
|
||||||
credit: Image by Phlow
|
caption: Image by Phlow
|
||||||
url: "http://phlow.de/"
|
caption_url: "http://phlow.de/"
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ permalink: "/roadmap/"
|
||||||
* [<s>Add draft-templates for new pages/posts</s>](https://github.com/Phlow/feeling-responsive/tree/gh-pages/_drafts)
|
* [<s>Add draft-templates for new pages/posts</s>](https://github.com/Phlow/feeling-responsive/tree/gh-pages/_drafts)
|
||||||
* [<s>Step-by-Step-Guide to customize *Feeling Responsive*</s>]({{ site.url }}/getting-started/)
|
* [<s>Step-by-Step-Guide to customize *Feeling Responsive*</s>]({{ site.url }}/getting-started/)
|
||||||
* [<s>Video-Post-Format to feature videos in a huge way</s>]({{ site.url }}/design/video/)
|
* [<s>Video-Post-Format to feature videos in a huge way</s>]({{ site.url }}/design/video/)
|
||||||
* <s>Title and Credit for images</s>
|
* <s>Title and captions for images</s>
|
||||||
* <s>SEO › Add metadescription to header.html and front matter</s>
|
* <s>SEO › Add metadescription to header.html and front matter</s>
|
||||||
* [<s>Adding Open Graph for Jekyll</s>](https://gist.github.com/pathawks/1406355)
|
* [<s>Adding Open Graph for Jekyll</s>](https://gist.github.com/pathawks/1406355)
|
||||||
* [<s>Gallery Post Example</s>]({{ site.url }}/design/gallery/)
|
* [<s>Gallery Post Example</s>]({{ site.url }}/design/gallery/)
|
||||||
|
|
Reference in a new issue