From a3ba5be9c2a3c85a03940f42a18afe56571bab12 Mon Sep 17 00:00:00 2001 From: Niall Beard Date: Fri, 22 Jul 2016 11:17:34 +0100 Subject: [PATCH] Added lesson metadata and schema.org JSON-LD rendering --- _config.yml | 13 +++++++++++++ _includes/schema_org.html | 39 +++++++++++++++++++++++++++++++++++++++ _layouts/lesson.html | 1 + 3 files changed, 53 insertions(+) create mode 100644 _includes/schema_org.html diff --git a/_config.yml b/_config.yml index e4e21ca6..3cda65e6 100644 --- a/_config.yml +++ b/_config.yml @@ -12,6 +12,19 @@ carpentry: "cp" # Overall title for pages. title: "Lesson Title" +#Metadata +# 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 +description: "This is the template description. Keep me brief (2-3 sentences)" +keywords: GitHub, Forking, Collaborative # see: https://schema.org/keywords +audience: [PostDoc students, Early Career Researchers] # see: https://schema.org/audience +license: "https://creativecommons.org/licenses/by/3.0/" # see: schema.org/license +author: [Homer Simpson, Ned Flanders] # see: https://schema.org/author +contributor: [Barney Gumball, Dr Nick Riviera] # see: https://schema.org/contributor +timeRequired: "1 hour" # see: https://schema.org/timeRequired +learningResourceType: "lesson plan" # see: https://schema.org/learningResourceType +citation: "How to cite a Training Material, John Smith et al, 2015" # see: https://schema.org/citation +dateCreated: 2016-05-01 + #------------------------------------------------------------ # Generic settings (should not need to change). #------------------------------------------------------------ diff --git a/_includes/schema_org.html b/_includes/schema_org.html new file mode 100644 index 00000000..0a196378 --- /dev/null +++ b/_includes/schema_org.html @@ -0,0 +1,39 @@ + + \ No newline at end of file diff --git a/_layouts/lesson.html b/_layouts/lesson.html index 7d566cd1..b17c3882 100644 --- a/_layouts/lesson.html +++ b/_layouts/lesson.html @@ -2,5 +2,6 @@ layout: base --- {% include main_title.html %} +{% include schema_org.html %} {{ content }} {% include syllabus.html %}