Skip to content

Commit 2f7732a

Browse files
committed
Video layout now with Schema.org for videos
1 parent 1d8fe4a commit 2f7732a

4 files changed

Lines changed: 29 additions & 6 deletions

File tree

_layouts/video.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
---
55
<div class="row">
66
<div class="small-12 columns">
7-
<article>
7+
<article itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
88
<div class="flex-video">
99
{{ page.iframe}}
1010
</div>
@@ -13,10 +13,16 @@
1313
<div class="medium-offset-2 medium-8 end columns">
1414
<header>
1515
{% if page.subheadline %}<p class="subheadline t30">{{ page.subheadline }}</p>{% endif %}
16-
<h1>{{ page.title }}</h1>
16+
<h1 itemprop="name">{{ page.title }}</h1>
1717
</header>
18+
19+
20+
{% if page.video.thumbnailUrl %}<meta itemprop="thumbnailUrl" content="{{ page.video.thumbnailUrl }}" />{% endif %}
21+
{% if page.video.contentURL %}<meta itemprop="contentURL" content="{{ page.video.contentURL }}" />{% endif %}
22+
{% if page.video.embedURL %}<meta itemprop="embedURL" content="{{ page.video.embedURL }}" />{% endif %}
23+
1824
{% if page.teaser %}
19-
<p class="teaser">
25+
<p class="teaser" itemprop="description">
2026
{{ page.teaser }}
2127
</p>
2228
{% endif %}

_posts/design/2014-09-14-video.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ tags:
99
categories:
1010
- design
1111
iframe: "<iframe width='970' height='546' src='//www.youtube.com/embed/WoHxoz_0ykI' frameborder='0' allowfullscreen></iframe>"
12+
#
13+
# These video settings are totally optional. It's only purpose
14+
# is SEO, so that videos show up in Google hopefully with a
15+
# thumbnail.
16+
# More › https://developers.google.com/webmasters/videosearch/schema?hl=en&rd=1
17+
#
18+
# embedURL – A URL pointing to a player for the specific video.
19+
# contentURL – A URL pointing to the actual video media file
20+
# thumbnailUrl – A URL pointing to the video thumbnail image file.
21+
#
22+
video:
23+
embedURL: "https://www.youtube.com/embed/WoHxoz_0ykI"
24+
contentURL: "https://www.youtube.com/watch?v=WoHxoz_0ykI"
25+
thumbnailUrl: "http://img.youtube.com/vi/WoHxoz_0ykI/maxresdefault.jpg"
1226
---
1327

1428
## About the video by Kutiman

pages/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ header:
77
image_fullwidth: "header_unsplash_9.jpg"
88
permalink: "/changelog/"
99
---
10+
2015-04-28 // Version 1.2
11+
: Put some nice Schema.org-Meta-Data into the video-template for better SEO. If you want to know how to use the data, have a look into the front matter of the [video]({{ site.url }}/design/video/).
1012

1113
2015-03-30 // Version 1.2
1214
: Added [alert-include]({{ site.url }}/documentation/#alert-embed-an-alert-in-your-content) and structured Sass-files.

pages/roadmap.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@ permalink: "/roadmap/"
1111
## Ideas and possible new features
1212
{: .t30 }
1313

14-
* [Add schema.org Markup for Videos](https://support.google.com/webmasters/answer/2413309?hl=en)
1514
* Get rid of Backstretch.js and solve it with pure CSS
1615
* Layout/Template for category-archives
1716
* Layout/Template for collections
17+
* Layout/Template for Landingpage
1818
* Clean bare-bones version of *Feeling Responsive*
19-
* Landingpage
2019
* Even better responsive typography
2120
* Google AdSense ads
2221
* More post-formats for blogging like special post formats for links, audio, tweets,...
22+
* Make a [video-sitemap.xml](https://support.google.com/webmasters/answer/80472?hl=en)
2323

2424

2525

2626
## Done
2727

28-
* [<s>Submit *Feeling Responsive* to jekyllthemes.org</s>](http://jekyllthemes.org/themes/feeling-responsive/)
28+
* [<s>Add schema.org Markup for Videos</s>](https://support.google.com/webmasters/answer/2413309?hl=en)
29+
* [<s>Submit <em>Feeling Responsive</em> to jekyllthemes.org</s>](http://jekyllthemes.org/themes/feeling-responsive/)
2930
* <s>Use `style` in front matter to inject css-styles into `<head></s>
3031
* <s>Add include to loop through collections</s>
3132
* <s>Now with optional caption for header</s>

0 commit comments

Comments
 (0)