5 {% include gh_variables.html %}
7 <nav class="navbar navbar-default">
8 <div class="container-fluid">
9 <div class="navbar-header">
10 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
11 <span class="sr-only">Toggle navigation</span>
12 <span class="icon-bar"></span>
13 <span class="icon-bar"></span>
14 <span class="icon-bar"></span>
17 {% comment %} Select what logo to display. {% endcomment %}
18 {% if site.carpentry == "swc" %}
19 <a href="{{ site.swc_site }}" class="pull-left">
20 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/swc-icon-blue.svg %}" alt="Software Carpentry logo" />
22 {% elsif site.carpentry == "dc" %}
23 <a href="{{ site.dc_site }}" class="pull-left">
24 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/dc-icon-black.svg %}" alt="Data Carpentry logo" />
26 {% elsif site.carpentry == "lc" %}
27 <a href="{{ site.lc_site }}" class="pull-left">
28 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/lc-icon-black.svg %}" alt="Library Carpentry logo" />
30 {% elsif site.carpentry == "cp" %}
31 <a href="{{ site.carpentries_site }}" class="pull-left">
32 <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/cp-logo-blue.svg %}" alt="The Carpentries logo" />
36 {% comment %} Always show link to home page. {% endcomment %}
37 <a class="navbar-brand" href="{{ relative_root_path }}{% link index.md %}">Home</a>
40 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
41 <ul class="nav navbar-nav">
43 {% comment %} Always show code of conduct. {% endcomment %}
44 <li><a href="{{ relative_root_path }}{% link CODE_OF_CONDUCT.md %}">Code of Conduct</a></li>
46 {% if site.kind == "lesson" %}
47 {% comment %} Show setup instructions. {% endcomment %}
48 <li><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></li>
50 {% comment %} Show lesson episodes for lessons. {% endcomment %}
52 <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>
53 <ul class="dropdown-menu">
54 {% for episode in site.episodes %}
55 <li><a href="{{ relative_root_path }}{{ episode.url }}">{{ episode.title }}</a></li>
57 <li role="separator" class="divider"></li>
58 <li><a href="{{ relative_root_path }}{% link aio.md %}">All in one page (Beta)</a></li>
63 {% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
64 {% if site.kind == "lesson" %}
66 <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>
67 <ul class="dropdown-menu">
68 <li><a href="{{ relative_root_path }}{% link reference.md %}">Reference</a></li>
69 {% for extra in site.extras %}
70 <li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
76 {% comment %} Always show license. {% endcomment %}
77 <li><a href="{{ relative_root_path }}{% link LICENSE.md %}">License</a></li>
79 {% if page.source == "Rmd" %}
80 <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>
83 <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>
86 <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
87 <div class="form-group">
88 <input type="text" id="google-search" placeholder="Search..." aria-label="Google site search">