Skip to content

Commit 897cced

Browse files
committed
Back to Poole
1 parent 1723595 commit 897cced

25 files changed

+781
-26
lines changed

404.html

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
---
2-
permalink: /404.html
32
layout: default
3+
title: "404: Page not found"
4+
permalink: 404.html
45
---
56

6-
<style type="text/css" media="screen">
7-
.container {
8-
margin: 10px auto;
9-
max-width: 600px;
10-
text-align: center;
11-
}
12-
h1 {
13-
margin: 30px 0;
14-
font-size: 4em;
15-
line-height: 1;
16-
letter-spacing: -1px;
17-
}
18-
</style>
19-
20-
<div class="container">
21-
<h1>404</h1>
22-
23-
<p><strong>Page not found :(</strong></p>
24-
<p>The requested page could not be found.</p>
7+
<div class="page">
8+
<h1 class="page-title">404: Page not found</h1>
9+
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}/">Head back home</a> to try finding it again.</p>
2510
</div>

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ end
2727

2828
# Performance-booster for watching directories on Windows
2929
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
30+
31+
gem "jekyll-gist"
32+
gem "jekyll-paginate"
33+
gem "jekyll-seo-tag"

Gemfile.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ GEM
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
12+
faraday (1.0.1)
13+
multipart-post (>= 1.2, < 3)
1214
ffi (1.13.1)
1315
forwardable-extended (2.6.0)
1416
http_parser.rb (0.6.0)
@@ -31,6 +33,9 @@ GEM
3133
terminal-table (~> 1.8)
3234
jekyll-feed (0.14.0)
3335
jekyll (>= 3.7, < 5.0)
36+
jekyll-gist (1.5.0)
37+
octokit (~> 4.2)
38+
jekyll-paginate (1.1.0)
3439
jekyll-sass-converter (2.1.0)
3540
sassc (> 2.0.1, < 3.0)
3641
jekyll-seo-tag (2.6.1)
@@ -50,6 +55,10 @@ GEM
5055
jekyll (>= 3.5, < 5.0)
5156
jekyll-feed (~> 0.9)
5257
jekyll-seo-tag (~> 2.1)
58+
multipart-post (2.1.1)
59+
octokit (4.18.0)
60+
faraday (>= 0.9)
61+
sawyer (~> 0.8.0, >= 0.5.3)
5362
pathutil (0.16.2)
5463
forwardable-extended (~> 2.6)
5564
public_suffix (4.0.5)
@@ -61,6 +70,9 @@ GEM
6170
safe_yaml (1.0.5)
6271
sassc (2.4.0)
6372
ffi (~> 1.9)
73+
sawyer (0.8.2)
74+
addressable (>= 2.3.5)
75+
faraday (> 0.8, < 2.0)
6476
terminal-table (1.8.0)
6577
unicode-display_width (~> 1.1, >= 1.1.1)
6678
unicode-display_width (1.7.0)
@@ -71,6 +83,9 @@ PLATFORMS
7183
DEPENDENCIES
7284
jekyll (~> 4.1.1)
7385
jekyll-feed (~> 0.12)
86+
jekyll-gist
87+
jekyll-paginate
88+
jekyll-seo-tag
7489
minima (~> 2.5)
7590
tzinfo (~> 1.2)
7691
tzinfo-data

_config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
2727
twitter_username: phocks
2828
github_username: phocks
2929

30+
paginate: 1
31+
3032
# Build settings
3133
theme: minima
3234

3335
plugins:
3436
- jekyll-feed
37+
- jekyll-gist
38+
- jekyll-paginate
39+
- jekyll-seo-tag
3540

3641
permalink: none
3742
# Exclude from processing.
@@ -53,3 +58,7 @@ permalink: none
5358
# - vendor/cache/
5459
# - vendor/gems/
5560
# - vendor/ruby/
61+
62+
sass:
63+
sass_dir: _sass
64+
style: :compressed

_includes/head.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<head>
2+
<meta charset="UTF-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4+
5+
<title>
6+
{% if page.title == "Home" %}
7+
{{ site.title }}{% if site.tagline %} &middot; {{ site.tagline }}{% endif %}
8+
{% else %}
9+
{{ page.title }} &middot; {{ site.title }}
10+
{% endif %}
11+
</title>
12+
13+
<link rel="stylesheet" href="{{ 'styles.css' | relative_url }}">
14+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ '/assets/apple-touch-icon-precomposed.png' | relative_url }}">
15+
<link rel="shortcut icon" href="{{ '/assets/favicon.ico' | relative_url }}">
16+
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ 'atom.xml' | relative_url }}">
17+
18+
{% seo title=false %}
19+
</head>

