From cfc8d63da3d3b4d4ec9f1706b466d95a815c9eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michonneau?= Date: Fri, 11 Oct 2019 16:44:38 +0200 Subject: [PATCH 1/2] [fix #546] add human language in workshop description --- _config.yml | 3 +++ index.md | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/_config.yml b/_config.yml index 7f97416b..907ba669 100644 --- a/_config.yml +++ b/_config.yml @@ -37,6 +37,9 @@ flavor: "r" # https://github.com/carpentries/workshop-template#creating-extra-pages title: "Workshop Title" +# If this variable is set to something else than `""`, the language in which the +# workshop will be taught will be included in the workshop description. +human_language: "" #------------------------------------------------------------ # Generic settings (should not need to change). diff --git a/index.md b/index.md index b61583b5..fe7420b0 100644 --- a/index.md +++ b/index.md @@ -103,6 +103,17 @@ workshop is only open to people from a particular institution. {% include lc/who.html %} {% endif %} +{% comment %} +HUMAN LANGUAGE +{% endcomment %} + +{% unless site.human_language == "" %} +

+The course will be conducted in {{ site.human_language }}. For this course, we will expect our participants to have basic understanding of {{ site.human_language }}. We will have several helpers to assist you if you need some terms to be translated. +

+{% endunless %} + + {% comment %} LOCATION From 25e982016081d6064b340571d1732301db5665e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michonneau?= Date: Wed, 11 Dec 2019 16:23:07 -0500 Subject: [PATCH 2/2] incorporate @maxim-belkin comments --- _config.yml | 5 +++-- index.md | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 907ba669..8cb02814 100644 --- a/_config.yml +++ b/_config.yml @@ -37,8 +37,9 @@ flavor: "r" # https://github.com/carpentries/workshop-template#creating-extra-pages title: "Workshop Title" -# If this variable is set to something else than `""`, the language in which the -# workshop will be taught will be included in the workshop description. +## human_language: the language in which the workshop is taught. +# If set to anything other than "", a note about the language +# of the workshop is added to the workshop description. human_language: "" #------------------------------------------------------------ diff --git a/index.md b/index.md index fe7420b0..1f4c1a68 100644 --- a/index.md +++ b/index.md @@ -109,7 +109,10 @@ HUMAN LANGUAGE {% unless site.human_language == "" %}

-The course will be conducted in {{ site.human_language }}. For this course, we will expect our participants to have basic understanding of {{ site.human_language }}. We will have several helpers to assist you if you need some terms to be translated. + The workshop will be conducted in {{ site.human_language }}. + For this course, we will expect our participants to have basic understanding + of {{ site.human_language }}. We will have several helpers to assist you if + you need assistance with understanding the lesson material.

{% endunless %}