Skip to content

Commit f9fb8d9

Browse files
committed
Initial commit for new ET-Jekyll theme
0 parents  commit f9fb8d9

40 files changed

+1956
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_site/
2+
_drafts/
3+
.jekyll-metadata
4+
Gemfile.lock
5+
.DS_Store

404.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: page
3+
title: Page Not Found
4+
permalink: /404.html
5+
---
6+
7+
<p>Sorry, the page you're looking for can't be found.<br>
8+
If you are lost, try heading back to the homepage.</p>

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "github-pages", group: :jekyll_plugins
4+
gem "jekyll-paginate"

_config.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
###########
2+
# site.title
3+
4+
title: ET-Jekyll Theme
5+
description: A minimal Jekyll theme inspired by Tufte CSS
6+
url: https://bradleytaunt.com/et-jekyll-theme
7+
8+
9+
#########################
10+
# more settings
11+
12+
markdown: kramdown
13+
14+
compress_html:
15+
clippings: all
16+
comments: [""]
17+
endings: [html, head, body, li, dt, dd, rt, rp, optgroup, option, colgroup, caption, thead, tbody, tfoot, tr, td, th]
18+
profile: false
19+
blanklines: false
20+
ignore:
21+
envs: []
22+
23+
sass:
24+
sass_dir: css
25+
style: compressed
26+
27+
baseurl: /
28+
permalink: pretty
29+
timezone: America/New_York
30+
future: false
31+
32+
exclude:
33+
- README.md
34+
- LICENSE.md

_includes/critical.css

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
* {
2+
box-sizing: border-box;
3+
text-rendering: optimizeLegibility;
4+
-webkit-font-smoothing: antialiased;
5+
-moz-osx-font-smoothing: grayscale;
6+
font-kerning: auto;
7+
}
8+
9+
html {
10+
font-family: sans-serif;
11+
-webkit-text-size-adjust: 100%;
12+
}
13+
14+
body {
15+
-webkit-font-smoothing: antialiased;
16+
background: #fffff8;
17+
color: #111;
18+
counter-reset: sidenote-counter;
19+
font: 1.4rem/2rem Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
20+
height: 100%;
21+
margin: 0;
22+
}
23+
.fonts-loaded body {
24+
font: 1.4rem/2rem et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
25+
}
26+
27+
h1,h2,h3,h4,h5,h6 {
28+
font-style: italic;
29+
font-weight: normal;
30+
line-height: 1;
31+
margin: 0;
32+
}
33+
h1 { font-size: 3.2rem; font-style: normal; margin-top: 2.6rem; }
34+
h2 { font-size: 2.2rem; margin-top: 4.2rem; }
35+
h3 { font-size: 1.7rem; margin-top: 2.6rem; }
36+
37+
p {
38+
position: relative;
39+
}
40+
41+
a,a:visited,a:hover {
42+
color: #111;
43+
}
44+
45+
blockquote {
46+
margin: 2rem 0 2rem 4rem;
47+
}
48+
49+
blockquote footer {
50+
font-size: 1.1rem;
51+
text-align: right;
52+
}
53+
54+
figure {
55+
margin: 0;
56+
padding: 0;
57+
position: relative;
58+
}
59+
60+
hr {
61+
background: #111;
62+
border: 0;
63+
height: 1px;
64+
margin: 4rem 0;
65+
width: 100%;
66+
}
67+
68+
pre {
69+
font-size: 90%;
70+
margin-left: 2.5%;
71+
overflow-x: auto;
72+
}
73+
74+
img {
75+
max-width: 100%;
76+
}

_includes/critical.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Load webfonts in
2+
var font = new FontFaceObserver( "et-book" )
3+
font.load().then(function () {
4+
document.documentElement.className += " fonts-loaded";
5+
});

_includes/footer.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
<div class="bottom-footer">
3+
<span class="mini-note">You've reached the end of the page. Good job! 👍</span>
4+
</div>

