[fix carpentries/workshop-template#513] remove site.title outside
[rnaseq-cwl-training.git] / _includes / main_title.html
index d007abae203592c924f78bd178f2d22538214e07..7d17317f1cd9c7b0b43812a48756fae211439dc3 100644 (file)
@@ -1,4 +1,14 @@
 {% comment %}
   Main title for lesson pages.
 {% endcomment %}
-<h1 class="maintitle"><a href="{{ page.root }}{% link index.md %}">{{ site.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>
+
+{% include base_path.html %}
+
+{% if site.kind == "lesson" %}
+<h1 class="maintitle"><a href="{{ relative_root_path }}{% link index.md %}">{{ site.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>
+
+{% else %}
+
+<h1 class="maintitle">{{ page.title }}</h1>
+
+{% endif %}