_layouts/default.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
<div class="container content">
9+
<header class="masthead">
10+
<h3 class="masthead-title">
11+
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
12+
<small>{{ site.tagline }}</small>
13+
</h3>
14+
</header>
15+
16+
<main>
17+
{{ content }}
18+
</main>
19+
20+
<footer class="footer">
21+
<small>
22+
&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. All rights reserved.
23+
</small>
24+
</footer>
25+
</div>
26+
27+
{% if site.ga_analytics %}
28+
<script>
29+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
30+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
31+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
33+
ga('create', '{{ site.ga_analytics }}', 'auto');
34+
ga('send', 'pageview');
35+
</script>
36+
{% endif %}
37+
</body>
38+
</html>

_layouts/page.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="page">
6+
<h1 class="page-title">{{ page.title }}</h1>
7+
{{ content }}
8+
</article>

_layouts/post.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="post">
6+
<h1 class="post-title">{{ page.title }}</h1>
7+
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
8+
{{ content }}
9+
</article>
10+
11+
{% if site.related_posts != empty %}
12+
<aside class="related">
13+
<h3>Related posts</h3>
14+
<ul class="related-posts">
15+
{% for post in site.related_posts limit:3 %}
16+
<li>
17+
<a href="{{ site.baseurl }}{{ post.url }}">
18+
{{ post.title }}
19+
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
20+
</a>
21+
</li>
22+
{% endfor %}
23+
</ul>
24+
</aside>
25+
{% endif %}

_sass/_base.scss

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Body resets
2+
//
3+
// Update the foundational and global aspects of the page.
4+
5+
* {
6+
box-sizing: border-box;
7+
}
8+
9+
body {
10+
margin: 0;
11+
font-family: var(--body-font);
12+
font-size: var(--body-font-size);
13+
line-height: var(--body-line-height);
14+
color: var(--body-color);
15+
background-color: var(--body-bg);
16+
-webkit-text-size-adjust: 100%;
17+
-ms-text-size-adjust: 100%;
18+
}
19+
20+
// No `:visited` state is required by default (browsers will use `a`)
21+
a {
22+
color: var(--link-color);
23+
24+
// `:focus` is linked to `:hover` for basic accessibility
25+
&:hover,
26+
&:focus {
27+
color: var(--link-hover-color);
28+
}
29+
30+
strong {
31+
color: inherit;
32+
}
33+
}
34+
35+
img {
36+
display: block;
37+
max-width: 100%;
38+
margin-bottom: var(--spacer);
39+
border-radius: var(--border-radius);
40+
}
41+
42+
table {
43+
margin-bottom: 1rem;
44+
width: 100%;
45+
border: 0 solid var(--border-color);
46+
border-collapse: collapse;
47+
}
48+
49+
td,
50+
th {
51+
padding: .25rem .5rem;
52+
border-color: inherit;
53+
border-style: solid;
54+
border-width: 0;
55+
border-bottom-width: 1px;
56+
}
57+
58+
th {
59+
text-align: left;
60+
}
61+
62+
thead th {
63+
border-bottom-color: currentColor;
64+
}
65+
66+
mark {
67+
padding: .15rem;
68+
background-color: var(--yellow-100);
69+
border-radius: .125rem;
70+
}

_sass/_code.scss

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// Code
2+
//
3+
// Inline and block-level code snippets. Includes tweaks to syntax highlighted
4+
// snippets from Pygments/Rouge and Gist embeds.
5+
6+
code,
7+
pre {
8+
font-family: var(--code-font);
9+
}
10+
11+
code {
12+
font-size: 85%;
13+
}
14+
15+
pre {
16+
display: block;
17+
margin-top: 0;
18+
margin-bottom: var(--spacer-3);
19+
overflow: auto;
20+
}
21+
22+
.highlight {
23+
padding: var(--spacer);
24+
margin-bottom: var(--spacer);
25+
background-color: var(--code-bg);
26+
border-radius: var(--border-radius);
27+
28+
pre {
29+
margin-bottom: 0;
30+
}
31+
32+
// Triple backticks (code fencing) doubles the .highlight elements
33+
.highlight {
34+
padding: 0;
35+
}
36+
}
37+
38+
.rouge-table {
39+
margin-bottom: 0;
40+
font-size: 100%;
41+
42+
&,
43+
td,
44+
th {
45+
border: 0;
46+
}
47+
48+
.gutter {
49+
vertical-align: top;
50+
user-select: none;
51+
opacity: .25;
52+
}
53+
}
54+
55+
// Gist via GitHub Pages
56+
.gist .markdown-body {
57+
padding: 15px !important;
58+
}

0 commit comments

Comments
 (0)