5 {% include gh_variables.html %}
6 {% include manual_episode_order.html %}
8 <nav class="navbar navbar-default">
9 <div class="container-fluid">
10 <div class="navbar-header">
11 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
12 <span class="sr-only">Toggle navigation</span>
13 <span class="icon-bar"></span>
14 <span class="icon-bar"></span>
15 <span class="icon-bar"></span>
18 {% comment %} Select what logo to display. {% endcomment %}
19 {% if site.carpentry == "swc" %}
20 <a href="{{ site.swc_site }}" class="pull-left">
21 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/swc-icon-blue.svg %}" alt="Software Carpentry logo" />
23 {% elsif site.carpentry == "dc" %}
24 <a href="{{ site.dc_site }}" class="pull-left">
25 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/dc-icon-black.svg %}" alt="Data Carpentry logo" />
27 {% elsif site.carpentry == "lc" %}
28 <a href="{{ site.lc_site }}" class="pull-left">
29 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/lc-icon-black.svg %}" alt="Library Carpentry logo" />
31 {% elsif site.carpentry == "cp" %}
32 <a href="{{ site.carpentries_site }}" class="pull-left">
33 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/cp-logo-blue.svg %}" alt="The Carpentries logo" />
37 {% comment %} Always show link to home page. {% endcomment %}
38 <a class="navbar-brand" href="{{ relative_root_path }}{% link index.md %}">Home</a>
41 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
42 <ul class="nav navbar-nav">
44 {% comment %} Always show code of conduct. {% endcomment %}
45 <li><a href="{{ relative_root_path }}{% link CODE_OF_CONDUCT.md %}">Code of Conduct</a></li>
47 {% if site.kind == "lesson" %}
48 {% comment %} Show setup instructions. {% endcomment %}
49 <li><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></li>
51 {% comment %} Show lesson episodes for lessons. {% endcomment %}
53 <a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
54 <ul class="dropdown-menu">
55 {% for lesson_episode in lesson_episodes %}
56 {% if site.episode_order %}
57 {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
59 {% assign episode = lesson_episode %}
61 <li><a href="{{ relative_root_path }}{{ episode.url }}">{{ episode.title }}</a></li>
63 <li role="separator" class="divider"></li>
64 <li><a href="{{ relative_root_path }}{% link aio.md %}">All in one page (Beta)</a></li>
69 {% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
70 {% if site.kind == "lesson" %}
72 <a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
73 <ul class="dropdown-menu">
74 <li><a href="{{ relative_root_path }}{% link reference.md %}">Reference</a></li>
75 {% for lesson_extra in lesson_extras %}
76 {% if site.extras_order %}
77 {% assign extra = site.extras | where: "slug", lesson_extra | first %}
79 {% assign extra = lesson_extra %}
81 <li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
87 {% comment %} Always show license. {% endcomment %}
88 <li><a href="{{ relative_root_path }}{% link LICENSE.md %}">License</a></li>
90 {% if page.source == "Rmd" %}
91 <li><a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
94 <li><a href="{{repo_url}}/edit/{{ default_branch}}/{{page.path}}" data-checker-ignore>Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
97 <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
98 <div class="form-group">
99 <input type="text" id="google-search" placeholder="Search..." aria-label="Google site search">