--- /dev/null
+
+{% if site.life_cycle == "pre-alpha" %}
+
+<div class="panel panel-default life-cycle">
+ <div id="life-cycle" class="panel-body pre-alpha">
+ This lesson is still being designed and assembled (Pre-Alpha version)
+ </div>
+</div>
+
+
+{% elsif site.life_cycle == "alpha" %}
+
+<div class="panel panel-default life-cycle">
+ <div id="life-cycle" class="panel-body alpha">
+ This lesson is in the early stages of development (Alpha version)
+ </div>
+</div>
+
+
+{% elsif site.life_cycle == "beta" %}
+
+<div class="panel panel-default life-cycle">
+ <div id="life-cycle" class="panel-body beta">
+ This lesson is being piloted (Beta version)
+ </div>
+</div>
+
+{% elsif site.life_cycle == "stable" %}
+
+{% comment %}
+We don't do anything special for now
+{% endcomment %}
+
+{% endif %}
<title>{{ site.title }}{% if page.title %}: {{ page.title }}{% endif %}</title>
</head>
<body>
+
+ {% include life_cycle.html %}
+
<div class="container">
{% include navbar.html %}
{{ content }}
}
+//----------------------------------------
+// Life cycle box
+//----------------------------------------
+
+div.life-cycle {
+ position: -webkit-sticky; /* Safari */
+ position: sticky;
+ top: 0;
+ z-index: 100;
+ font-size: 1.2em;
+ text-align: center;
+ margin-bottom: -1px;
+ border-radius: 0;
+}
+
+.pre-alpha {
+ color: #a94442;
+ background: #f2dede;
+}
+
+.alpha {
+ color: #8a6d3b;
+ background: #fcf8e3;
+}
+
+.beta {
+ color: #31708f;
+ background: #d9edf7;
+}
+
+
//----------------------------------------
// keyboard key style, from StackExchange.
//----------------------------------------
var domain = $("meta[name=search-domain]").attr("value");
window.open("https://www.google.com/search?q=" + query + "+site:" + domain);
}
+
+// function to shrink the life cycle bar when scrolling
+$(function(){
+ $('#life-cycle').data('size','big');
+});
+
+$(window).scroll(function(){
+ if($(document).scrollTop() > 0)
+ {
+ if($('#life-cycle').data('size') == 'big')
+ {
+ $('#life-cycle').data('size','small');
+ $('#life-cycle').stop().animate({
+ padding: '5px'
+ },100);
+ }
+ }
+ else
+ {
+ if($('#life-cycle').data('size') == 'small')
+ {
+ $('#life-cycle').data('size','big');
+ $('#life-cycle').stop().animate({
+ padding: '15px'
+ },100);
+ }
+ }
+});
# Overall title for pages.
title: "Lesson Title"
+# Life cycle stage of the lesson
+# possible values: "pre-alpha", "alpha", "beta", "stable"
+life_cycle: "pre-alpha"
+
#------------------------------------------------------------
# Generic settings (should not need to change).
#------------------------------------------------------------