phantom-blergh 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +78 -0
- data/_includes/collection-index.html +19 -0
- data/_includes/disqus_comments.html +19 -0
- data/_includes/footer.html +68 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +38 -0
- data/_includes/header.html +52 -0
- data/_includes/index.html +23 -0
- data/_includes/read-time.html +6 -0
- data/_layouts/default.html +26 -0
- data/_layouts/home.html +29 -0
- data/_layouts/page.html +16 -0
- data/_layouts/post.html +41 -0
- data/_sass/phantom-blergh.scss +68 -0
- data/_sass/phantom-blergh/base/_page.scss +40 -0
- data/_sass/phantom-blergh/base/_typography.scss +203 -0
- data/_sass/phantom-blergh/components/_box.scss +26 -0
- data/_sass/phantom-blergh/components/_button.scss +88 -0
- data/_sass/phantom-blergh/components/_form.scss +206 -0
- data/_sass/phantom-blergh/components/_icon.scss +50 -0
- data/_sass/phantom-blergh/components/_image.scss +64 -0
- data/_sass/phantom-blergh/components/_list.scss +177 -0
- data/_sass/phantom-blergh/components/_section.scss +26 -0
- data/_sass/phantom-blergh/components/_syntax_highlighting.scss +320 -0
- data/_sass/phantom-blergh/components/_table.scss +81 -0
- data/_sass/phantom-blergh/components/_tiles.scss +258 -0
- data/_sass/phantom-blergh/ie8.scss +92 -0
- data/_sass/phantom-blergh/ie9.scss +52 -0
- data/_sass/phantom-blergh/layout/_articles.scss +19 -0
- data/_sass/phantom-blergh/layout/_footer.scss +139 -0
- data/_sass/phantom-blergh/layout/_header.scss +136 -0
- data/_sass/phantom-blergh/layout/_main.scss +15 -0
- data/_sass/phantom-blergh/layout/_menu.scss +164 -0
- data/_sass/phantom-blergh/layout/_wrapper.scss +26 -0
- data/_sass/phantom-blergh/libs/_functions.scss +34 -0
- data/_sass/phantom-blergh/libs/_mixins.scss +51 -0
- data/_sass/phantom-blergh/libs/_skel.scss +537 -0
- data/_sass/phantom-blergh/libs/_vars.scss +50 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/ie9.scss +6 -0
- data/assets/css/main.scss +5 -0
- data/assets/favicon.png +0 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +685 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/images/stock01.jpg +0 -0
- data/assets/images/stock02.jpg +0 -0
- data/assets/images/stock03.jpg +0 -0
- data/assets/images/stock04.jpg +0 -0
- data/assets/images/stock05.jpg +0 -0
- data/assets/images/stock06.jpg +0 -0
- data/assets/images/stock07.jpg +0 -0
- data/assets/images/stock08.jpg +0 -0
- data/assets/images/stock09.jpg +0 -0
- data/assets/images/stock10.jpg +0 -0
- data/assets/images/stock11.jpg +0 -0
- data/assets/images/stock12.jpg +0 -0
- data/assets/images/stock13.jpg +0 -0
- data/assets/images/stock14.jpg +0 -0
- data/assets/images/stock15.jpg +0 -0
- data/assets/js/email.js +18 -0
- data/assets/js/https.js +11 -0
- data/assets/js/ie/html5shiv.js +8 -0
- data/assets/js/ie/respond.min.js +6 -0
- data/assets/js/jquery.min.js +5 -0
- data/assets/js/main.js +200 -0
- data/assets/js/skel.min.js +2 -0
- data/assets/js/util.js +587 -0
- data/assets/logo.svg +14 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f0cf89d1b891e1bda4dcdf93300cb0b5b16e51df
|
4
|
+
data.tar.gz: 8d4de931df8c66fd91970e295815f6696388d8b3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0c5a23bc9cee7c3ba01cee1609dca587058c5b323d44616b81fdeb603bf77be46999d59c843fdebf2f691d65bb5b4364688db4c50107acbcd5bf273016d1834b
|
7
|
+
data.tar.gz: 554eee59db1c2afdd57ed5847b7eae5e82d9c7b566702dab519b8b850e8c0b83d9bdf4b4d7b547e8bf2eaf2a00079bc3bea4e764ada156e34532a6d5b6b8862a
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 David Alexander
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# phantom-blergh
|
2
|
+
|
3
|
+
A Jekyll theme adaptation of the CC-0 theme
|
4
|
+
[Phantom](https://html5up.net/phantom) by [HTML5Up](https://html5up.net).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your Jekyll site's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "phantom-blergh"
|
12
|
+
```
|
13
|
+
|
14
|
+
And add this line to your Jekyll site's `_config.yml`:
|
15
|
+
|
16
|
+
```yaml
|
17
|
+
theme: phantom-blergh
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install phantom-blergh
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
Additional (optional) site-wide configuration variables are used and can go in
|
31
|
+
your `_config.yml`:
|
32
|
+
|
33
|
+
```yaml
|
34
|
+
gitlab_username: my_super_awesome_username
|
35
|
+
|
36
|
+
features:
|
37
|
+
https_only: true
|
38
|
+
email_obfuscation_enabled: false
|
39
|
+
readtime_enabled: false
|
40
|
+
|
41
|
+
whitelist:
|
42
|
+
- jekyll-rot13display
|
43
|
+
- jekyll-readtime
|
44
|
+
```
|
45
|
+
|
46
|
+
TODO: Describe available layouts, includes, and/or sass.
|
47
|
+
|
48
|
+
## Contributing
|
49
|
+
|
50
|
+
Bug reports and pull requests are welcome on GitLab at https://gitlab.com/thelonelyghost/phantom-blergh. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
51
|
+
|
52
|
+
## Development
|
53
|
+
|
54
|
+
To set up your environment to develop this theme, create a new example Jekyll site by running `cd .. && jekyll new pb-example`.
|
55
|
+
|
56
|
+
Once the bundle install process is finished, `cd` into the newly created
|
57
|
+
`pb-example` directory and modify `Gemfile` in the following way:
|
58
|
+
|
59
|
+
```diff
|
60
|
+
|
61
|
+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
62
|
+
- gem "minima", "~> 2.0"
|
63
|
+
+ gem "phantom-blergh", path: File.expand_path('../phantom-blergh', File.dirname(__FILE__))
|
64
|
+
|
65
|
+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
66
|
+
```
|
67
|
+
|
68
|
+
Running `bundle exec jekyll serve` from the Jekyll installation will use the
|
69
|
+
theme just the same as if you installed it via Rubygems. Changes made to the
|
70
|
+
theme will only be reflected if you restart the Jekyll server, but it gives a
|
71
|
+
decent way of testing against the default Jekyll installation.
|
72
|
+
|
73
|
+
When your theme is released, only the files in `assets`, `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
74
|
+
|
75
|
+
## License
|
76
|
+
|
77
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
78
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<h1>{{ include.collection.label | capitalize }}</h1>
|
2
|
+
|
3
|
+
<section class="collection-index">
|
4
|
+
{% for item in include.collection.docs %}
|
5
|
+
{% comment %}
|
6
|
+
<pre><code>
|
7
|
+
{{ item | inspect }}
|
8
|
+
</pre></code>
|
9
|
+
{% endcomment %}
|
10
|
+
<article{% cycle '', ' class="alternate"' %}>
|
11
|
+
<a href="{{ item.url | relative_url }}">
|
12
|
+
<h2>{{ item.title | escape }} →</h2>
|
13
|
+
<div class="content">
|
14
|
+
{{ item.excerpt }}
|
15
|
+
</div>
|
16
|
+
</a>
|
17
|
+
</article>
|
18
|
+
{% endfor %}
|
19
|
+
</section>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% if page.comments != false and jekyll.environment == "production" %}
|
2
|
+
<div id="disqus_thread"></div>
|
3
|
+
<script>
|
4
|
+
var disqus_config = function () {
|
5
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
6
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
7
|
+
};
|
8
|
+
|
9
|
+
(function() {
|
10
|
+
var d = document, s = d.createElement('script');
|
11
|
+
|
12
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
13
|
+
|
14
|
+
s.setAttribute('data-timestamp', +new Date());
|
15
|
+
(d.head || d.body).appendChild(s);
|
16
|
+
})();
|
17
|
+
</script>
|
18
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
19
|
+
{% endif %}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<footer id="footer">
|
2
|
+
<div class="inner">
|
3
|
+
<section>
|
4
|
+
<h2>What is this?</h2>
|
5
|
+
{% if site.description %}
|
6
|
+
<p>{{ site.description | escape }}</p>
|
7
|
+
{% else %}
|
8
|
+
<p>A personal blog for personal thoughts. Contents of this blog are
|
9
|
+
intended as opinion, not fact, and as such are protected speech.</p>
|
10
|
+
{% endif %}
|
11
|
+
</section>
|
12
|
+
|
13
|
+
<section>
|
14
|
+
<h2>Follow</h2>
|
15
|
+
<ul class="social-media-list icons">
|
16
|
+
{% if site.gitlab_username %}
|
17
|
+
<li>
|
18
|
+
<a href="https://gitlab.com/u/{{ site.gitlab_username }}"
|
19
|
+
target="_blank" class="icon fa-gitlab">
|
20
|
+
<span class="label">GitLab</span>
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
{% if site.github_username %}
|
26
|
+
<li>
|
27
|
+
<a href="https://github.com/{{ site.github_username }}"
|
28
|
+
target="_blank" class="icon fa-github">
|
29
|
+
<span class="label">GitHub</span>
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
{% if site.twitter_username %}
|
35
|
+
<li>
|
36
|
+
<a href="https://twitter.com/{{ site.twitter_username }}"
|
37
|
+
target="_blank" class="icon fa-twitter">
|
38
|
+
<span class="label">Twitter</span>
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
{% endif %}
|
42
|
+
|
43
|
+
{% if site.linkedin_username %}
|
44
|
+
<li>
|
45
|
+
<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}"
|
46
|
+
target="_blank" class="icon fa-linkedin">
|
47
|
+
<span class="label">LinkedIn</span>
|
48
|
+
</a>
|
49
|
+
</li>
|
50
|
+
{% endif %}
|
51
|
+
</ul>
|
52
|
+
</section>
|
53
|
+
|
54
|
+
<ul class="copyright">
|
55
|
+
<li>
|
56
|
+
©
|
57
|
+
{% if site.author %}
|
58
|
+
{{ site.author | escape }}.
|
59
|
+
{% else %}
|
60
|
+
{{ site.title | escape }}.
|
61
|
+
{% endif %}
|
62
|
+
All rights reserved
|
63
|
+
</li>
|
64
|
+
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
</footer>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
|
+
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
|
10
|
+
</script>
|
11
|
+
|
data/_includes/head.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8" />
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
5
|
+
<script type="text/javascript">
|
6
|
+
(function() {
|
7
|
+
// redirect from http://thelonelyghost.gitlab.io/blog/foo -> https://blog.thelonelyghost.com/foo
|
8
|
+
// Someday this will be scripted into something with better hooks into Jekyll
|
9
|
+
if(window.location.hostname == 'thelonelyghost.gitlab.io' && (window.location.pathname || '').match(/^\/?blog\/?/i)) {
|
10
|
+
var path = (function(pathname) {
|
11
|
+
var parts = pathname.split('/');
|
12
|
+
while(parts.length > 0 && (parts[0] == '' || parts[0] == 'blog')) parts.shift();
|
13
|
+
return parts.length > 0 ? parts.join('/') : '';
|
14
|
+
})(window.location.pathname);
|
15
|
+
path += window.location.search;
|
16
|
+
path += window.location.hash;
|
17
|
+
window.location = 'https://blog.thelonelyghost.com/' + path;
|
18
|
+
}
|
19
|
+
})();
|
20
|
+
</script>
|
21
|
+
{% if site.features.https_only == true %}
|
22
|
+
<script type="text/javascript" src="{{ "/assets/js/https.js" | relative_url }}"></script>
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
26
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
27
|
+
|
28
|
+
<link rel="stylesheet" href="{{ "/assets/favicon.png" | relative_url }}">
|
29
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
30
|
+
<!--[if lte IE 9]><link rel="stylesheet" href="{{ "/assets/css/ie9.css" | relative_url }}" /><![endif]-->
|
31
|
+
|
32
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
33
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
34
|
+
|
35
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
36
|
+
{% include google-analytics.html %}
|
37
|
+
{% endif %}
|
38
|
+
</head>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<header id="header" role="banner">
|
2
|
+
<div class="inner">
|
3
|
+
|
4
|
+
<a class="logo" href="{{ "/" | relative_url}}">
|
5
|
+
{% if site.logo_path %}
|
6
|
+
<span class="symbol"><img src="{{ site.logo_path | relative_url }}" alt="" /></span>
|
7
|
+
{% else %}
|
8
|
+
<span class="symbol"><img src="{{ "/assets/logo.svg" | relative_url }}" alt="" /></span>
|
9
|
+
{% endif %}
|
10
|
+
<span class="title">{{ site.title | escape }}</span>
|
11
|
+
</a>
|
12
|
+
|
13
|
+
<!-- Nav -->
|
14
|
+
<nav>
|
15
|
+
<ul>
|
16
|
+
<li><a href="#menu">Menu</a></li>
|
17
|
+
</ul>
|
18
|
+
</nav>
|
19
|
+
|
20
|
+
{% comment %}
|
21
|
+
<nav class="site-nav">
|
22
|
+
<span class="menu-icon">
|
23
|
+
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
24
|
+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
|
25
|
+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
|
26
|
+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
|
27
|
+
</svg>
|
28
|
+
</span>
|
29
|
+
|
30
|
+
<div class="trigger">
|
31
|
+
{% for my_page in site.pages %}
|
32
|
+
{% if my_page.title %}
|
33
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
34
|
+
{% endif %}
|
35
|
+
{% endfor %}
|
36
|
+
</div>
|
37
|
+
</nav>
|
38
|
+
{% endcomment %}
|
39
|
+
</div>
|
40
|
+
</header>
|
41
|
+
|
42
|
+
<!-- Menu -->
|
43
|
+
<nav id="menu">
|
44
|
+
<h2>Menu</h2>
|
45
|
+
<ul>
|
46
|
+
{% for my_page in site.pages %}
|
47
|
+
{% if my_page.title %}
|
48
|
+
<li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
|
49
|
+
{% endif %}
|
50
|
+
{% endfor %}
|
51
|
+
</ul>
|
52
|
+
</nav>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div class="home">
|
2
|
+
<h1 class="page-heading">{{ includes.title }}</h1>
|
3
|
+
|
4
|
+
<p>
|
5
|
+
{{ includes.description }}
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<ul class="post-list">
|
9
|
+
{% for post in includes.documents %}
|
10
|
+
<li>
|
11
|
+
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
|
12
|
+
|
13
|
+
<h2>
|
14
|
+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
15
|
+
</h2>
|
16
|
+
</li>
|
17
|
+
{% endfor %}
|
18
|
+
</ul>
|
19
|
+
|
20
|
+
<!--
|
21
|
+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
|
22
|
+
-->
|
23
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
<div id="wrapper">
|
8
|
+
{% include header.html %}
|
9
|
+
|
10
|
+
<main id="main" aria-label="Content">
|
11
|
+
<div class="inner">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</main>
|
15
|
+
|
16
|
+
{% include footer.html %}
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<!-- Scripts -->
|
20
|
+
<script src="{{ "/assets/js/jquery.min.js" | relative_url }}"></script>
|
21
|
+
<script src="{{ "/assets/js/skel.min.js" | relative_url }}"></script>
|
22
|
+
<script src="{{ "/assets/js/util.js" | relative_url }}"></script>
|
23
|
+
<script src="{{ "/assets/js/main.js" | relative_url }}"></script>
|
24
|
+
<script src="{{ "/assets/js/email.js" | relative_url }}"></script>
|
25
|
+
</body>
|
26
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% if content %}
|
6
|
+
<header>
|
7
|
+
{{ content }}
|
8
|
+
</header>
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% assign image = "/assets/images/stock" | relative_url %}
|
12
|
+
<section class="tiles">
|
13
|
+
{% for collection in site.collections %}
|
14
|
+
{% unless collection.navigation_list == true %}
|
15
|
+
{% continue %}
|
16
|
+
{% endunless %}
|
17
|
+
<article>
|
18
|
+
<span class="image">
|
19
|
+
<img src="{{ image }}{% cycle '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12' %}.jpg" alt="" />
|
20
|
+
</span>
|
21
|
+
<a href="{{ collection.label | slugify | prepend: '/' | append: '.html' | relative_url }}">
|
22
|
+
<h2>{{ collection.label | capitalize }}</h2>
|
23
|
+
<div class="content">
|
24
|
+
<p>{{ collection.description }}</p>
|
25
|
+
</div>
|
26
|
+
</a>
|
27
|
+
</article>
|
28
|
+
{% endfor %}
|
29
|
+
</section>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="page">
|
6
|
+
<h1>{{ page.title | escape }}</h1>
|
7
|
+
{% if page.banner_image %}
|
8
|
+
<span class="image main fit">
|
9
|
+
<img src="{{ page.banner_image | relative_url }}" alt="{{ page.banner_image_description | default: '' }}" />
|
10
|
+
</span>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
<div class="page-content">
|
14
|
+
{{ content }}
|
15
|
+
</div>
|
16
|
+
</article>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
6
|
+
<header class="post-header">
|
7
|
+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
|
8
|
+
<p class="post-meta">
|
9
|
+
<time datetime="{{ page.date | date_to_xmlschema }}"
|
10
|
+
itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>
|
11
|
+
{% if page.author %}
|
12
|
+
•
|
13
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
14
|
+
<span itemprop="name">{{ page.author }}</span>
|
15
|
+
</span>
|
16
|
+
{% elsif site.author %}
|
17
|
+
•
|
18
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
19
|
+
<span itemprop="name">{{ site.author }}</span>
|
20
|
+
</span>
|
21
|
+
{% endif %}
|
22
|
+
{% if site.features.readtime_enabled == true %}
|
23
|
+
• {% include read-time.html content=page.content %}
|
24
|
+
{% endif %}
|
25
|
+
</p>
|
26
|
+
</header>
|
27
|
+
|
28
|
+
{% if page.banner_image %}
|
29
|
+
<span class="post-banner image main fit">
|
30
|
+
<img src="{{ page.banner_image | relative_url }}" alt="{{ page.banner_image_description | default: '' }}" />
|
31
|
+
</span>
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
<div class="post-content" itemprop="articleBody">
|
35
|
+
{{ content }}
|
36
|
+
</div>
|
37
|
+
|
38
|
+
{% if site.disqus.shortname %}
|
39
|
+
{% include discus_comments.html %}
|
40
|
+
{% endif %}
|
41
|
+
</article>
|