geekspace 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +15 -0
- data/_includes/comments.html +28 -0
- data/_includes/foot.html +11 -0
- data/_includes/footer.html +5 -0
- data/_includes/head.html +99 -0
- data/_includes/header.html +3 -0
- data/_includes/intro.html +6 -0
- data/_includes/nav.html +17 -0
- data/_includes/pagination.html +23 -0
- data/_includes/post-share.html +8 -0
- data/_layouts/compress.html +11 -0
- data/_layouts/default.html +12 -0
- data/_layouts/home.html +47 -0
- data/_layouts/page.html +12 -0
- data/_layouts/post.html +16 -0
- data/_sass/_layout.scss +364 -0
- data/_sass/_syntax-highlighting.scss +96 -0
- data/_sass/_variables.scss +47 -0
- data/_sass/base/_base.scss +11 -0
- data/_sass/base/_buttons.scss +37 -0
- data/_sass/base/_forms.scss +90 -0
- data/_sass/base/_lists.scss +31 -0
- data/_sass/base/_reset.scss +54 -0
- data/_sass/base/_tables.scss +25 -0
- data/_sass/base/_typography.scss +139 -0
- data/_sass/bourbon/_bourbon.scss +54 -0
- data/_sass/bourbon/bourbon/helpers/_buttons-list.scss +14 -0
- data/_sass/bourbon/bourbon/helpers/_scales.scss +27 -0
- data/_sass/bourbon/bourbon/helpers/_text-inputs-list.scss +26 -0
- data/_sass/bourbon/bourbon/library/_border-color.scss +26 -0
- data/_sass/bourbon/bourbon/library/_border-radius.scss +85 -0
- data/_sass/bourbon/bourbon/library/_border-style.scss +25 -0
- data/_sass/bourbon/bourbon/library/_border-width.scss +25 -0
- data/_sass/bourbon/bourbon/library/_buttons.scss +84 -0
- data/_sass/bourbon/bourbon/library/_clearfix.scss +25 -0
- data/_sass/bourbon/bourbon/library/_contrast-switch.scss +81 -0
- data/_sass/bourbon/bourbon/library/_ellipsis.scss +36 -0
- data/_sass/bourbon/bourbon/library/_font-face.scss +65 -0
- data/_sass/bourbon/bourbon/library/_font-stacks.scss +248 -0
- data/_sass/bourbon/bourbon/library/_hide-text.scss +24 -0
- data/_sass/bourbon/bourbon/library/_hide-visually.scss +70 -0
- data/_sass/bourbon/bourbon/library/_margin.scss +37 -0
- data/_sass/bourbon/bourbon/library/_modular-scale.scss +120 -0
- data/_sass/bourbon/bourbon/library/_overflow-wrap.scss +25 -0
- data/_sass/bourbon/bourbon/library/_padding.scss +36 -0
- data/_sass/bourbon/bourbon/library/_position.scss +62 -0
- data/_sass/bourbon/bourbon/library/_prefixer.scss +37 -0
- data/_sass/bourbon/bourbon/library/_shade.scss +32 -0
- data/_sass/bourbon/bourbon/library/_size.scss +50 -0
- data/_sass/bourbon/bourbon/library/_strip-unit.scss +17 -0
- data/_sass/bourbon/bourbon/library/_text-inputs.scss +163 -0
- data/_sass/bourbon/bourbon/library/_timing-functions.scss +36 -0
- data/_sass/bourbon/bourbon/library/_tint.scss +32 -0
- data/_sass/bourbon/bourbon/library/_triangle.scss +82 -0
- data/_sass/bourbon/bourbon/library/_value-prefixer.scss +37 -0
- data/_sass/bourbon/bourbon/settings/_settings.scss +75 -0
- data/_sass/bourbon/bourbon/utilities/_assign-inputs.scss +28 -0
- data/_sass/bourbon/bourbon/utilities/_compact-shorthand.scss +42 -0
- data/_sass/bourbon/bourbon/utilities/_contrast-ratio.scss +31 -0
- data/_sass/bourbon/bourbon/utilities/_directional-property.scss +68 -0
- data/_sass/bourbon/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
- data/_sass/bourbon/bourbon/utilities/_font-source-declaration.scss +52 -0
- data/_sass/bourbon/bourbon/utilities/_gamma.scss +24 -0
- data/_sass/bourbon/bourbon/utilities/_lightness.scss +24 -0
- data/_sass/bourbon/bourbon/utilities/_unpack-shorthand.scss +29 -0
- data/_sass/bourbon/bourbon/validators/_contains-falsy.scss +20 -0
- data/_sass/bourbon/bourbon/validators/_contains.scss +26 -0
- data/_sass/bourbon/bourbon/validators/_is-color.scss +13 -0
- data/_sass/bourbon/bourbon/validators/_is-length.scss +20 -0
- data/_sass/bourbon/bourbon/validators/_is-number.scss +15 -0
- data/_sass/bourbon/bourbon/validators/_is-size.scss +18 -0
- data/_sass/geekspace.scss +8 -0
- data/assets/css/main.scss +5 -0
- data/assets/icons/FontAwesome/FontAwesome.otf +0 -0
- data/assets/icons/FontAwesome/fontawesome-webfont.eot +0 -0
- data/assets/icons/FontAwesome/fontawesome-webfont.svg +685 -0
- data/assets/icons/FontAwesome/fontawesome-webfont.ttf +0 -0
- data/assets/icons/FontAwesome/fontawesome-webfont.woff +0 -0
- data/assets/icons/FontAwesome/fontawesome-webfont.woff2 +0 -0
- data/assets/images/author.jpg +0 -0
- data/assets/images/cover.jpg +0 -0
- data/assets/images/logo.jpg +0 -0
- metadata +233 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 598361057f1c0ffc20c81ca54867c63aaa267175b92905a743fb7c22f1fbc89e
|
4
|
+
data.tar.gz: 73b618eb97c117cc19c9086c76340f16b240ab000c4504d1224492dc1a431244
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5b35caf5a20465a152791726096edad693b7be7abafd6abd8782690fcaa41b995c9dc33848c5042d7dd4ee439f160e61ea951e64fc9c61b3b95d74abc098e783
|
7
|
+
data.tar.gz: ba47ce53d9c212d050328923e8b5f81e9243258c9392bf87f2e8b398e84c61da5b84a873f908ce4d614f2676cf94d720ff7f7f8f2ef44dc1467e046e663e712c
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Heiswayi Nrird
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Geek space
|
2
|
+
|
3
|
+
> Geek space is just a minimalist Jekyll theme which designed for technical writing blog.
|
4
|
+
|
5
|
+
This theme is build on top of https://github.com/heiswayi/thinkspace, with changes insired by a custom version of [CODE SPACE Tumblr Theme](https://github.com/doersino/Tumblr-Themes/tree/master/CODE%26SPACE)
|
6
|
+
|
7
|
+
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![GENERATOR](https://img.shields.io/badge/made_with-jekyll-blue.svg) ![VERSION](https://img.shields.io/badge/current_version-3.1.1-green.svg) ![TRAVIS-CI](https://travis-ci.org/alessinossa/geekspace.svg?branch=master)
|
8
|
+
|
9
|
+
[//]: # - **Demo:** https://alessionossa.github.io/geekspace/
|
10
|
+
|
11
|
+
![SCREENSHOT](https://i.imgur.com/1YS078k.png)
|
12
|
+
|
13
|
+
## License
|
14
|
+
|
15
|
+
[MIT](LICENSE)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{% if site.comments_enabled and page.comments %}
|
2
|
+
<aside id="comments" class="disqus">
|
3
|
+
|
4
|
+
<div class="container">
|
5
|
+
<h3><i class="icon icon-comments-o"></i> Comments</h3>
|
6
|
+
<div id="disqus_thread"></div>
|
7
|
+
|
8
|
+
<script type="text/javascript">
|
9
|
+
var disqus_shortname = '{{ site.disqus_shortname }}';
|
10
|
+
var disqus_identifier = '{{ page.id }}';
|
11
|
+
var disqus_title = '{{ page.title }}';
|
12
|
+
var disqus_url = '{{ page.url | prepend: site.baseurl | prepend: site.url }}';
|
13
|
+
/*var disqus_developer = 1;*/
|
14
|
+
|
15
|
+
(function() {
|
16
|
+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
17
|
+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
18
|
+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
19
|
+
})();
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<noscript>
|
23
|
+
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
|
24
|
+
</noscript>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
</aside>
|
28
|
+
{% endif %}
|
data/_includes/foot.html
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
var _gaq = _gaq || [];
|
3
|
+
_gaq.push(['_setAccount', '{{ site.google_analytics }}']);
|
4
|
+
_gaq.push(['_trackPageview']);
|
5
|
+
|
6
|
+
(function() {
|
7
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
8
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
9
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
10
|
+
})();
|
11
|
+
</script>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<footer class="site-footer">
|
2
|
+
<div class="container">
|
3
|
+
<small class="block">© {{ site.time | date: '%Y' }} {{ site.author.name }} · </> Powered by <a href="https://jekyllrb.com/">Jekyll</a> and <a href="https://github.com/alessionossa/geekspace">Geek space theme</a></small>
|
4
|
+
</div>
|
5
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
|
7
|
+
{% assign page_title = '' %}
|
8
|
+
{% if page.title == "Home" %}
|
9
|
+
{% capture page_title %}
|
10
|
+
{{ site.title_left }}{{ site.title_right }} | {{ site.description }}
|
11
|
+
{%if paginator and paginator.page != 1 %} - {{ paginator.page }}{% endif %}
|
12
|
+
{% endcapture %}
|
13
|
+
{% else %}
|
14
|
+
{% capture page_title %}
|
15
|
+
{%if page.slug == 'category' %}Category: {% endif %}
|
16
|
+
{%if page.slug == 'tag' %}Tag: {% endif %} {{ page.title }} | {{ site.title_left }}{{ site.title_right }}
|
17
|
+
{% endcapture %}
|
18
|
+
{% endif %}
|
19
|
+
{% capture page_title %}
|
20
|
+
{{ page_title | strip | rstrip | lstrip | escape | strip_newlines }}
|
21
|
+
{% endcapture %}
|
22
|
+
|
23
|
+
<title>{{ page_title }}</title>
|
24
|
+
|
25
|
+
{% assign page_description = '' %}
|
26
|
+
{% capture page_description %}
|
27
|
+
{% if page.description %}
|
28
|
+
{{ page.description | strip_html | strip | rstrip | strip_newlines | truncate: 160 }}
|
29
|
+
{% else %}
|
30
|
+
{{ site.description }}
|
31
|
+
{% endif %}
|
32
|
+
{%if paginator and paginator.page != 1 %} - {{ paginator.page }} {% endif %}
|
33
|
+
{%if page.slug == 'category' %} Category: {{ page.title }}{% endif %}
|
34
|
+
{%if page.slug == 'tag' %} Tag: {{ page.title }}{% endif %}
|
35
|
+
{% endcapture %}
|
36
|
+
|
37
|
+
{% capture page_description %}
|
38
|
+
{{ page_description | strip | rstrip | lstrip | escape | strip_newlines }}
|
39
|
+
{% endcapture %}
|
40
|
+
|
41
|
+
<meta name="description" content="{{ page_description }}">
|
42
|
+
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords }}{% else %}{{ site.keywords }}{% endif %}">
|
43
|
+
|
44
|
+
<meta name="HandheldFriendly" content="True">
|
45
|
+
<meta name="MobileOptimized" content="320">
|
46
|
+
|
47
|
+
{% assign page_image = '' %}
|
48
|
+
{% capture page_image %}
|
49
|
+
{% if page.cover %}
|
50
|
+
{{ page.cover | prepend: site.baseurl | prepend: site.url }}
|
51
|
+
{% else %}
|
52
|
+
{{ site.cover | prepend: site.baseurl | prepend: site.url }}
|
53
|
+
{% endif %}
|
54
|
+
{% endcapture %}
|
55
|
+
{% capture page_image %}{{ page_image | strip | rstrip | lstrip | escape | strip_newlines }}{% endcapture %}
|
56
|
+
|
57
|
+
<!-- Social: Facebook / Open Graph -->
|
58
|
+
{% if page.id %}
|
59
|
+
<meta property="og:type" content="article">
|
60
|
+
<meta property="article:author" content="{{ site.author.name }}">
|
61
|
+
<meta property="article:section" content="{{ page.categories | join: ', ' }}">
|
62
|
+
<meta property="article:tag" content="{{ page.keywords }}">
|
63
|
+
<meta property="article:published_time" content="{{ page.date }}">
|
64
|
+
{% else%}
|
65
|
+
<meta property="og:type" content="website">
|
66
|
+
{% endif %}
|
67
|
+
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
68
|
+
<meta property="og:title" content="{{ page_title }}">
|
69
|
+
<meta property="og:image" content="{{ page_image }}">
|
70
|
+
<meta property="og:description" content="{{ page_description }}">
|
71
|
+
<meta property="og:site_name" content="{{ site.author.name }}">
|
72
|
+
<meta property="og:locale" content="en_US">
|
73
|
+
|
74
|
+
<!-- Social: Twitter -->
|
75
|
+
<meta name="twitter:card" content="summary_large_image">
|
76
|
+
<meta name="twitter:site" content="{{ site.twitter_username }}">
|
77
|
+
<meta name="twitter:title" content="{{ page_title }}">
|
78
|
+
<meta name="twitter:description" content="{{ page_description }}">
|
79
|
+
<meta name="twitter:image:src" content="{{ page_image }}">
|
80
|
+
|
81
|
+
<!-- Social: Google+ / Schema.org -->
|
82
|
+
<meta itemprop="name" content="{{ page_title }}">
|
83
|
+
<meta itemprop="description" content="{{ page_description }}">
|
84
|
+
<meta itemprop="image" content="{{ page_image }}">
|
85
|
+
|
86
|
+
<!-- Canonical link tag -->
|
87
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
88
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title_left }}{{ site.title_right }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
|
89
|
+
|
90
|
+
<!-- rel prev and next -->
|
91
|
+
{% if paginator.previous_page %}
|
92
|
+
<link rel="prev" href="{{ paginator.previous_page_path | prepend: site.baseurl | prepend: site.url }}">
|
93
|
+
{% endif %}
|
94
|
+
{% if paginator.next_page %}
|
95
|
+
<link rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | prepend: site.url }}">
|
96
|
+
{% endif %}
|
97
|
+
|
98
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl | prepend: site.url }}">
|
99
|
+
</head>
|
data/_includes/nav.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
<header class="container">
|
3
|
+
<div class="site-title">
|
4
|
+
<h1>
|
5
|
+
<a href="{{ '/' | prepend: site.baseurl | prepend: site.url }}">{{ site.title }}</a>
|
6
|
+
</h1>
|
7
|
+
{% if site.logo %}
|
8
|
+
<img class="site-logo" src="{{ site.logo | prepend: site.baseurl}}">
|
9
|
+
{% endif %}
|
10
|
+
</div>
|
11
|
+
<nav class="nav">
|
12
|
+
<ul class="navbar">
|
13
|
+
<li><a href="{{ '/about' | prepend: site.baseurl | prepend: site.url }}">About me</a></li>
|
14
|
+
<li><a href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" target="_blank">RSS</a></li>
|
15
|
+
</ul>
|
16
|
+
</nav>
|
17
|
+
</header>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{% if paginator.total_pages > 1 %}
|
2
|
+
<nav class="pagination" role="pagination">
|
3
|
+
<ul>
|
4
|
+
{% if paginator.previous_page %}
|
5
|
+
<li>
|
6
|
+
<a class="pagination-item prev"
|
7
|
+
href="{{ paginator.previous_page_path | relative_url }}">
|
8
|
+
« Newer
|
9
|
+
</a>
|
10
|
+
</li>
|
11
|
+
{% endif %}
|
12
|
+
<li><span class="page-number">Page {{paginator.page}} of {{paginator.total_pages}}</span></li>
|
13
|
+
{% if paginator.next_page %}
|
14
|
+
<li>
|
15
|
+
<a class="pagination-item next"
|
16
|
+
href="{{ paginator.next_page_path | relative_url }}">
|
17
|
+
Older »
|
18
|
+
</a>
|
19
|
+
</li>
|
20
|
+
{% endif %}
|
21
|
+
</ul>
|
22
|
+
</nav>
|
23
|
+
{% endif %}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{% if site.postshare_enabled %}
|
2
|
+
<aside class="share">
|
3
|
+
|
4
|
+
<p>If you liked this article and think others should read it, please share it on <a href="http://twitter.com/share?text={{page.title}}&url={{ page.url | prepend: site.baseurl | prepend: site.url }}&via={{ site.twitter_username }}"
|
5
|
+
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">Twitter</a> or <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}" onclick="window.open(this.href, 'facebook-share', 'width=550,height=235');return false;">Facebook</a>.</p>
|
6
|
+
|
7
|
+
</aside>
|
8
|
+
{% endif %}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v2.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% 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.ignore.whitespaces %}{% assign _random = site.time | date: "%s%N" %}{% if site.compress_html.ignore.whitespaces contains "SPACE" %}{% capture _ignore_space %} {% endcapture %}{% capture _freeze_space %}space{{ _random }}{% endcapture %}{% capture _join %}
|
10
|
+
{% endcapture %}{% else %}{% capture _ignore_space %}{% endcapture %}{% capture _freeze_space %}{% endcapture %}{% capture _join %} {% endcapture %}{% endif %}{% if site.compress_html.ignore.whitespaces contains "LINE FEED" %}{% capture _ignore_line_feed %}
|
11
|
+
{% endcapture %}{% capture _freeze_line_feed %}line_feed{{ _random }}{% endcapture %}{% else %}{% capture _ignore_line_feed %}{% endcapture %}{% capture _freeze_line_feed %}{% endcapture %}{% endif %}{% if site.compress_html.ignore.whitespaces contains "CHARACTER TABULATION" %}{% capture _ignore_character_tabulation %} {% endcapture %}{% capture _freeze_character_tabulation %}character_tabulation{{ _random }}{% endcapture %}{% else %}{% capture _ignore_character_tabulation %}{% endcapture %}{% capture _freeze_character_tabulation %}{% endcapture %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% if _pres.size != 0 %}{% if site.compress_html.ignore.whitespaces %}{% assign _pres_after = _pres.last | replace: _ignore_space, _freeze_space | replace: _ignore_line_feed, _freeze_line_feed | replace: _ignore_character_tabulation, _freeze_character_tabulation | split: " " | join: _join | replace: _freeze_character_tabulation, _ignore_character_tabulation | replace: _freeze_line_feed, _ignore_line_feed | replace: _freeze_space, _ignore_space %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% case _pres.size %}{% when 2 %}{% capture _content %}{{ _content }}<pre{{ _pres.first }}</pre>{{ _pres_after }}{% endcapture %}{% when 1 %}{% capture _content %}{{ _content }}{{ _pres_after }}{% endcapture %}{% endcase %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _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 %}{% assign _comment_befores = _content | split: _comments.first %}{% for _comment_before in _comment_befores %}{% assign _comment_content = _comment_before | split: _comments.last | first %}{% if _comment_content %}{% capture _comment %}{{ _comments.first }}{{ _comment_content }}{{ _comments.last }}{% endcapture %}{% assign _content = _content | remove: _comment %}{% endif %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% 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_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
<section class="post-list">
|
8
|
+
<div class="container">
|
9
|
+
{% for post in paginator.posts %}
|
10
|
+
<article class="post-item">
|
11
|
+
<header class="post-header">
|
12
|
+
<p class="post-meta"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%b %-d, %Y" }}</time>{% if post.author %} · <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ post.author }}</span></span>{% endif %}</p>
|
13
|
+
<h2 class="post-title" itemprop="name headline">
|
14
|
+
<a href="{{ site.baseurl }}{{ post.url }}">
|
15
|
+
{{ post.title }}
|
16
|
+
</a>
|
17
|
+
</h2>
|
18
|
+
</header>
|
19
|
+
<div class="post-content" itemprop="articleBody">
|
20
|
+
{% if post.excerpt %}
|
21
|
+
{{ post.excerpt }}
|
22
|
+
{% else %}
|
23
|
+
{{ post.content }}
|
24
|
+
{% endif %}
|
25
|
+
|
26
|
+
{% if post.excerpt %}
|
27
|
+
{% comment %}Excerpt may be equal to content. Check.{% endcomment %}
|
28
|
+
{% capture content_words %}
|
29
|
+
{{ post.content | number_of_words }}
|
30
|
+
{% endcapture %}
|
31
|
+
{% capture excerpt_words %}
|
32
|
+
{{ post.excerpt | number_of_words }}
|
33
|
+
{% endcapture %}
|
34
|
+
|
35
|
+
{% if content_words != excerpt_words %}
|
36
|
+
<a href="{{ post.url | relative_url }}">More …</a>
|
37
|
+
{% endif %}
|
38
|
+
{% endif %}
|
39
|
+
{% include post-share.html %}
|
40
|
+
</div>
|
41
|
+
</article>
|
42
|
+
{% endfor %}
|
43
|
+
|
44
|
+
{% include pagination.html %}
|
45
|
+
</div>
|
46
|
+
|
47
|
+
</section>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="post container" itemscope itemtype="http://schema.org/BlogPosting">
|
6
|
+
<header class="post-header">
|
7
|
+
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} · <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
|
8
|
+
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
|
9
|
+
</header>
|
10
|
+
<div class="post-content" itemprop="articleBody">
|
11
|
+
{{ content }}
|
12
|
+
{% include post-share.html %}
|
13
|
+
</div>
|
14
|
+
</article>
|
15
|
+
|
16
|
+
{% include comments.html %}
|
data/_sass/_layout.scss
ADDED
@@ -0,0 +1,364 @@
|
|
1
|
+
* {
|
2
|
+
&,
|
3
|
+
&:before,
|
4
|
+
&:after {
|
5
|
+
box-sizing: border-box;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
html,
|
10
|
+
body {
|
11
|
+
width: 100%;
|
12
|
+
height: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
.clearfix {
|
16
|
+
&:before {
|
17
|
+
content: " ";
|
18
|
+
display: table;
|
19
|
+
}
|
20
|
+
|
21
|
+
&:after {
|
22
|
+
content: " ";
|
23
|
+
display: table;
|
24
|
+
clear: both;
|
25
|
+
}
|
26
|
+
|
27
|
+
*zoom: 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
body {
|
31
|
+
// background-color: $base-background-color;
|
32
|
+
background: rgb(221,211,211);
|
33
|
+
background: linear-gradient(160deg, rgba(221,211,211,1) 0%, rgba(224,224,255,1) 45%, rgba(169,218,228,1) 100%);
|
34
|
+
background-attachment: fixed;
|
35
|
+
}
|
36
|
+
|
37
|
+
footer, article {
|
38
|
+
margin: 4em auto;
|
39
|
+
}
|
40
|
+
|
41
|
+
hr {
|
42
|
+
border-top: none;
|
43
|
+
border-bottom: 2px solid lighten($light-gray-color, 7%);
|
44
|
+
width: 100%;
|
45
|
+
margin: $small-spacing 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
article {
|
49
|
+
background-color: white;
|
50
|
+
box-shadow: 0px 0px 0px 20px white;
|
51
|
+
}
|
52
|
+
|
53
|
+
.container {
|
54
|
+
padding: $base-spacing;
|
55
|
+
margin-left: auto;
|
56
|
+
margin-right: auto;
|
57
|
+
max-width: 800px;
|
58
|
+
font-weight: normal;
|
59
|
+
}
|
60
|
+
|
61
|
+
.pull-left {
|
62
|
+
float: left;
|
63
|
+
}
|
64
|
+
|
65
|
+
.pull-right {
|
66
|
+
float: right;
|
67
|
+
}
|
68
|
+
|
69
|
+
.link {
|
70
|
+
color: $blue-color;
|
71
|
+
padding-bottom: .05em;
|
72
|
+
border-bottom: 2px solid transparent;
|
73
|
+
|
74
|
+
transition: border 300ms linear;
|
75
|
+
//@include transition(border 300ms linear);
|
76
|
+
|
77
|
+
&:hover,
|
78
|
+
&:focus,
|
79
|
+
&:active {
|
80
|
+
border-bottom: 2px solid $blue-color;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
header {
|
85
|
+
text-align: left;
|
86
|
+
padding: 0.6em;
|
87
|
+
}
|
88
|
+
|
89
|
+
header, footer {
|
90
|
+
text-transform: uppercase;
|
91
|
+
}
|
92
|
+
|
93
|
+
.site-title {
|
94
|
+
font-size: inherit;
|
95
|
+
padding: 0 2em;
|
96
|
+
background-color: $accent-color;
|
97
|
+
//background: $accent-color ;
|
98
|
+
min-height: 128px;
|
99
|
+
position: relative;
|
100
|
+
}
|
101
|
+
|
102
|
+
.site-title h1 {
|
103
|
+
display: inline-block;
|
104
|
+
font-size: 4.85em;
|
105
|
+
background-color: transparent;
|
106
|
+
line-height: 1em;
|
107
|
+
padding: 0.27em 0 0.25em;
|
108
|
+
padding-right: 70px;
|
109
|
+
margin: 0;
|
110
|
+
position: relative;
|
111
|
+
z-index: 1000;
|
112
|
+
}
|
113
|
+
|
114
|
+
.site-title h1:hover, nav a:hover {
|
115
|
+
transform: scale(1) rotate(0deg) translate(0px, 0px) skew(-15deg, 0deg);
|
116
|
+
font-style: normal;
|
117
|
+
}
|
118
|
+
|
119
|
+
.site-title .site-logo {
|
120
|
+
width: 120px;
|
121
|
+
top: 0px;
|
122
|
+
right: 0px;
|
123
|
+
position: absolute;
|
124
|
+
z-index: 500;
|
125
|
+
}
|
126
|
+
|
127
|
+
.site-title > span {
|
128
|
+
color: black;
|
129
|
+
display: inline-block;
|
130
|
+
padding-bottom: 1.5em;
|
131
|
+
text-transform: none;
|
132
|
+
}
|
133
|
+
.site-title > span:empty {
|
134
|
+
display: none;
|
135
|
+
}
|
136
|
+
nav ul {
|
137
|
+
margin-top: 0.6em;
|
138
|
+
}
|
139
|
+
nav li {
|
140
|
+
display: inline-block;
|
141
|
+
background-color: $accent-color;
|
142
|
+
margin-bottom: 0.6em;
|
143
|
+
}
|
144
|
+
nav a, nav input {
|
145
|
+
display: inline-block;
|
146
|
+
padding: 0.4em 0.6em;
|
147
|
+
background-color: transparent;
|
148
|
+
}
|
149
|
+
|
150
|
+
.intro {
|
151
|
+
|
152
|
+
position: relative;
|
153
|
+
|
154
|
+
.back {
|
155
|
+
position: absolute;
|
156
|
+
width: 100%;
|
157
|
+
height: 100%;
|
158
|
+
background-color: white;
|
159
|
+
opacity: 50%;
|
160
|
+
filter: blur(4px);
|
161
|
+
z-index: 10;
|
162
|
+
}
|
163
|
+
|
164
|
+
.author-name {
|
165
|
+
display: inline-block;
|
166
|
+
padding: 0 .2em;
|
167
|
+
background: lighten($light-gray-color, 15%)
|
168
|
+
}
|
169
|
+
|
170
|
+
a {
|
171
|
+
@extend .link;
|
172
|
+
}
|
173
|
+
|
174
|
+
.container {
|
175
|
+
padding-bottom: 10px;
|
176
|
+
position: relative;
|
177
|
+
z-index: 100;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
.logo {
|
182
|
+
float: left;
|
183
|
+
margin: 0 0 1em 0;
|
184
|
+
cursor: pointer;
|
185
|
+
letter-spacing: 0.8px;
|
186
|
+
font-size: 20px;
|
187
|
+
line-height: 28px;
|
188
|
+
font-weight: 300;
|
189
|
+
|
190
|
+
span {
|
191
|
+
font-weight: 700;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
.category-title {
|
196
|
+
margin: 1em 0 0.5em 0;
|
197
|
+
|
198
|
+
&:first-child {
|
199
|
+
margin-top: 0;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
.post-item {
|
204
|
+
margin-bottom: 0.2em;
|
205
|
+
display: block;
|
206
|
+
|
207
|
+
a {
|
208
|
+
color: $action-color;
|
209
|
+
}
|
210
|
+
|
211
|
+
.article-title {
|
212
|
+
display: inline-block;
|
213
|
+
width: 85%;
|
214
|
+
//border-bottom: 1px dashed lighten($light-gray-color, 10%);
|
215
|
+
}
|
216
|
+
|
217
|
+
.date-label {
|
218
|
+
//border: 1px solid lighten($light-gray-color, 10%);
|
219
|
+
padding: 0 0.2em;
|
220
|
+
margin-left: 1em;
|
221
|
+
margin-top: 2px;
|
222
|
+
@extend .pull-right;
|
223
|
+
}
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
.post-meta {
|
228
|
+
color: $medium-gray-color;
|
229
|
+
text-transform: uppercase;
|
230
|
+
display: inline-block;
|
231
|
+
letter-spacing: 1px;
|
232
|
+
// Solution adapted from https://github.com/thoughtbot/bourbon/blob/v4-stable/app/assets/stylesheets/functions/_px-to-rem.scss
|
233
|
+
font-size: 14px / 16px * 1em;
|
234
|
+
margin-bottom: 1px;
|
235
|
+
}
|
236
|
+
|
237
|
+
.post-title {
|
238
|
+
margin-top: 0;
|
239
|
+
margin-bottom: 1em;
|
240
|
+
color: $dark-gray-color;
|
241
|
+
}
|
242
|
+
|
243
|
+
.post-link,
|
244
|
+
.post a,
|
245
|
+
.page a {
|
246
|
+
@extend .link;
|
247
|
+
}
|
248
|
+
|
249
|
+
.post {
|
250
|
+
@extend .clearfix;
|
251
|
+
}
|
252
|
+
|
253
|
+
.pagination {
|
254
|
+
padding: 2em;
|
255
|
+
|
256
|
+
li, a, span {
|
257
|
+
display: inline-block;
|
258
|
+
vertical-align: middle;
|
259
|
+
}
|
260
|
+
|
261
|
+
a, span {
|
262
|
+
font-size: 12px / 16px * 1em;
|
263
|
+
padding: .5em;
|
264
|
+
}
|
265
|
+
|
266
|
+
.prev, .next {
|
267
|
+
@extend .link;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
.share {
|
272
|
+
border-top: 0.2em dashed lighten($light-gray-color, 13%);
|
273
|
+
padding-top: $base-spacing;
|
274
|
+
margin-top: $base-spacing * 2;
|
275
|
+
|
276
|
+
p {
|
277
|
+
margin: 0 5em;
|
278
|
+
font-size: 14px / 16px * 1em;
|
279
|
+
color: $medium-gray-color;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
.disqus {
|
284
|
+
background-color: lighten($light-gray-color, 16%);
|
285
|
+
padding: $base-spacing 0;
|
286
|
+
|
287
|
+
hr {
|
288
|
+
margin: $base-spacing 0;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
|
292
|
+
.site-footer {
|
293
|
+
@extend .clearfix;
|
294
|
+
|
295
|
+
background-color: $accent-color;
|
296
|
+
|
297
|
+
padding: $base-spacing 0;
|
298
|
+
|
299
|
+
a {
|
300
|
+
@extend .link;
|
301
|
+
}
|
302
|
+
|
303
|
+
small {
|
304
|
+
display: block;
|
305
|
+
font-size: 12px / 16px * 1em;
|
306
|
+
color: darken($medium-gray-color, 10%);
|
307
|
+
}
|
308
|
+
|
309
|
+
.block {
|
310
|
+
display: block;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
.video-container {
|
315
|
+
position:relative;
|
316
|
+
padding-bottom:56.25%;
|
317
|
+
padding-top:30px;
|
318
|
+
height:0;
|
319
|
+
overflow:hidden;
|
320
|
+
|
321
|
+
iframe,
|
322
|
+
object,
|
323
|
+
embed {
|
324
|
+
position:absolute;
|
325
|
+
top:0;
|
326
|
+
left:0;
|
327
|
+
width:100%;
|
328
|
+
height:100%;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
.divider {
|
333
|
+
border-top: 0.2em solid lighten($light-gray-color, 13%);
|
334
|
+
margin-bottom: $base-spacing * 2;
|
335
|
+
margin-top: $base-spacing * 2;
|
336
|
+
}
|
337
|
+
|
338
|
+
// This applies from 0px to 600px
|
339
|
+
@media (max-width: 600px) {
|
340
|
+
.date-label {
|
341
|
+
float: left !important;
|
342
|
+
border: 0 !important;
|
343
|
+
margin-left: -2px !important;
|
344
|
+
margin-top: 2px;
|
345
|
+
margin-right: 1em;
|
346
|
+
}
|
347
|
+
|
348
|
+
.post-item {
|
349
|
+
padding: 0 0.5em;
|
350
|
+
}
|
351
|
+
|
352
|
+
.article-title {
|
353
|
+
border-bottom: none !important;
|
354
|
+
}
|
355
|
+
|
356
|
+
.post-link {
|
357
|
+
&:hover,
|
358
|
+
&:focus,
|
359
|
+
&:active {
|
360
|
+
border-bottom: 2px solid transparent;
|
361
|
+
color: $blue-color;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
}
|