Skip to content

Commit

Permalink
[fix carpentries/workshop-template#513] remove site.title outside
Browse files Browse the repository at this point in the history
lessons
  • Loading branch information
fmichonneau committed Nov 9, 2019
1 parent c884bfa commit 703f7d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _includes/main_title.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@

{% 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 %}

0 comments on commit 703f7d6

Please sign in to comment.