_includes/head.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<!--#if expr="$HTTP_COOKIE=/fonts\-loaded\=true/" -->
3+
<html lang="en" class="fonts-loaded" dir="ltr">
4+
<!--#else -->
5+
<html lang="en" dir="ltr">
6+
<!--#endif -->
7+
8+
<head>
9+
<meta charset="UTF-8">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
12+
<title>{{ page.title }} | {{ site.title }}</title>
13+
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
14+
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico" type="image/x-icon">
15+
<link rel="icon" href="{{ site.baseurl }}/favicon.ico" type="image/x-icon">
16+
<link href='{{ site.baseurl }}/feed.xml' rel='alternate' type='application/atom+xml'>
17+
<link rel="canonical" href="{{ site.baseurl }}{{ page.url }}">
18+
<link rel="manifest" href="{{ site.baseurl }}/manifest.json">
19+
<link rel="stylesheet" href="{{ site.baseurl}}/css/style.css">
20+
<!-- INLINE CRITICAL CSS -->
21+
<style>
22+
{% include critical.css %}
23+
</style>
24+
<script src="https://cdnjs.cloudflare.com/ajax/libs/fontfaceobserver/2.0.13/fontfaceobserver.js"></script>
25+
<script>
26+
{% include critical.js %}
27+
</script>
28+
</head>
29+
30+
<body>

_includes/header.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<h2>{{ site.title }}</h2>
2+
<nav class="sans">
3+
<input class="menu-btn" type="checkbox" id="menu-btn" />
4+
<p><label class="menu-icon" for="menu-btn">Menu</label></p>
5+
<ul class="site-nav">
6+
<li><a href="{{ site.baseurl }}">Home</a></li>
7+
<li><a href="{{ site.baseurl }}/articles">Articles</a></li>
8+
<li><a href="{{ site.baseurl }}/feed.xml">RSS</a></li>
9+
</ul>
10+
</nav>

_layouts/articles.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: compress
3+
---
4+
5+
{% include head.html %}
6+
7+
<div class="main-container">
8+
9+
{% include header.html %}
10+
11+
<div class="inner-container">
12+
13+
<h1>{{ page.title }}</h1>
14+
15+
{{ page.content }}
16+
17+
{% for post in site.posts %}
18+
<article>
19+
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
20+
<p>
21+
{{ post.description }}
22+
<span class="mini-note">{{ post.date | date: "%b %-d, %Y" }}</span>
23+
</p>
24+
</article>
25+
{% endfor %}
26+
27+
{% include footer.html %}
28+
29+
</div>
30+
31+
</div>
32+
33+
</body>
34+
</html>

_layouts/compress.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# Jekyll layout that compresses HTML
3+
# v3.0.2
4+
# http://jch.penibelst.de/
5+
# © 2014–2015 Anatol Broder
6+
# MIT License
7+
---
8+
9+
{% capture _LINE_FEED %}
10+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}

_layouts/default.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: compress
3+
---
4+
5+
{% include head.html %}
6+
7+
<div class="main-container">
8+
9+
{% include header.html %}
10+
11+
<div class="inner-container">
12+
13+
<h1>{{ page.title }}</h1>
14+
15+
{{ content }}
16+
17+
{% include footer.html %}
18+
19+
</div>
20+
21+
</div>
22+
23+
</body>
24+
</html>

_layouts/page.html

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: compress
3+
---
4+
5+
{% include head.html %}
6+
7+
<div class="main-container">
8+
9+
{% include header.html %}
10+
11+
<div class="inner-container">
12+
13+
<article>
14+
15+
<h1>{{ page.title }}</h1>
16+
17+
{{ content }}
18+
19+
</article>
20+
21+
{% include footer.html %}
22+
23+
</div>
24+
25+
</div>
26+
27+
</body>
28+
</html>

_layouts/post.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: compress
3+
---
4+
5+
{% include head.html %}
6+
7+
<div class="main-container">
8+
9+
{% include header.html %}
10+
11+
<div class="inner-container">
12+
13+
<article>
14+
<h1>{{ page.title }}</h1>
15+
<p class="subtitle">{{ page.date | date: "%b %-d, %Y" }}</p>
16+
17+
{{ page.content }}
18+
19+
<hr>
20+
21+
<h2>Other Articles</h2>
22+
{% for post in site.posts %}
23+
<p><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
24+
<span class="mini-note">{{ post.date | date: "%b %-d, %Y" }}</span></p>
25+
{% endfor %}
26+
</article>
27+
28+
{% include footer.html %}
29+
30+
</div>
31+
32+
</div>
33+
34+
</body>
35+
</html>

0 commit comments

Comments
 (0)