Skip to content

Commit 07bfad8

Browse files
authored
Adds Common Jekyll Template (#146)
1 parent 8092792 commit 07bfad8

File tree

5 files changed

+151
-0
lines changed

5 files changed

+151
-0
lines changed

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
theme: jekyll-theme-leap-day
2+
slack-workspace: codefellows
3+
instructor-feedback-url: mailto:[email protected]?subject=Instructional%20feedback

_layouts/default.html

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!doctype html>
2+
<html lang="{{ site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<link rel="icon" type="image/png" href="https://images.ctfassets.net/qjy3jg1udcmq/6VzbVoVgKQmsiw04UWSKs/4bb1ad7020692ac5b6eac434ce7cc4ec/code-fellows-favicon.png" />
7+
8+
{% seo %}
9+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
10+
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
11+
<script src="{{ '/assets/js/main.js' | relative_url }}"></script>
12+
<!--[if lt IE 9]>
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" integrity="sha256-3Jy/GbSLrg0o9y5Z5n1uw0qxZECH7C6OQpVBgNFYa0g=" crossorigin="anonymous"></script>
14+
<![endif]-->
15+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
16+
17+
</head>
18+
<body>
19+
20+
<div class="wrapper">
21+
<nav>
22+
<ul></ul>
23+
</nav>
24+
<section>
25+
{{ content }}
26+
27+
</section>
28+
<footer>
29+
<p>
30+
<small>&copy; Code Fellows
31+
<script language="JavaScript" type="text/javascript">
32+
document.write((new Date).getFullYear())
33+
</script>
34+
</small>
35+
</p>
36+
</footer>
37+
</div>
38+
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
39+
40+
{% if site.google_analytics %}
41+
<script type="text/javascript">
42+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
43+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
44+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
45+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
46+
ga('create', '{{ site.google_analytics }}', 'auto');
47+
ga('send', 'pageview');
48+
</script>
49+
{% endif %}
50+
</body>
51+
</html>

_layouts/minimal.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="{{ site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<link rel="icon" type="image/png" href="https://images.ctfassets.net/qjy3jg1udcmq/6VzbVoVgKQmsiw04UWSKs/4bb1ad7020692ac5b6eac434ce7cc4ec/code-fellows-favicon.png" />
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
9+
</head>
10+
<body class="reset">
11+
<main>
12+
{{ content }}
13+
</main>
14+
</body>
15+
</html>

assets/css/style.scss

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
---
3+
4+
@import "{{ site.theme }}";
5+
6+
/* OVERRIDES: */
7+
8+
body {
9+
font-family: 18px/28px "Helvetica Neue", Helvetica, Arial, sans-serif;
10+
background: #F0F0F0;
11+
padding: 0;
12+
}
13+
.reset {
14+
background: #fff;
15+
}
16+
.reset img {
17+
width: 100%;
18+
}
19+
20+
section {
21+
box-shadow: 0px 1px 2px rgba(0,0,0,0.09);
22+
margin-top: 1em;
23+
}
24+
nav {
25+
top: 1em;
26+
}
27+
nav ul a:hover {
28+
color: #2882d1;
29+
}
30+
ul {
31+
list-style: disc;
32+
}
33+
ol ol ol {
34+
margin-bottom: 0;
35+
}
36+
code.highlighter-rouge {
37+
font-family: 'Lucida Sans', Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
38+
font-size: 13px;
39+
color: #cc3524;
40+
text-shadow: unset;
41+
margin: 0 4px;
42+
font-weight: bold;
43+
padding: 2px 6px;
44+
background: #F0F0F0;
45+
border-radius: 2px;
46+
border-bottom: 1px solid #cc3524;
47+
border-right: 1px solid #cc3524;
48+
}
49+
td:first-child {
50+
border-left: 1px solid #e5e5e5;
51+
}
52+
td {
53+
text-align: left;
54+
padding: 5px 10px;
55+
border-bottom: 1px solid #e5e5e5;
56+
border: 1px solid #e5e5e5;
57+
}
58+
a {
59+
color: #2882d1;
60+
font-weight: 400;
61+
text-decoration: none;
62+
}
63+
h1:before {
64+
content: url("https://www.codefellows.org/media/[email protected]");
65+
float: right;
66+
}
67+
blockquote {
68+
border-left: 1px solid #cc3524;
69+
}
70+
a:hover, a:active {
71+
outline: 0;
72+
text-decoration: underline;
73+
}
74+
75+
/* Prevent truncated assignment titles */
76+
@media print, screen and (max-width: 1060px) {
77+
header h1, section h1, footer h1 {
78+
white-space: normal;
79+
overflow: auto;
80+
text-overflow: initial;
81+
}
82+
}

assets/img/gitflow_front.png

1.77 MB
Loading

0 commit comments

Comments
 (0)