Skip to content

Commit faa4a5b

Browse files
author
Hannah Ross
committed
website setup
1 parent 6202d19 commit faa4a5b

File tree

91 files changed

+3135
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3135
-0
lines changed

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Ignore docs files
2+
_gh_pages
3+
_site
4+
.ruby-version
5+
6+
# Numerous always-ignore extensions
7+
*.diff
8+
*.err
9+
*.orig
10+
*.log
11+
*.rej
12+
*.swo
13+
*.swp
14+
*.zip
15+
*.vi
16+
*~
17+
18+
# OS or Editor folders
19+
.DS_Store
20+
._*
21+
Thumbs.db
22+
.cache
23+
.project
24+
.settings
25+
.tmproj
26+
*.esproj
27+
nbproject
28+
*.sublime-project
29+
*.sublime-workspace
30+
.idea
31+
32+
# Komodo
33+
*.komodoproject
34+
.komodotools
35+
36+
# grunt-html-validation
37+
validation-status.json
38+
validation-report.json
39+
40+
# Folders to ignore
41+
node_modules
42+
.sass-cache
43+
44+
# Dev stuff
45+
Makefile
46+
Gemfile.lock
47+
_config.dev.yml
48+
.vscode
49+
*.gem

404.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
title: "404: Page not found"
4+
permalink: 404.html
5+
---
6+
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>
10+
</div>

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source "https://rubygems.org"
2+
gemspec

LICENSE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Released under MIT License
2+
3+
Copyright (c) 2013 Mark Otto.
4+
5+
Copyright (c) 2017 Andrew Fong.
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

_config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Dependencies
2+
markdown: kramdown
3+
highlighter: rouge
4+
5+
# Setup
6+
title: Hydeout
7+
tagline: 'A Jekyll theme'
8+
description: 'The <a href="http://hyde.getpoole.com" target="_blank">Hyde</a> theme for <a href="http://jekyllrb.com" target="_blank">Jekyll</a>, refreshed.'
9+
url: https://fongandrew.github.io/hydeout
10+
baseurl: # the optional subpath of your site, e.g. "/blog"
11+
# NB: This applies to all pages in your Jekyll site.
12+
# If you want to move just the blog index pages but keep
13+
# other pages at root, see the paginate_path and
14+
# sidebar_blog_link below.
15+
16+
author:
17+
name: 'Andrew Fong'
18+
url: https://twitter.com/fongandrewc
19+
20+
paginate: 5
21+
# paginate_path: '/page:num'
22+
# Or '/blog/page:num' if you want to move your index pages
23+
24+
plugins:
25+
- jekyll-feed
26+
- jekyll-gist
27+
- jekyll-paginate
28+
29+
# Custom vars
30+
version: 3.4.1
31+
sidebar_home_link: true
32+
# sidebar_blog_link: '/blog' # By default, your home page is your blog
33+
# page. If you change your paginate_path,
34+
# set this to the root of the paginate_path
35+
# to enable a separate blog link.
36+
github:
37+
repo: https://github.com/fongandrew/hydeout

_includes/category-links.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% comment %}
2+
Dynamically generate list of links to all category pages
3+
{% endcomment %}
4+
{% assign pages_list = site.pages %}
5+
{% for node in pages_list %}
6+
{% if node.title != null %}
7+
{% if node.layout == "category" %}
8+
<a class="category-link {% if page.url == node.url %} active{% endif %}"
9+
href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a>
10+
{% endif %}
11+
{% endif %}
12+
{% endfor %}

_includes/comments.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% if page.comments != false %}
2+
<section class="comments">
3+
<h2>Comments</h2>
4+
{% include disqus.html %}
5+
</section>
6+
{% endif %}

_includes/copyright.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<p>
2+
&copy; {{ site.time | date: '%Y' }}.
3+
<a href="{{ site.baseurl }}/LICENSE.md">MIT License.</a>
4+
</p>

_includes/custom-foot.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Optional footer content -->

_includes/custom-head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Additional head bits without overriding original head -->

_includes/custom-icon-links.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Optional additional links to insert for icons links -->

_includes/custom-nav-links.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Optional additional links to insert in sidebar nav -->

_includes/disqus.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{% if site.disqus.shortname %}
2+
<div id="disqus_thread">
3+
<button class="disqus-load" onClick="loadDisqusComments()">
4+
Load Comments
5+
</button>
6+
</div>
7+
<script>
8+
9+
/**
10+
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW
11+
* TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
12+
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT:s
13+
* https://disqus.com/admin/universalcode/#configuration-variables
14+
*/
15+
var disqus_config = function () {
16+
this.page.url = "{{ page.url | absolute_url }}";
17+
this.page.identifier = "{{ page.guid or page.id }}" ||
18+
"{{ page.url | absolute_url }}";
19+
}
20+
function loadDisqusComments() { // DON'T EDIT BELOW THIS LINE
21+
var d = document, s = d.createElement('script');
22+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
23+
s.setAttribute('data-timestamp', +new Date());
24+
(d.head || d.body).appendChild(s);
25+
}
26+
</script>
27+
<noscript>
28+
Please enable JavaScript to view the
29+
<a href="https://disqus.com/?ref_noscript">comments powered by Disqus</a>.
30+
</noscript>
31+
32+
{% elsif jekyll.environment != "production" %}
33+
<p>
34+
You are seeing this because your Disqus shortname is not properly set. To
35+
configure Disqus, you should edit your <code>_config.yml</code> to include
36+
either a <code>disqus.shortname</code> variable.
37+
</p>
38+
39+
<p>
40+
If you do not wish to use Disqus, override the
41+
<code>comments.html</code> partial for this theme.
42+
</p>
43+
{% endif %}

