1 <nav class="navbar navbar-default">
2 <div class="container-fluid">
3 <div class="navbar-header">
4 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
5 <span class="sr-only">Toggle navigation</span>
6 <span class="icon-bar"></span>
7 <span class="icon-bar"></span>
8 <span class="icon-bar"></span>
10 {% if page.carpentry == "swc" %}
11 <a href="{{ site.swc_site }}" class="pull-left">
12 <img class="navbar-logo" src="{{ site.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" />
14 {% elsif page.carpentry == "dc" %}
15 <a href="{{ site.dc_site }}" class="pull-left">
16 <img class="navbar-logo" src="{{ site.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" />
18 {% elsif site.carpentry == "swc" %}
19 <a href="{{ site.swc_site }}" class="pull-left">
20 <img class="navbar-logo" src="{{ site.root }}/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="{{ site.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" />
27 <a class="navbar-brand" href="{{ site.root }}/">Home</a>
29 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
30 <ul class="nav navbar-nav">
31 <li><a href="{{ site.root }}/conduct/">Code of Conduct</a></li>
32 {% if site.kind == "lesson" %}
33 <li><a href="{{ site.root }}/setup/">Setup</a></li>
35 <a href="{{ site.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
36 <ul class="dropdown-menu">
37 {% for episode in site.episodes %}
38 <li><a href="{{ site.root }}{{ episode.url }}">{{ episode.title }}</a></li>
43 <a href="{{ site.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
44 <ul class="dropdown-menu">
45 {% for extra in site.extras %}
46 <li><a href="{{ site.root }}{{ extra.url }}">{{ extra.title }}</a></li>
50 <li><a href="{{ site.root }}/reference/">Reference</a></li>
52 <li><a href="{{ site.root }}/license/">License</a></li>
54 <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
55 <div class="form-group">
56 <input type="text" id="google-search" placeholder="Search...">