jekyll-theme-perry 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +202 -0
  4. data/_includes/archives.html +13 -0
  5. data/_includes/feed_content.html +7 -0
  6. data/_includes/foot-scripts.html +12 -0
  7. data/_includes/full-social.html +8 -0
  8. data/_includes/meta.html +21 -0
  9. data/_includes/nav.html +3 -0
  10. data/_includes/post-nav.html +4 -0
  11. data/_includes/series.html +9 -0
  12. data/_includes/summary.html +36 -0
  13. data/_layouts/archive.html +25 -0
  14. data/_layouts/default.html +80 -0
  15. data/_layouts/page.html +17 -0
  16. data/_layouts/post.html +21 -0
  17. data/_layouts/redirect.html +7 -0
  18. data/_layouts/series.html +17 -0
  19. data/_sass/abstracts/_mixins.scss +47 -0
  20. data/_sass/abstracts/_variables.scss +30 -0
  21. data/_sass/base/_base.scss +4 -0
  22. data/_sass/base/_helpers.scss +125 -0
  23. data/_sass/base/_typography.scss +41 -0
  24. data/_sass/components/_archives.scss +45 -0
  25. data/_sass/components/_flickr-galleries.scss +48 -0
  26. data/_sass/components/_pagination.scss +25 -0
  27. data/_sass/pages/_tags.scss +9 -0
  28. data/_sass/theme/_article.scss +85 -0
  29. data/_sass/theme/_base.scss +52 -0
  30. data/_sass/theme/_footer.scss +12 -0
  31. data/_sass/theme/_header.scss +14 -0
  32. data/_sass/theme/_media-queries.scss +107 -0
  33. data/_sass/theme/_navigation.scss +59 -0
  34. data/_sass/vendor/_colorbox.scss +70 -0
  35. data/_sass/vendor/_font-awesome.scss +19 -0
  36. data/_sass/vendor/_google-fonts.scss +224 -0
  37. data/_sass/vendor/_normalize.scss +460 -0
  38. data/_sass/vendor/_slicknav.scss +179 -0
  39. data/_sass/vendor/font-awesome/_animated.scss +34 -0
  40. data/_sass/vendor/font-awesome/_bordered-pulled.scss +25 -0
  41. data/_sass/vendor/font-awesome/_core.scss +12 -0
  42. data/_sass/vendor/font-awesome/_fixed-width.scss +6 -0
  43. data/_sass/vendor/font-awesome/_icons.scss +733 -0
  44. data/_sass/vendor/font-awesome/_larger.scss +13 -0
  45. data/_sass/vendor/font-awesome/_list.scss +19 -0
  46. data/_sass/vendor/font-awesome/_mixins.scss +60 -0
  47. data/_sass/vendor/font-awesome/_path.scss +15 -0
  48. data/_sass/vendor/font-awesome/_rotated-flipped.scss +20 -0
  49. data/_sass/vendor/font-awesome/_screen-reader.scss +5 -0
  50. data/_sass/vendor/font-awesome/_stacked.scss +20 -0
  51. data/_sass/vendor/font-awesome/_variables.scss +744 -0
  52. data/assets/css/feed.css +142 -0
  53. data/assets/css/style.scss +40 -0
  54. data/assets/fonts/FontAwesome.otf +0 -0
  55. data/assets/fonts/fontawesome-webfont.eot +0 -0
  56. data/assets/fonts/fontawesome-webfont.svg +685 -0
  57. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  58. data/assets/fonts/fontawesome-webfont.woff +0 -0
  59. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  60. data/assets/images/border.png +0 -0
  61. data/assets/images/controls.png +0 -0
  62. data/assets/images/flickr.png +0 -0
  63. data/assets/images/header-wide.jpg +0 -0
  64. data/assets/images/header.jpg +0 -0
  65. data/assets/images/loading.gif +0 -0
  66. data/assets/images/octocat-icon.png +0 -0
  67. data/assets/images/tar-gz-icon.png +0 -0
  68. data/assets/images/zip-icon.png +0 -0
  69. data/assets/scripts/main.min.js +1 -0
  70. data/assets/scripts/src/main.js +42 -0
  71. data/assets/scripts/vendor/jquery.colorbox.min.js +7 -0
  72. data/assets/scripts/vendor/jquery.slicknav.min.js +6 -0
  73. data/assets/scripts/vendor/modernizr-2.6.2-respond-1.1.0.min.js +11 -0
  74. data/assets/xsl/feed.xsl +34 -0
  75. metadata +187 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ddc1e2dc676ad72fcbad166c2aa41972427a476d
