Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/site/_includes/layouts/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,27 @@ <h1 class="mt-0">
{% comment %} *********** Structured data for Google *********** {% endcomment %}
<script type="application/ld+json">
[
{
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{% baseUrl %}/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Courses",
"item": "{% baseUrl %}/courses/"
},
{
"@type": "ListItem",
"position": 2,
"name": "{{ title }}"
"position": 3,
"name": "{{ title }}",
"item": "{% baseUrl %}{{ page.url }}"
}
]
},
Expand Down
21 changes: 21 additions & 0 deletions src/site/_includes/layouts/narrow.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,25 @@

<div class="max-w-3xl mx-auto mt-10">
{{ content }}

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{% baseUrl %}/"
},
{
"@type": "ListItem",
"position": 2,
"name": "{{ title }}",
"item": "{% baseUrl %}{{ page.url }}"
}
]
}
</script>
</div>
10 changes: 8 additions & 2 deletions src/site/_includes/layouts/newsletter.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,20 @@ <h1 class="mb-3">
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{% baseUrl %}/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Newsletter",
"item": "{% baseUrl %}/newsletter/"
},
{
"@type": "ListItem",
"position": 2,
"position": 3,
"name": "{{ title }}",
"item": "{% baseUrl %}/{{page.url }}"
"item": "{% baseUrl %}{{ page.url }}"
}
]
}
Expand Down
21 changes: 21 additions & 0 deletions src/site/_includes/layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,25 @@ <h1 class="bigtitle">

{{ content }}
</article>

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{% baseUrl %}/"
},
{
"@type": "ListItem",
"position": 2,
"name": "{{ title }}",
"item": "{% baseUrl %}{{ page.url }}"
}
]
}
</script>
</div>
9 changes: 8 additions & 1 deletion src/site/_includes/layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,20 @@ <h1>Contents</h1>
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{% baseUrl %}/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Blog",
"item": "{% baseUrl %}/blog/"
},
{
"@type": "ListItem",
"position": 3,
"name": "{{ title }}"
"name": "{{ title }}",
"item": "{% baseUrl %}{{ page.url }}"
}
]
}
Expand Down
20 changes: 16 additions & 4 deletions src/site/_includes/layouts/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,37 @@ <h1 class="mt-5">
"name": "{{ title }}",
"description": "{{ content | strip_html | truncatewords: 40 }}",
"thumbnailURL": [
"http://i.ytimg.com/vi/{{videoId}}/hqdefault.jpg"
"https://i.ytimg.com/vi/{{videoId}}/maxresdefault.jpg",
"https://i.ytimg.com/vi/{{videoId}}/hqdefault.jpg"
],
"uploadDate": "{% if date %}{{ date | date: "%Y-%m-%dT00:00:00+01:00" }}{% else %}2017-06-23{% endif %}",
"embedUrl": "https://www.youtube.com/embed/{{videoId}}",
"contentUrl": "https://www.youtube.com/watch?v={{videoId}}",
"duration": "PT{{duration | divided_by: 3600, true}}H{{ duration | divided_by: 60, true }}M{{ duration | modulo: 60 }}S"
"duration": "PT{% if duration %}{{duration | divided_by: 3600}}H{{ duration | divided_by: 60 | modulo: 60 }}M{{ duration | modulo: 60 }}S{% else %}0M0S{% endif %}",
"author": {
"@type": "Person",
"name": "Xavier Decuyper",
"url": "https://simplyexplained.com"
}
},
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "{% baseUrl %}/"
},{
"@type": "ListItem",
"position": 2,
"name": "Videos",
"item": "{% baseUrl %}/videos/"
},{
"@type": "ListItem",
"position": 2,
"name": "{{ title }}"
"position": 3,
"name": "{{ title }}",
"item": "{% baseUrl %}{{ page.url }}"
}]
}
]
Expand Down
Loading