Skip to content

Commit 5fd5083

Browse files
committed
use templates for pages
1 parent c589617 commit 5fd5083

9 files changed

Lines changed: 107 additions & 140 deletions

File tree

Projects.html

Lines changed: 0 additions & 72 deletions
This file was deleted.

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclude: [README.md]
2+
gems:
3+
- jekyll-mentions

_includes/footer.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div id="footer">
2+
<hr class="clear">
3+
<span class="credits left">
4+
Project maintained by <a href="https://github.com/rhempel">Ralph Hempel</a>
5+
and <a href="https://github.com/dlech">David Lechner</a>, with help from the community
6+
</span>
7+
<span class="credits right">
8+
Hosted on GitHub Pages <!--&mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a>-->
9+
</span>
10+
</div>
11+

_includes/head.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
4+
<title>{{ page.title }}</title>
5+
<link rel="stylesheet" href="/stylesheets/styles.css">
6+
<link rel="stylesheet" href="/stylesheets/pygment_trac.css">
7+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
8+
<script src="javascripts/respond.js"></script>
9+
<!--[if lt IE 9]>
10+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11+
<![endif]-->
12+
<!--[if lt IE 8]>
13+
<link rel="stylesheet" href="stylesheets/ie.css">
14+
<![endif]-->
15+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
16+
17+
</head>

_includes/header.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div id="header">
2+
<nav>
3+
<li class="home"><a href="/">Home</a></li>
4+
<li class="projects"><a href="/projects">Projects That Use ev3dev</a></li>
5+
<!-- items below float right, so appear in reverse order -->
6+
<li class="issues"><a href="https://github.com/mindboards/ev3dev/issues">Issues</a></li>
7+
<li class="wiki"><a href="https://github.com/mindboards/ev3dev/wiki">Wiki</a></li>
8+
<li class="wiki"><a href="https://github.com/mindboards/ev3dev/releases">Download</a></li>
9+
</nav>
10+
</div>
11+
12+
<!-- make sure this get included on every page -->
13+
<!--[if !IE]><script>fixScale(document);</script><![endif]-->

_includes/title.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div id="title">
2+
<div id="logoContainer">
3+
<a href="index.html">
4+
<img id="logo" src="https://avatars3.githubusercontent.com/u/6878323?s=140" />
5+
</a>
6+
<div id="titleHeader" class="clear">
7+
<h1>{{ page.title }}</h1>
8+
<p>{{ page.subtitle }}</p>
9+
</div>
10+
</div>
11+
<hr class="clear">
12+
</div>
13+

index.html

Lines changed: 15 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,19 @@
1+
---
2+
title: ev3dev
3+
subtitle: Debian on LEGO MINDSTORMS EV3!
4+
---
5+
16
<!doctype html>
27
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6-
<title>ev3dev - Debian on LEGO MINDSTORMS EV3</title>
7-
<link rel="stylesheet" href="stylesheets/styles.css">
8-
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
9-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
10-
<script src="javascripts/respond.js"></script>
11-
<!--[if lt IE 9]>
12-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13-
<![endif]-->
14-
<!--[if lt IE 8]>
15-
<link rel="stylesheet" href="stylesheets/ie.css">
16-
<![endif]-->
17-
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
18-
19-
</head>
8+
{% include head.html %}
209
<body>
21-
<div id="header">
22-
<nav>
23-
<li class="home"><a href="index.html">Home</a></li>
24-
<li class="projects"><a href="Projects.html">Projects That Use ev3dev</a></li>
25-
26-
<li class="wiki"><a href="https://github.com/mindboards/ev3dev/wiki">Wiki</a></li>
27-
<li class="issues"><a href="https://github.com/mindboards/ev3dev/issues">Issues</a></li>
28-
</nav>
29-
</div><!-- end header -->
30-
10+
{% include header.html %}
3111
<div class="wrapper">
32-
3312
<section>
34-
<div id="title">
35-
<div id="logoContainer">
36-
<a href="index.html">
37-
<img id="logo" src="https://avatars3.githubusercontent.com/u/6878323?s=140" />
38-
</a>
39-
<div id="titleHeader" class="clear">
40-
<h1>ev3dev</h1>
41-
<p>Debian on LEGO MINDSTORMS EV3!</p>
42-
</div>
43-
</div>
44-
<hr class="clear">
45-
<span class="credits left">Project maintained by <a href="https://github.com/rhempel">Ralph Hempel</a> and <a href="https://github.com/dlech">David Lechner</a>, with help from the community</span>
46-
<span class="credits right">Hosted on GitHub Pages <!--&mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a>--></span>
47-
</div>
48-
13+
{% include title.html %}
4914
<h3>
5015
Introduction
5116
</h3>
52-
5317
<p>
5418
The <a href="https://github.com/mindboards/ev3dev">
5519
<code>ev3dev</code>
@@ -67,18 +31,18 @@ <h3>
6731
<li>ruby</li>
6832
<li>python</li>
6933
<li>Google Go (golang)</li>
70-
<li>nodejs</li>
34+
<li>Node.js</li>
7135
</ul>
7236

7337
If your favorite language isn't listed, you can still program with the EV3. <code>ev3dev</code> supports standard <code>apt</code> tools, so once you get up-and-running you can install whatever language you like.
7438

7539
And although you <i>can</i> directly access the APIs via file I/O if you want to, let's face it: that's hard. It's much easier when you have a higher-level library to use. Contributors have written language wrappers for the following languages:
7640

