Must provide permalinks in pages, not layouts
[rnaseq-cwl-training.git] / _layouts / base.html
1 ---
2 ---
3 {% comment %}
4   If previewing locally, site.root is set in _config_dev.yml.
5   If site.root is not set, assume we're viewing on the web.
6 {% endcomment %}
7 {% if site.root %}
8   {% assign root = site.root %}
9 {% else %}
10   {% assign root = site.github.url %}
11 {% endif %}
12 <!doctype html>
13 <html lang="en">
14   <head>
15     <meta charset="utf-8">
16     <meta http-equiv="X-UA-Compatible" content="IE=edge">
17     <meta http-equiv="last-modified" content="{{ site.time }}">
18     <meta name="viewport" content="width=device-width, initial-scale=1">
19     <meta name="search-domain" value="{{ root }}">
20     <link rel="stylesheet" type="text/css" href="{{ root }}/assets/css/bootstrap.css" />
21     <link rel="stylesheet" type="text/css" href="{{ root }}/assets/css/bootstrap-theme.css" />
22     <link rel="stylesheet" type="text/css" href="{{ root }}/assets/css/lesson.css" />
23     {% if site.carpentry == "swc" %}
24     <link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
25     {% endif %}
26     {% if site.carpentry == "dc" %}
27     <link rel="shortcut icon" type="image/x-icon" href="/favicon-dc.ico" />
28     {% endif %}
29     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
30     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
31     <!--[if lt IE 9]>
32         <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
33         <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
34         <![endif]-->
35     <title>{{ site.title }}{% if page.title %}: {{ page.title }}{% endif %}</title>
36   </head>
37   <body>
38     <div class="container">
39       {% include navbar.html %}
40 {{ content }}
41       {% if site.kind == "workshop" %}
42       {% include workshop_footer.html %}
43       {% else %}
44       {% include lesson_footer.html %}
45       {% endif %}
46     </div>
47     {% include javascript.html %}
48   </body>
49 </html>