|
11 | 11 | {% comment %} Select what logo to display. {% endcomment %}
|
12 | 12 | {% if page.carpentry == "swc" %}
|
13 | 13 | <a href="{{ site.swc_site }}" class="pull-left">
|
14 |
| - <img class="navbar-logo" src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /> |
| 14 | + <img class="navbar-logo" src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /> |
15 | 15 | </a>
|
16 | 16 | {% elsif page.carpentry == "dc" %}
|
17 | 17 | <a href="{{ site.dc_site }}" class="pull-left">
|
18 |
| - <img class="navbar-logo" src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /> |
| 18 | + <img class="navbar-logo" src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /> |
19 | 19 | </a>
|
20 | 20 | {% elsif site.carpentry == "swc" %}
|
21 | 21 | <a href="{{ site.swc_site }}" class="pull-left">
|
22 |
| - <img class="navbar-logo" src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /> |
| 22 | + <img class="navbar-logo" src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /> |
23 | 23 | </a>
|
24 | 24 | {% elsif site.carpentry == "dc" %}
|
25 | 25 | <a href="{{ site.dc_site }}" class="pull-left">
|
26 |
| - <img class="navbar-logo" src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /> |
| 26 | + <img class="navbar-logo" src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /> |
27 | 27 | </a>
|
28 | 28 | {% endif %}
|
29 | 29 |
|
30 | 30 | {% comment %} Always show link to home page. {% endcomment %}
|
31 |
| - <a class="navbar-brand" href="{{ site.github.url }}/">Home</a> |
| 31 | + <a class="navbar-brand" href="{{ page.root }}/">Home</a> |
32 | 32 |
|
33 | 33 | </div>
|
34 | 34 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
35 | 35 | <ul class="nav navbar-nav">
|
36 | 36 |
|
37 | 37 | {% comment %} Always show code of conduct. {% endcomment %}
|
38 |
| - <li><a href="{{ site.github.url }}/conduct/">Code of Conduct</a></li> |
| 38 | + <li><a href="{{ page.root }}/conduct/">Code of Conduct</a></li> |
39 | 39 |
|
40 | 40 | {% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %}
|
41 | 41 | {% if site.kind == "lesson" %}
|
42 |
| - <li><a href="{{ site.github.url }}/setup/">Setup</a></li> |
43 |
| - <li><a href="{{ site.github.url }}/reference/">Reference</a></li> |
| 42 | + <li><a href="{{ page.root }}/setup/">Setup</a></li> |
| 43 | + <li><a href="{{ page.root }}/reference/">Reference</a></li> |
44 | 44 | <li class="dropdown">
|
45 |
| - <a href="{{ site.github.url }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a> |
| 45 | + <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a> |
46 | 46 | <ul class="dropdown-menu">
|
47 | 47 | {% for episode in site.episodes %}
|
48 |
| - <li><a href="{{ site.github.url }}{{ episode.url }}">{{ episode.title }}</a></li> |
| 48 | + <li><a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a></li> |
49 | 49 | {% endfor %}
|
50 | 50 | </ul>
|
51 | 51 | </li>
|
|
54 | 54 | {% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
|
55 | 55 | {% if site.kind == "lesson" or site.github.repository_name == "workshop-template" %}
|
56 | 56 | <li class="dropdown">
|
57 |
| - <a href="{{ site.github.url }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a> |
| 57 | + <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a> |
58 | 58 | <ul class="dropdown-menu">
|
59 | 59 | {% for extra in site.extras %}
|
60 |
| - <li><a href="{{ site.github.url }}{{ extra.url }}">{{ extra.title }}</a></li> |
| 60 | + <li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li> |
61 | 61 | {% endfor %}
|
62 | 62 | </ul>
|
63 | 63 | </li>
|
64 | 64 | {% endif %}
|
65 | 65 |
|
66 | 66 | {% comment %} Always show license. {% endcomment %}
|
67 |
| - <li><a href="{{ site.github.url }}/license/">License</a></li> |
| 67 | + <li><a href="{{ page.root }}/license/">License</a></li> |
68 | 68 | </ul>
|
69 | 69 | <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
|
70 | 70 | <div class="form-group">
|
|
0 commit comments