projects
/
rnaseq-cwl-training.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e0f4c7a
)
Making pages work for workshops as well as lessons
author
Greg Wilson <gvwilson@third-bit.com>
Sun, 26 Jun 2016 23:14:01 +0000
(19:14 -0400)
committer
Greg Wilson <gvwilson@third-bit.com>
Sun, 26 Jun 2016 23:14:01 +0000
(19:14 -0400)
_layouts/base.html
patch
|
blob
|
history
diff --git
a/_layouts/base.html
b/_layouts/base.html
index d8bbc3bed49974db05be7daceb6babca29e6c641..383d8b374b2d11eb53cbdbe203f24436b31164be 100644
(file)
--- a/
_layouts/base.html
+++ b/
_layouts/base.html
@@
-1,5
+1,14
@@
---
---
---
---
+{% 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>
<!doctype html>
<html lang="en">
<head>
@@
-7,10
+16,10
@@
<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 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 %}
{% if site.carpentry == "swc" %}
<link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
{% endif %}
@@
-29,7
+38,11
@@
<div class="container">
{% include navbar.html %}
{{ content }}
<div class="container">
{% include navbar.html %}
{{ content }}
+ {% if site.kind == "workshop" %}
+ {% include workshop_footer.html %}
+ {% else %}
{% include lesson_footer.html %}
{% include lesson_footer.html %}
+ {% endif %}
</div>
{% include javascript.html %}
</body>
</div>
{% include javascript.html %}
</body>