4 When rendering websites locally, `site.github.url` doesn't get resolved
5 properly unless GitHub PAT are set up and available in the environment.
6 This leads to warnings and errors when trying to serve the site locally.
7 To work around this, we use the `jekyll.environment` variable which is set to
8 `development` when rendering the site locally, and set to `production` on
9 GitHub where `site.github.url` will be defined.
12 {% if jekyll.environment == "development" %}
13 {% assign search_domain_url = "" %}
14 {% elsif jekyll.environment == "production" %}
15 {% assign search_domain_url = site.github.url %}
18 {% include base_path.html %}
23 <meta charset="utf-8">
24 <meta http-equiv="X-UA-Compatible" content="IE=edge">
25 <meta http-equiv="last-modified" content="{{ site.time }}">
26 <meta name="viewport" content="width=device-width, initial-scale=1">
27 <!-- meta "search-domain" used for google site search function google_search() -->
28 <meta name="search-domain" value="{{ search_domain_url }}">
29 <link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/bootstrap.css" />
30 <link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/bootstrap-theme.css" />
31 <link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/lesson.css" />
32 <link rel="stylesheet" type="text/css" href="{{ relative_root_path }}/assets/css/syntax.css" />
34 {% include favicons.html %}
36 <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
37 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
39 <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
40 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
42 <title>{{ site.title }}{% if page.title %}: {{ page.title }}{% endif %}</title>
46 {% include life_cycle.html %}
48 <div class="container">
49 {% include navbar.html %}
51 {% if site.kind == "workshop" %}
52 {% include workshop_footer.html %}
54 {% include lesson_footer.html %}
57 {% include javascript.html %}