{% endif %}
{% comment %} Always show link to home page. {% endcomment %}
- <a class="navbar-brand" href="{{ page.root }}/">Home</a>
+ <a class="navbar-brand" href="{{ page.root }}{% link index.md %}">Home</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
{% comment %} Always show code of conduct. {% endcomment %}
- <li><a href="{{ page.root }}/conduct/">Code of Conduct</a></li>
+ <li><a href="{{ page.root }}{% link CONDUCT.md %}">Code of Conduct</a></li>
- {% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %}
{% if site.kind == "lesson" %}
- <li><a href="{{ page.root }}/setup/">Setup</a></li>
+ {% comment %} Show setup instructions. {% endcomment %}
+ <li><a href="{{ page.root }}{% link setup.md %}">Setup</a></li>
+
+ {% comment %} Show lesson episodes for lessons. {% endcomment %}
<li class="dropdown">
<a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a></li>
{% endfor %}
<li role="separator" class="divider"></li>
- <li><a href="{{ page.root }}/aio/">All in one page (Beta)</a></li>
+ <li><a href="{{ page.root }}{% link aio.md %}">All in one page (Beta)</a></li>
</ul>
</li>
{% endif %}
{% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
- {% if site.kind == "lesson" or site.github.repository_name == "workshop-template" %}
+ {% if site.kind == "lesson" %}
<li class="dropdown">
<a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
<ul class="dropdown-menu">
- <li><a href="{{ page.root }}/reference/">Reference</a></li>
+ <li><a href="{{ page.root }}{% link reference.md %}">Reference</a></li>
{% for extra in site.extras %}
<li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li>
{% endfor %}
{% endif %}
{% comment %} Always show license. {% endcomment %}
- <li><a href="{{ page.root }}/license/">License</a></li>
+ <li><a href="{{ page.root }}{% link LICENSE.md %}">License</a></li>
{% if page.source %}
{% if page.source == "Rmd" %}
<li><a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>