4 <nav class="navbar navbar-default">
5 <div class="container-fluid">
6 <div class="navbar-header">
7 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
8 <span class="sr-only">Toggle navigation</span>
9 <span class="icon-bar"></span>
10 <span class="icon-bar"></span>
11 <span class="icon-bar"></span>
14 {% comment %} Select what logo to display. {% endcomment %}
15 {% if page.carpentry == "swc" %}
16 <a href="{{ site.swc_site }}" class="pull-left">
17 <img class="navbar-logo" src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" />
19 {% elsif page.carpentry == "dc" %}
20 <a href="{{ site.dc_site }}" class="pull-left">
21 <img class="navbar-logo" src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" />
23 {% elsif page.carpentry == "lc" %}
24 <a href="{{ site.lc_site }}" class="pull-left">
25 <img class="navbar-logo" src="{{ page.root }}/assets/img/lc-icon-black.svg" alt="Library Carpentry logo" />
27 {% elsif site.carpentry == "swc" %}
28 <a href="{{ site.swc_site }}" class="pull-left">
29 <img class="navbar-logo" src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" />
31 {% elsif site.carpentry == "dc" %}
32 <a href="{{ site.dc_site }}" class="pull-left">
33 <img class="navbar-logo" src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" />
35 {% elsif site.carpentry == "lc" %}
36 <a href="{{ site.lc_site }}" class="pull-left">
37 <img class="navbar-logo" src="{{ page.root }}/assets/img/lc-icon-black.svg" alt="Library Carpentry logo" />
41 {% comment %} Always show link to home page. {% endcomment %}
42 <a class="navbar-brand" href="{{ page.root }}/">Home</a>
45 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
46 <ul class="nav navbar-nav">
48 {% comment %} Always show code of conduct. {% endcomment %}
49 <li><a href="{{ page.root }}/conduct/">Code of Conduct</a></li>
51 {% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %}
52 {% if site.kind == "lesson" %}
53 <li><a href="{{ page.root }}/setup/">Setup</a></li>
55 <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
56 <ul class="dropdown-menu">
57 {% for episode in site.episodes %}
58 <li><a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a></li>
64 {% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
65 {% if site.kind == "lesson" or site.github.repository_name == "workshop-template" %}
67 <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
68 <ul class="dropdown-menu">
69 <li><a href="{{ page.root }}/reference/">Reference</a></li>
70 {% for extra in site.extras %}
71 <li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li>
77 {% comment %} Always show license. {% endcomment %}
78 <li><a href="{{ page.root }}/license/">License</a></li>
80 {% if page.source == "Rmd" %}
81 <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>
84 <li><a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
87 <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
88 <div class="form-group">
89 <input type="text" id="google-search" placeholder="Search..." aria-label="Google site search">