Merge branch 'gh-pages' of github.com:carpentries/styles into gh-pages
[rnaseq-cwl-training.git] / _includes / main_title.html
index 283a2f77962eba3c5e02e9e3b1f9b5ac3e550f06..1ad1d4b4585c63ed538d6111a072fbc63cb94e08 100644 (file)
@@ -1,4 +1,14 @@
 {% comment %}
 Título principal para las páginas de la lección.
 {% 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 %}