Skip to content

Commit

Permalink
Making pages work for workshops as well as lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Wilson committed Jun 26, 2016
1 parent e0f4c7a commit de59b96
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions _layouts/base.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
---
---
{% comment %}
If previewing locally, site.root is set in _config_dev.yml.
If site.root is not set, assume we're viewing on the web.
{% endcomment %}
{% if site.root %}
{% assign root = site.root %}
{% else %}
{% assign root = site.github.url %}
{% endif %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="last-modified" content="{{ site.time }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="search-domain" value="https://{{ site.root }}">
<link rel="stylesheet" type="text/css" href="{{ site.root }}/assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="{{ site.root }}/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="{{ site.root }}/assets/css/lesson.css" />
<meta name="search-domain" value="{{ root }}">
<link rel="stylesheet" type="text/css" href="{{ root }}/assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="{{ root }}/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="{{ root }}/assets/css/lesson.css" />
{% if site.carpentry == "swc" %}
<link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
{% endif %}
Expand All @@ -29,7 +38,11 @@
<div class="container">
{% include navbar.html %}
{{ content }}
{% if site.kind == "workshop" %}
{% include workshop_footer.html %}
{% else %}
{% include lesson_footer.html %}
{% endif %}
</div>
{% include javascript.html %}
</body>
Expand Down

0 comments on commit de59b96

Please sign in to comment.