4
+ data.tar.gz: c142a7e4a7710f15e55344dfcdf0e04e4ea19205
5
+ SHA512:
6
+ metadata.gz: 15311760b14821488db6e065fe5abc19e072b9249c34dc6d6303527803ef3dd5f00b940933c07a2d65924daac5feab9ef82e9c6264f066c61d24ac5d263d7cc4
7
+ data.tar.gz: 6ce4ef5caa94e93a3635b36371a80c28a7ff3c40d08db1c63a6e898bef9b52b1a775b6051a9cc08e8f82f176dddec64b056071ac0761d8a580661c4ef01ec3b8
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Richard Perry
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,202 @@
1
+ # jekyll-theme-perry
2
+
3
+ This is a custom Jekyll theme used for my own websites, but anyone who likes it is welcome to make
4
+ use of it for their own purposes. I have developed this as a hobby, the coding is not necessarily
5
+ brilliant so if you want to use it, but have some suggestions as to how it could be improved, then
6
+ please feel free to submit issues, pull/merge requests etc for me to look at. I can't guarantee I
7
+ will make any changes, but I will certainly be interested to get feedback from better developers
8
+ :smiley:
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's Gemfile:
13
+
14
+ ```ruby
15
+ gem "jekyll-theme-perry"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-perry
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-perry
31
+
32
+ ## Features
33
+
34
+ * Responsive layout
35
+ * HTML5
36
+ * [Jekyll SEO Tag][seo] support
37
+ * [Jekyll Redirect From][red] support
38
+ * [Jekyll Archvies][arc] support
39
+ * [Post Series][ps] support
40
+
41
+ ## Usage
42
+
43
+ Before making use of this theme, there are a number of settings that need to be added to the
44
+ `_config.yml` file, and a couple of yaml files to be added to the `_data` directory.
45
+
46
+ The following items need to be added to the `_config.yml` file otherwise there will be errors:
47
+
48
+ * `title` Your site title;
49
+ * `author` The global site author (more details below);
50
+ * `url` The full url of the website;
51
+ * `gems: ['jekyll-seo-tag']` Essential gem used by the theme.
52
+
53
+ The [Jekyll SEO Tag][seo] plugin is included to handle the SEO tags for the theme. If it is not
54
+ included in the `gems` list then the theme will fail.
55
+
56
+ The navigation menu is generated based on a yaml file in the `_data` folder. The file needs to be
57
+ named `links.yml` and the format is as follows:
58
+
59
+ ```yaml
60
+ - url: /
61
+ title: Home
62
+ - url: /blog
63
+ title: Blog
64
+ sub:
65
+ - url: /blog/jekyll
66
+ title: Jekyll
67
+ - url: /blog/technology
68
+ title: Technology
69
+ - url: /about
70
+ title: About Me
71
+ ```
72
+
73
+ Author information needs to be included in the file `_data\authors.yml` and can be leveraged in much
74
+ the same way as it is by the [Jekyll SEO Tag][seo] plugin as detailed [here][s-conf], although much
75
+ more detail has been included in this theme so the following options are available for use on author
76
+ pages:
77
+
78
+ ```yaml
79
+ richard:
80
+ name: Richard Perry
81
+ about:
82
+ email:
83
+ web:
84
+ facebook:
85
+ flickr:
86
+ github:
87
+ gravatar:
88
+ google:
89
+ instagram:
90
+ linkedin:
91
+ twitter:
92
+ ```
93
+
94
+ That's all that needs to be done to get the theme up and running, but that's not all there is. The
95
+ theme has built in support for the [Jekyll Archives][arc] and [Jekyll Redirect From][red] gems with
96
+ a layouts for both included by default. To make use of these plugins, you need to include the gems
97
+ in your `_config.yml` file. The gems section should now something like this:
98
+
99
+ ```yaml
100
+ gems:
101
+ - jekyll-seo-tag
102
+ - jekyll-archives
103
+ - jekyll-redirect-from
104
+ ```
105
+
106
+ Or
107
+
108
+ ```yaml
109
+ gems: ['jekyll-seo-tag','jekyll-archives','jekyll-redirect-from']
110
+ ```
111
+
112
+ In the page footer, you can include copyright information, a 'Powered by Jekyll' attribution and a
113
+ 'Hosted by' attribution. All you need to do is include the following in your `_config.yml` file:
114
+
115
+ ```yaml
116
+ meta:
117
+ copyright:
118
+ year: '2009' # First year of copyright attribution, this will show 2009 - 2017
119
+ powered-by: true
120
+ hosting:
121
+ name: GitHub Pages
122
+ link: //pages.github.com/
123
+ ```
124
+
125
+ The copyright year is the year you want the copyright to start from. The copyright attribution will
126
+ use `site.data.authors[site.author].name`, so set that appropriately. If you just want the copyright
127
+ to display the current year then it should be set to `copyright: true` with no year.
128
+
129
+ Also, you can include a logo as part of your header with the `logo` tag in your `_config.yml` file.
130
+
131
+ ### Archives
132
+
133
+ Archive pages for Categories, Tags, Year, Month & Day can all be automatically generated through the
134
+ [Jekyll Archives][arc] gem as mentioned above, and the theme includes a single layout for them all
135
+ (this can be overidden with your own `archive.html` layout file, or using the [Jekyll Archives][arc]
136
+ configuration settings). To make use of the plugin, you need to add the configuration options
137
+ relevant to you. Further information on this can be found [here][a-conf].
138
+
139
+ This theme also has support for generating lists of posts organised by date in reverse order for use
140
+ as additional archives. The posts are listed and grouped by year and month. This feature can be used
141
+ on any page by putting `{% include archives.html %}` within any loop i.e.
142
+
143
+ ```yaml
144
+ {% for post in site.posts %}
145
+ {% include archives.html %}
146
+ {% endfor %}
147
+ ```
148
+
149
+ ### Post Series
150
+
151
+ There is also support for creating post series with quick links to the other posts in the series (Of
152
+ course, you could just use Categories and/or Tags for this as the [Jekyll Archives][arc] plugin
153
+ creates the archive pages for these already). To make use of this feature you will need to add a
154
+ `_data\series.yml` file using the following format:
155
+
156
+ ```yaml
157
+ - name: "Migrating to Jekyll"
158
+ description: "At the back end of last year, I started migrating my website to Jekyll. This series
159
+ details my journey through that."
160
+ image: "/assets/images/jekyll.png"
161
+ copyright: "Copyright &copy; 2017 <a href='//jekyllrb.com/' title='Jekyll'>Jekyll</a>"
162
+ permalink: /series/jekyll/
163
+ start: "2014-03-18 19:30:00+00:00"
164
+ end: "2014-04-14 21:00:00+00:00"
165
+ ```
166
+ Then to add a post to the series simply add `series: Migrating to Jekyll` to the frontmatter. Then
167
+ to create a page to list all posts in the series in chronological order create a page with the same
168
+ line in the frontmatter and a layout of `series`. Post summaries for each post in the series will
169
+ then be included at the bottom of the page displayed with the oldest post first.
170
+
171
+ ## Contributing
172
+
173
+ Bug reports and pull requests are welcome on GitHub at
174
+ https://github.com/richardp2/jekyll-theme-perry. This project is intended to be a safe, welcoming
175
+ space for collaboration, and contributors are expected to adhere to the
176
+ [Contributor Covenant][contrib] code of conduct.
177
+
178
+ ## Development
179
+
180
+ To set up your environment to develop this theme, run `bundle install`.
181
+
182
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll
183
+ serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your
184
+ theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make
185
+ modifications to your theme and to your content, your site will regenerate and you should see the
186
+ changes in the browser after a refresh, just like normal.
187
+
188
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets`
189
+ tracked with Git will be released.
190
+
191
+ ## License
192
+
193
+ The theme is available as open source under the terms of the [MIT License][mit].
194
+
195
+ [seo]: //github.com/jekyll/jekyll-seo-tag
196
+ [s-conf]: //github.com/jekyll/jekyll-seo-tag#author-information
197
+ [arc]: //github.com/jekyll/jekyll-archives
198
+ [a-conf]: //github.com/jekyll/jekyll-archives/blob/master/docs/configuration.md
199
+ [red]: //github.com/jekyll/jekyll-redirect-from
200
+ [contrib]: //contributor-covenant.org
201
+ [mit]: //opensource.org/licenses/MIT
202
+ [ps]: #post-series
@@ -0,0 +1,13 @@
1
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
2
+ {% unless year == this_year %}
3
+ {% assign year = this_year %}
4
+ <h2 class='year'><a href='/archives/{{ year }}/'>{{year}}</a></h2>
5
+ {% endunless %}
6
+
7
+ {% capture this_month %}{{ post.date | date: "%B%Y" }}{% endcapture %}
8
+ {% unless month == this_month %}
9
+ {% assign month = this_month %}
10
+ <h3 class='month'>{{ post.date | date: "%B" }}</h3>
11
+ {% endunless %}
12
+
13
+ <li><span class='day'>{{ post.date | date:"%d" }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
@@ -0,0 +1,7 @@
1
+ {% case post.layout %}
2
+ {% when 'video' %}
3
+ <iframe width="560" height="315" src="//www.youtube.com/embed/{{post.video}}?rel=0" frameborder="0" allowfullscreen></iframe>
4
+ {{ post.content }}
5
+ {% else %}
6
+ {{ post.content }}
7
+ {% endcase %}
@@ -0,0 +1,12 @@
1
+
2
+ {% if page.comments %}
3
+ {% capture identifier %}{% if page.wordpress_id %}{{ page.wordpress_id }}{% else %}{{ page.url }}{% endif %}{% endcapture %}
4
+ <script defer type="text/javascript">var disqus_shortname="{{ site.disqus.shortname }}",disqus_identifier="{{ identifier }}",disqus_url="http://richard.perry-online.me.uk{{ page.url }}";!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="http://"+disqus_shortname+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)}();</script>
5
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
6
+ <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
7
+ {% endif %}
8
+ <script defer src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
9
+ <!-- <script>window.jQuery || document.write('<script src="/assets/scripts/vendor/jquery-1.10.1.min.js"><\/script>')</script> -->
10
+ <!--<script defer src="/assets/scripts/vendor/jquery.slicknav.min.js"></script> -->
11
+ <script defer src="/assets/scripts/vendor/jquery.colorbox.min.js"></script>
12
+ <script defer src="/assets/scripts/main.min.js"></script>
@@ -0,0 +1,8 @@
1
+ <div class='social'>{% for social in site.data.social %}{% assign author = site.data.authors[page.author] %}
2
+ {% if author[social.name] %}<span class="fa-stack fa-lg">
3
+ <a href='{{social.link}}{{author[social.name]}}' title='{{social.title}}'>
4
+ <i class="fa fa-circle fa-stack-2x"></i>
5
+ <i class="fa {{social.fa-icon}} fa-stack-1x fa-inverse"></i>
6
+ </a>
7
+ </span>{% endif %}{% endfor %}
8
+ </div>
@@ -0,0 +1,21 @@
1
+ {% if post.author %}{% assign author = site.data.authors[post.author] %}{% else %}{% assign author = site.data.authors[site.author] %}{% endif %}
2
+ <span class='meta'>
3
+ <i class='fa fa-clock-o'></i><time itemprop='datePublished' content='{{ post.date | date: '%F' }}' datetime='{{ post.date | date_to_xmlschema }}'> {{ post.date | date: "%d %b %Y" }}</time>
4
+ &nbsp; | &nbsp;
5
+ <i class='fa fa-user'></i> <span itemprop='author'><a href='//www.perry-online.me.uk/author/{{ author.name | downcase | replace: '& ', '' | replace: ' ', '-' }}/' title='{{ author.name }}'>{{ author.name }}</a></span>
6
+
7
+ {% if post.categories.size > 0 %} &nbsp; | &nbsp;
8
+ <i class='fa fa-folder-open'></i> <span itemprop='keywords'>{% for category in post.categories %}
9
+ <a href='/{{ category }}/' class="{{ category }}">{{ site.post_categories[category].name }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}
10
+ </span>{% endif %}
11
+
12
+ {% if post.tags.size > 0 %} &nbsp; | &nbsp;
13
+ <i class='fa fa-tags'></i> <span itemprop='keywords'>{% for tag in post.tags %}
14
+ <a href='/tags/{{ tag | slugify }}/' class="{{ tag }}">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}
15
+ </span>{% endif %}
16
+
17
+ {% if post.locations %} &nbsp; | &nbsp;
18
+ <i class='fa fa-map-marker'></i> <span itemprop='keywords'>{% for location in post.locations %}
19
+ <a class="location" href="{{ site.locations[location].link }}">{{ site.locations[location].name }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}
20
+ </span>{% endif %}
21
+ </span>
@@ -0,0 +1,3 @@
1
+ <ul{% if include.class %} class="{{ include.class }}"{% endif %}>{% for link in include.links %}
2
+ <li itemprop='name'><a href="{{ link.url }}" title="{{ link.title }}" {% if page.title == link.title %}class="current-page"{% endif %} itemprop='url'>{{ link.title }}</a>{% if link.sub %}{% include nav.html links=link.sub %}{% endif %}</li>
3
+ {% endfor %}</ul>
@@ -0,0 +1,4 @@
1
+ <div class='post-nav'>{% if page.previous.url %}
2
+ <span class='alignleft'><a href='{{page.previous.url}}'><i class='fa fa-chevron-left'></i> {{ page.previous.title | truncatewords: 5 }}</a></span>{% endif %}{% if page.next.url %}
3
+ <span class='alignright'><a href='{{page.next.url}}'>{{ page.next.title | truncatewords: 5 }} <i class='fa fa-chevron-right'></i></a></span>{% endif %}
4
+ </div>
@@ -0,0 +1,9 @@
1
+ {% assign post_series = site.data.series[page.series] %}{% assign series = '' %}{% for post in site.posts %}{% if post.url == page.url %}{% assign series = post.series %}{% endif %}{% endfor %}
2
+ <div class="series_list">
3
+ <h4>{{ series }}</h4>
4
+ <ol>{% for post in site.posts reversed %}{% if post.series == series %}
5
+ <li>{% if page.url == post.url %}{{post.title}}{% else %}<a href="{{post.url}}">{{post.title}}</a>{% endif %}</li>{% endif %}{% endfor %}
6
+ </ol>
7
+ </div>
8
+
9
+ {% assign post_series = '' %}{% assign series = '' %}
@@ -0,0 +1,36 @@
1
+ {% capture icon %}
2
+ {% case post.format %}
3
+ {% when 'gallery' or 'image' %}
4
+ <i class='fa fa-picture-o'></i>
5
+ {% when 'video' %}
6
+ <i class='fa fa-film'></i>
7
+ {% when 'link' %}
8
+ <i class='fa fa-link'></i>
9
+ {% else %}
10
+
11
+ {% endcase %}
12
+ {% endcapture %}
13
+ <header>
14
+ <h2 itemprop='headline'>
15
+ <a href='{{ post.url }}' itemprop='url'>
16
+ {{ icon }}{{ post.title }}
17
+ </a>
18
+ </h2>
19
+ {% include meta.html %}
20
+ </header>
21
+
22
+ <section itemProp='articleBody'>
23
+ {% if post.format == "gallery" %}
24
+ {{ post.excerpt }}
25
+ This Gallery contains {{ post.images }} photos.
26
+ {% else %}
27
+ {% if post.video %}<iframe width='560' height='315' src='//www.youtube.com/embed/{{post.video}}?rel=0' frameborder='0' allowfullscreen itemProp='video'></iframe><br/>{% endif %}
28
+ {% if post.image %}<img src="{{ post.image }}" title="{{ post.title }}" alt="{{ post.title }}" class='alignleft' />{% endif %}
29
+ {{ post.content | markdownify | strip_html | truncatewords: 125 }}
30
+ {% endif %}
31
+ </section>
32
+
33
+ <footer>
34
+ <a class='read-more' href='{{ post.url }}' itemprop='url'>read more <i class='fa fa-chevron-right'></i></a>
35
+ </footer>
36
+
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% capture title %}
5
+ {% case page.type %}
6
+ {% when 'tag' or 'category' %}{{ page.type | capitalize }}: {{ page.title }}
7
+ {% when 'year' %}Archives: {{ page.date | date: "%Y" }}
8
+ {% when 'month' %}Archives: {{ page.date | date: "%B %Y" }}
9
+ {% when 'day' %}Archvies: {{ page.date | date: "%d %b %Y" }}
10
+ {% endcase %}
11
+ {% endcapture %}
12
+ <article itemscope itemtype="//schema.org/Article" class="page">
13
+ <header>
14
+ <h1 itemProp="headline">{{ title }}</h1>
15
+ </header>
16
+
17
+ <section class="post-content" itemProp="articleBody">
18
+ <ul id='archive'>
19
+ {% for post in page.posts %}
20
+ {% include archives.html %}
21
+ {% endfor %}
22
+ </ul>
23
+ </section><!-- .post-content -->
24
+ </article><!-- .page -->
25
+
@@ -0,0 +1,80 @@
1
+ <!DOCTYPE html>{% capture title %}{% if page.title == 'Home' %} {{ site.title }} | {{ site.description }}{% else %}{{ page.title }} | {{ site.title }}{% endif %}{% endcapture %}{% if page.author %}{% assign auth = site.data.authors[page.author] %}{% else %}{% assign auth = site.data.authors[site.author] %}{% endif %}{% assign copyname = site.data.authors[site.author].name %}{% capture year %}{{ site.time | date: '%Y' }}{% endcapture %}{% capture copyright %}Copyright &copy; {% unless site.meta.copyright.year and year == site.meta.copyright.year %}{{ site.meta.copyright.year }} - {% endunless %}{{ year }} {{ copyname }}{% endcapture %}
2
+ <html xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns# fb: http://www.facebook.com/2008/fbml# article: http://ogp.me/ns/article#" lang='en-GB'>
3
+ <head>
4
+ <title>{{title}}</title>
5
+
6
+ <meta charset='utf-8'>
7
+ <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
8
+ <meta http-equiv='X-Clacks-Overhead' content='GNU Terry Pratchett'>
9
+ <meta name='author' content='{{auth.name}}'>
10
+ <meta name='viewport' content='width=device-width, initial-scale=1'>
11
+
12
+ <link href='https://fonts.googleapis.com/css?family=Indie+Flower|Lato:400,400i,900,900i&subset=latin-ext' rel='stylesheet'>
13
+ <link rel='stylesheet' href='/assets/css/style.css'>
14
+ <link rel='alternate' href='{{site.url}}/feed.xml' type='application/rss+xml' title='{{ site.title }}'>
15
+ <link rel='author' href='https://plus.google.com/{{auth.google}}'>
16
+
17
+ <script defer src='/assets/scripts/vendor/modernizr-2.6.2-respond-1.1.0.min.js'></script>
18
+
19
+ {% seo title=false %}
20
+ </head>
21
+
22
+ <body>
23
+ <header role='banner' itemscope itemtype='//schema.org/WPHeader'>
24
+ <h1 class='site-title'>{% if site.logo %}{% if site.logo contains 'svg' %}<object type='image/svg+xml' data='{{ site.logo }}' title='{{ site.title }}' name='{{ site.title }} Logo'>{{ site.title }}</object>{% else %}<img src='{{ site.logo }}' title='{{ site.title }}' alt='{{ site.title }} Logo' />{% endif %}{% else %}{{ site.title }}{% endif %}</h1>
25
+ {% if site.description %}<p class='site-description'>{{ site.description }}</p>{% endif %}
26
+ </header>
27
+
28
+ <nav itemscope itemtype='//schema.org/SiteNavigationElement'>
29
+ {% include nav.html links=site.data.links class='main-menu' %}
30
+ </nav><!-- #primary-navigation -->
31
+
32
+ <main itemscope itemtype='//schema.org/Blog'>
33
+
34
+ {{ content }}
35
+
36
+ </main><!-- #main-content -->
37
+
38
+ <footer role='contentinfo' itemscope itemtype='//schema.org/WPFooter'>{% assign author = site.data.authors[site.author] %}
39
+ <div class='social'>
40
+ {% if author.facebook %}<span class='fa-stack fa-2x'>
41
+ <a href='//www.facebook.com/{{author.facebook}}' title='Facebook'>
42
+ <i class='fa fa-circle fa-stack-2x'></i>
43
+ <i class='fa fa-facebook fa-stack-1x fa-inverse'></i>
44
+ </a>
45
+ </span>{% endif %}
46
+ {% if author.twitter %}<span class='fa-stack fa-2x'>
47
+ <a href='//twitter.com/{{author.twitter}}' title='Twitter'>
48
+ <i class='fa fa-circle fa-stack-2x'></i>
49
+ <i class='fa fa-twitter fa-stack-1x fa-inverse'></i>
50
+ </a>
51
+ </span>{% endif %}
52
+ {% if author.github %}<span class='fa-stack fa-2x'>
53
+ <a href='//github.com/{{author.github}}' title='GitHub'>
54
+ <i class='fa fa-circle fa-stack-2x'></i>
55
+ <i class='fa fa-github-alt fa-stack-1x fa-inverse'></i>
56
+ </a>
57
+ </span>{% endif %}
58
+ {% if author.email %}<span class='fa-stack fa-2x'>
59
+ <a href='mai&#108;to&#58;{{author.email}}' title='Email'>
60
+ <i class='fa fa-circle fa-stack-2x'></i>
61
+ <i class='fa fa-envelope fa-stack-1x fa-inverse'></i>
62
+ </a>
63
+ </span>{% endif %}
64
+ <span class='fa-stack fa-2x'>
65
+ <a href='/feed.xml' title='RSS Feed'>
66
+ <i class='fa fa-circle fa-stack-2x feed'></i>
67
+ <i class='fa fa-rss fa-stack-1x fa-inverse'></i>
68
+ </a>
69
+ </span>
70
+ </div>{% if site.meta %}
71
+ <span class='site-meta'>
72
+ {% if site.meta.copyright %}<small class='copyright'>{{ copyright }}</small>{% endif %}
73
+ {% if site.meta.powered-by %}<small>Powered by <a href='//jekyllrb.com/' title='Jekyll &bull; Simple, blog-aware, static sites'>Jekyll</a></small> {% endif %}
74
+ {% if site.meta.hosting %}<small>Hosted at <a href='{{ site.meta.hosting.link }}' title='{{ site.meta.hosting.name }}'>{{ site.meta.hosting.name }}</a></small>{% endif %}
75
+ </span>{% endif %}
76
+ </footer><!-- #page-footer -->
77
+
78
+ {% include foot-scripts.html %}
79
+ </body>
80
+ </html>