Skip to content

Commit 26e9bee

Browse files
committed
[fix carpentries/workshop-template#513] remove site.title outside
lessons
1 parent e176d3b commit 26e9bee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_includes/main_title.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44

55
{% include base_path.html %}
66

7+
{% if site.kind == "lesson" %}
78
<h1 class="maintitle"><a href="{{ relative_root_path }}{% link index.md %}">{{ site.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>
9+
10+
{% else %}
11+
12+
<h1 class="maintitle">{{ page.title }}</h1>
13+
14+
{% endif %}

0 commit comments

Comments
 (0)