Skip to content

Commit b13ce0d

Browse files
committed
Move JSON-LD from _config.yml to _data/lesson.yml
1 parent 521fa60 commit b13ce0d

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

_config.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@
99
# cp: Carpentries (to use for instructor traning for instance)
1010
carpentry: "cp"
1111

12-
# Overall title for pages.
13-
title: "Lesson Title"
14-
15-
#Metadata
16-
# Here you can add metadata to describe your lesson so that people and search engines can understand what it's about. Please try to use fields from the Schema.org CreativeWork type - https://schema.org/CreativeWork
17-
description: "This is the template description. Keep me brief (2-3 sentences)"
18-
keywords: GitHub, Forking, Collaborative # see: https://schema.org/keywords
19-
audience: [PostDoc students, Early Career Researchers] # see: https://schema.org/audience
20-
license: "https://creativecommons.org/licenses/by/3.0/" # see: schema.org/license
21-
author: [Homer Simpson, Ned Flanders] # see: https://schema.org/author
22-
contributor: [Barney Gumball, Dr Nick Riviera] # see: https://schema.org/contributor
23-
timeRequired: "1 hour" # see: https://schema.org/timeRequired
24-
learningResourceType: "lesson plan" # see: https://schema.org/learningResourceType
25-
citation: "How to cite a Training Material, John Smith et al, 2015" # see: https://schema.org/citation
26-
dateCreated: 2016-05-01
27-
2812
#------------------------------------------------------------
2913
# Generic settings (should not need to change).
3014
#------------------------------------------------------------

_data/lesson.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Overall title for pages.
2+
title: "Lesson Title"
3+
4+
#Metadata
5+
# Here you can add metadata to describe your lesson so that people and search engines can understand what it's about. Please try to use fields from the Schema.org CreativeWork type - https://schema.org/CreativeWork
6+
description: "This is the template description. Keep me brief (2-3 sentences)"
7+
keywords: GitHub, Forking, Collaborative # see: https://schema.org/keywords
8+
audience: [PostDoc students, Early Career Researchers] # see: https://schema.org/audience
9+
license: "https://creativecommons.org/licenses/by/3.0/" # see: schema.org/license
10+
author: [Homer Simpson, Ned Flanders] # see: https://schema.org/author
11+
contributor: [Barney Gumball, Dr Nick Riviera] # see: https://schema.org/contributor
12+
timeRequired: "1 hour" # see: https://schema.org/timeRequired
13+
learningResourceType: "lesson plan" # see: https://schema.org/learningResourceType
14+
citation: "How to cite a Training Material, John Smith et al, 2015" # see: https://schema.org/citation
15+
dateCreated: 2016-05-01

_includes/episode_navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h3 class="text-left">
2121
</div>
2222
<div class="col-xs-10">
2323
{% if include.episode_navbar_title %}
24-
<h3 class="maintitle"><a href="{{ relative_root_path }}/">{{ site.title }}</a></h3>
24+
<h3 class="maintitle"><a href="{{ relative_root_path }}/">{{ site.data.lesson.title }}</a></h3>
2525
{% endif %}
2626
</div>
2727
<div class="col-xs-1">

_includes/favicons.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-32x32.png" sizes="32x32" />
2525
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-16x16.png" sizes="16x16" />
2626
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-128.png" sizes="128x128" />
27-
<meta name="application-name" content="{{ carpentry }} - {{ site.title }}"/>
27+
<meta name="application-name" content="{{ carpentry }} - {{ site.data.lesson.title }}"/>
2828
<meta name="msapplication-TileColor" content="#FFFFFF" />
2929
<meta name="msapplication-TileImage" content="{{ favicon_url }}/mstile-144x144.png" />
3030
<meta name="msapplication-square70x70logo" content="{{ favicon_url }}/mstile-70x70.png" />

_includes/main_title.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
{% include base_path.html %}
66

7-
<h1 class="maintitle"><a href="{{ relative_root_path }}{% link index.md %}">{{ site.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>
7+
<h1 class="maintitle"><a href="{{ relative_root_path }}{% link index.md %}">{{ site.data.lesson.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>

_includes/schema_org.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@
66
"@context": "http://schema.org/",
77
"@type": "creativeWork",
88
"genre": "trainingMaterial",
9-
"name": "{{site.title}}",
10-
"description": "{{site.description}}",
11-
"keywords": "{{site.keywords}}",
9+
"name": "{{site.data.lesson.title}}",
10+
"description": "{{site.data.lesson.description}}",
11+
"keywords": "{{site.data.lesson.keywords}}",
1212
"audience": [
13-
{% for audience in site.audience %}{
13+
{% for audience in site.data.lesson.audience %}{
1414
"@type": "Audience",
1515
"name": "{{audience}}"
1616
}{% if forloop.last %}{%else%},{%endif%}
1717
{% endfor %}
1818
],
19-
"license": "{{site.licence}}",
19+
"license": "{{site.data.lesson.licence}}",
2020
"author": [
21-
{% for author in site.author %}{
21+
{% for author in site.data.lesson.author %}{
2222
"@type": "Person",
2323
"name": "{{author}}"
2424
}{% if forloop.last %}{%else%},{%endif%}
2525
{% endfor %}
2626
],
2727
"contributor": [
28-
{% for contributor in site.contributor %}{
28+
{% for contributor in site.data.lesson.contributor %}{
2929
"@type": "Person",
3030
"name": "{{contributor}}"
3131
}{% if forloop.last %}{%else%},{%endif%}
3232
{% endfor %}
3333
],
34-
"timeRequired": "{{site.timeRequired}}",
35-
"learningResourceType": "{{site.learningResourceType}}",
36-
"citation": "{{site.citation}}",
37-
"dateCreated" : "{{site.dateCreated}}"
34+
"timeRequired": "{{site.data.lesson.timeRequired}}",
35+
"learningResourceType": "{{site.data.lesson.learningResourceType}}",
36+
"citation": "{{site.data.lesson.citation}}",
37+
"dateCreated" : "{{site.data.lesson.dateCreated}}"
3838
}
39-
</script>
39+
</script>

_layouts/base.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
2626
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
2727
<![endif]-->
28-
<title>{{ site.title }}{% if page.title %}: {{ page.title }}{% endif %}</title>
28+
<title>{{ site.data.lesson.title }}{% if page.title %}: {{ page.title }}{% endif %}</title>
29+
{% include schema_org.html %}
2930
</head>
3031
<body>
3132

0 commit comments

Comments
 (0)