7741
<ul>
78-
<li><a href="https://github.com/fdetro/ev3dev-lang/tree/master/cpp">C++ by @fdetro</a></li>
79-
<li><a href="https://github.com/fdetro/ev3dev-lang/tree/master/lua">Lua by @fdetro</a></li>
80-
<li><a href="https://github.com/mattrajca/GoEV3">Google Go by @mattrajca</a></li>
81-
<li><a href="http://wasabifan.github.io/ev3dev-NodeJS/">Node.js by @wasabifan</a></li>
42+
<li><a href="https://github.com/fdetro/ev3dev-lang/tree/master/cpp">C++</a> by @fdetro</li>
43+
<li><a href="https://github.com/fdetro/ev3dev-lang/tree/master/lua">Lua</a> by @fdetro</li>
44+
<li><a href="https://github.com/mattrajca/GoEV3">Google Go</a> by @mattrajca</li>
45+
<li><a href="http://wasabifan.github.io/ev3dev-NodeJS/">Node.js</a> by @wasabifan</li>
8246
</ul>
8347
</p>
8448

@@ -117,7 +81,7 @@ <h4>Using the <code>ev3dev</code> Kernel:</h4>
11781

11882
<h3>The state of the project</h3>
11983
<p>
120-
Currently, the project is being maintained by @dlech and @rhempel in their spare time. Active development is being done in the main <a href="https://github.com/mindboards/ev3dev-kernel">
84+
Currently, the project is being maintained by @dlech and @rhempel in their spare time. Active development is being done in the main <a href="https://github.com/ev3dev/ev3dev-kernel">
12185
<code>ev3dev-kernel</code>
12286
</a> repo as well as in places like <a href="https://github.com/ev3dev/brickdm">
12387
<code>brickdm</code>
@@ -161,11 +125,7 @@ <h4 id="whatsLinux">What's a Linux?</h4>
161125
</p>
162126

163127
</section>
164-
<hr />
165-
166-
128+
{% include footer.html %}
167129
</div>
168-
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
169-
170130
</body>
171131
</html>

projects/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Projects
3+
---
4+
5+
<!doctype html>
6+
<html>
7+
{% include head.html %}
8+
<body>
9+
{% include header.html %}
10+
<div class="wrapper">
11+
<section>
12+
{% include title.html %}
13+
<p>
14+
This is where we keep a collection of all the projects that people are working on using ev3dev. We invite you to click through the links below to see what cool stuff ev3dev can do!
15+
</p>
16+
<ul>
17+
<li><a href="https://github.com/mindboards/ev3dev/issues/63#issuecomment-42717732">Rubik's cube solver</a> by @cavenel</li>
18+
<li><a href="https://gist.github.com/dlech/11098915">Balancing robot</a> by @dlech and @G33kDude</li>
19+
<li><a href="http://youtu.be/9pjpQoZoW6E">Drawing robot</a> by @cavenel</li>
20+
</ul>
21+
22+
</section>
23+
{% include footer.html %}
24+
</div>
25+
</body>
26+
</html>

stylesheets/styles.css

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,6 @@ a small {
603603
display: block;
604604
}
605605

606-
ul {
607-
list-style-image: url("../images/bullet.png");
608-
}
609-
610606
strong {
611607
font-family: 'OpenSansBold', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
612608
font-weight: normal;
@@ -817,7 +813,7 @@ section {
817813
section #title {
818814
border: 0;
819815
outline: none;
820-
margin: 0 0 50px 0;
816+
margin: 0 0 10px 0;
821817
padding: 0 0 5px 0;
822818
}
823819
section #title h1 {
@@ -834,17 +830,17 @@ section #title p {
834830
font-size: 18px;
835831
text-align: center;
836832
}
837-
section #title .credits {
833+
#footer .credits {
838834
font-size: 11px;
839835
font-family: 'OpenSansRegular', "Helvetica Neue", Helvetica, Arial, sans-serif;
840836
font-weight: normal;
841837
color: #696969;
842838
margin-top: -10px;
843839
}
844-
section #title .credits.left {
840+
#footer .credits.left {
845841
float: left;
846842
}
847-
section #title .credits.right {
843+
#footer .credits.right {
848844
float: right;
849845
}
850846

@@ -867,7 +863,7 @@ section #title .credits.right {
867863
#titleHeader {
868864
margin-left:auto;
869865
margin-right: 0px;
870-
width:85%
866+
width:92%
871867
}
872868

873869
@media print, screen and (max-width: 450px) {
@@ -885,17 +881,17 @@ section #title .credits.right {
885881
}
886882

887883
@media print, screen and (max-width: 720px) {
888-
#title .credits {
884+
#footer .credits {
889885
display: block;
890886
width: 100%;
891887
line-height: 30px;
892888
text-align: center;
893889
}
894-
#title .credits .left {
890+
#footer .credits .left {
895891
float: none;
896892
display: block;
897893
}
898-
#title .credits .right {
894+
#footer .credits .right {
899895
float: none;
900896
display: block;
901897
}
@@ -943,4 +939,4 @@ section #title .credits.right {
943939
0% { color: rgb(255, 204, 0); }
944940
70% { color: rgb(255, 204, 0); }
945941
100% { color: #e8e8e8 }
946-
}
942+
}

0 commit comments

Comments
 (0)