Skip to content

Commit 9c6706e

Browse files
author
Matthieu Oger
committed
Add development include
1 parent b2f4646 commit 9c6706e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

_includes/development.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% if jekyll.environment == "development" %}
2+
<div class="page-development-warning">DEVELOPMENT MODE</div>
3+
4+
<style type="text/css">
5+
.page-development-warning {
6+
width: 100%;
7+
margin: 0;
8+
padding: 20px;
9+
10+
color: white;
11+
background: black;
12+
13+
font-family: Helvetica, Arial, sans-serif !important;
14+
font-size: 16px !important;
15+
font-weight: normal !important;
16+
font-variant: normal !important;
17+
line-height: normal !important;
18+
}
19+
</style>
20+
{% endif %}

_layouts/tutorial.html

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<style>body { background-color: #fbfbfb; }</style>
88
</head>
99
<body>
10+
{% include development.html %}
11+
1012
<div class="page tutorial" id="page">
1113
<!-- start promotion header -->
1214
{% include promotion_header.html %}

0 commit comments

Comments
 (0)