_includes/favicons.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/favicon.png" />
2+
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico" />

_includes/font-includes.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% comment %}
2+
Separate partial for Google Webfont include, so we can override with
3+
different fonts as applicable.
4+
{% endcomment %}
5+
6+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface" />

_includes/google-analytics.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% if jekyll.environment == 'production' and site.google_analytics %}
2+
<script>
3+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7+
8+
ga('create', '{{ site.google_analytics }}', 'auto');
9+
ga('send', 'pageview');
10+
</script>
11+
{% endif %}

_includes/head.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<head>
2+
<link href="http://gmpg.org/xfn/11" rel="profile" />
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
4+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
5+
6+
<!-- Enable responsiveness on mobile devices-->
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
8+
9+
<title>
10+
{% if page.title == "Home" %}
11+
{{ site.title }}{% if site.tagline %} &middot; {{ site.tagline }}{% endif %}
12+
{% else %}
13+
{{ page.title }} &middot; {{ site.title }}
14+
{% endif %}
15+
</title>
16+
17+
{% include google-analytics.html %}
18+
19+
<!-- CSS -->
20+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css" />
21+
{% include font-includes.html %}
22+
23+
<!-- Icons -->
24+
{% include favicons.html %}
25+
26+
<!-- RSS -->
27+
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml" />
28+
29+
{% include custom-head.html %}
30+
</head>

_includes/page-links.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% comment %}
2+
The code below dynamically generates a sidebar nav of pages with
3+
`sidebar_link: true` in the front-matter. See readme for usage.
4+
{% endcomment %}
5+
{% assign pages_list = site.pages %}
6+
{% for node in pages_list %}
7+
{% if node.title != null %}
8+
{% if node.sidebar_link %}
9+
<a class="page-link {% if page.url == node.url %} active{% endif %}"
10+
href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a>
11+
{% endif %}
12+
{% endif %}
13+
{% endfor %}

_includes/pagination-newer.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% if paginator.previous_page %}
2+
<div class="pagination">
3+
<a class="pagination-item newer"
4+
href="{{ site.baseurl }}{{ paginator.previous_page_path }}">
5+
Newer
6+
</a>
7+
</div>
8+
{% endif %}

_includes/pagination-older.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% if paginator.next_page %}
2+
<div class="pagination">
3+
<a class="pagination-item older"
4+
href="{{ site.baseurl }}{{ paginator.next_page_path }}">
5+
Older
6+
</a>
7+
</div>
8+
{% endif %}

_includes/post-meta.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<div class="post-meta">
2+
<span class="post-date">{{ include.post.date | date_to_string }}</span>
3+
<span class="post-categories">
4+
{% for category in include.post.categories %}
5+
&bull;
6+
7+
{% comment %}
8+
Check if this category has a corresponding page before decide
9+
to link to it. This is an O(n^2) operations so consider removing
10+
it and linking for all categories (or no categories) if this
11+
site has a lot of pages and/or a lot of categories.
12+
{% endcomment %}
13+
{% assign category_page = false %}
14+
{% for node in site.pages %}
15+
{% if node.category == category or node.title == category %}
16+
{% assign category_page = node %}
17+
{% endif %}
18+
{% endfor %}
19+
20+
{% if category_page %}
21+
<a href="{{ site.baseurl }}{{ category_page.url }}">
22+
{{ category }}
23+
</a>
24+
{% else %}
25+
{{ category }}
26+
{% endif %}
27+
{% endfor %}
28+
</span>
29+
</div>

_includes/post-tags.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% comment %}
2+
Check if we have a tags page active before linking to it.
3+
{% endcomment %}
4+
{% assign tags_page = false %}
5+
{% for node in site.pages %}
6+
{% if node.layout == "tags" %}
7+
{% assign tags_page = node %}
8+
{% endif %}
9+
{% endfor %}
10+
11+
<div class="post-tags">
12+
{% for tag in include.post.tags %}
13+
{% if tags_page %}
14+
<a href="{{ site.baseurl }}{{ tags_page.url }}#{{ tag | slugify }}">
15+
{% else %}<span>{% endif %}
16+
<span class="icon">
17+
{% include svg/tags.svg %}
18+
</span>&nbsp;<span class="tag-name">{{ tag }}</span>
19+
{% if tags_page %}</a>{% else %}</span>{% endif %}
20+
{% endfor %}
21+
</div>

_includes/related_posts.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<section class="related">
2+
<h2>Related Posts</h2>
3+
<ul class="posts-list">
4+
{% for post in site.related_posts limit:3 %}
5+
<li>
6+
<h3>
7+
<a href="{{ site.baseurl }}{{ post.url }}">
8+
{{ post.title }}
9+
<small>{{ post.date | date_to_string }}</small>
10+
</a>
11+
</h3>
12+
</li>
13+
{% endfor %}
14+
</ul>
15+
</section>

_includes/search-form.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<form action="https://google.com/search" class="search-form">
2+
<div class="search-row">
3+
<input id="search-bar" type="search" name="q" />
4+
5+
{% comment %}
6+
Hacky strip of protocol to the sitesearch value we pass to Google
7+
{% endcomment %}
8+
{% assign url = site.url | replace_first: 'https://', '' %}
9+
{% assign url = url | replace_first: 'http://', '' %}
10+
{% assign url = url | replace_first: 'spdy://', '' %}
11+
{% assign url = url | replace_first: '//', '' %}
12+
<input name="sitesearch" type="hidden"
13+
value="{{ url }}{{ site.baseurl }}" />
14+
15+
<input type="submit" value="Search" />
16+
</div>
17+
</form>

0 commit comments

Comments
 (0)