sparrow-jekyll-theme 0.1.1 → 0.1.2
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 +4 -4
- data/LICENSE.txt +20 -20
- data/README.md +170 -178
- data/_includes/analytics.html +13 -13
- data/_includes/breadcrumbs.html +31 -31
- data/_includes/comments.html +26 -26
- data/_includes/figure +12 -12
- data/_includes/paginator.html +8 -69
- data/_includes/post-entry.html +15 -15
- data/_includes/seo.html +77 -77
- data/_includes/social-share.html +42 -42
- data/_includes/topnav.html +46 -46
- data/_layouts/default.html +46 -46
- data/_layouts/home.html +11 -11
- data/_layouts/page.html +16 -16
- data/_layouts/post.html +38 -38
- data/_sass/_base.scss +359 -359
- data/_sass/_buttons.scss +61 -61
- data/_sass/_footer.scss +53 -53
- data/_sass/_navigation.scss +216 -216
- data/_sass/_page.scss +60 -60
- data/_sass/_post.scss +85 -85
- data/_sass/_reset.scss +186 -186
- data/_sass/_rrssb.scss +276 -276
- data/_sass/_slimmenu.scss +177 -177
- data/_sass/_syntax.scss +125 -125
- data/_sass/_utilities.scss +67 -67
- data/_sass/_variables.scss +73 -73
- data/_sass/vendor/breakpoint/_breakpoint.scss +114 -114
- data/_sass/vendor/breakpoint/_context.scss +94 -94
- data/_sass/vendor/breakpoint/_helpers.scss +151 -151
- data/_sass/vendor/breakpoint/_legacy-settings.scss +49 -49
- data/_sass/vendor/breakpoint/_no-query.scss +15 -15
- data/_sass/vendor/breakpoint/_parsers.scss +215 -215
- data/_sass/vendor/breakpoint/_respond-to.scss +82 -82
- data/_sass/vendor/breakpoint/_settings.scss +70 -70
- data/_sass/vendor/breakpoint/parsers/_double.scss +33 -33
- data/_sass/vendor/breakpoint/parsers/_query.scss +82 -82
- data/_sass/vendor/breakpoint/parsers/_resolution.scss +31 -31
- data/_sass/vendor/breakpoint/parsers/_single.scss +26 -26
- data/_sass/vendor/breakpoint/parsers/_triple.scss +36 -36
- data/_sass/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
- data/_sass/vendor/breakpoint/parsers/double/_default.scss +22 -22
- data/_sass/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
- data/_sass/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
- data/_sass/vendor/breakpoint/parsers/single/_default.scss +13 -13
- data/_sass/vendor/breakpoint/parsers/triple/_default.scss +18 -18
- data/_sass/vendor/font-awesome/_animated.scss +34 -34
- data/_sass/vendor/font-awesome/_bordered-pulled.scss +25 -25
- data/_sass/vendor/font-awesome/_core.scss +12 -12
- data/_sass/vendor/font-awesome/_fixed-width.scss +6 -6
- data/_sass/vendor/font-awesome/_font-awesome.scss +18 -18
- data/_sass/vendor/font-awesome/_icons.scss +789 -789
- data/_sass/vendor/font-awesome/_larger.scss +13 -13
- data/_sass/vendor/font-awesome/_list.scss +19 -19
- data/_sass/vendor/font-awesome/_mixins.scss +60 -60
- data/_sass/vendor/font-awesome/_path.scss +15 -15
- data/_sass/vendor/font-awesome/_rotated-flipped.scss +20 -20
- data/_sass/vendor/font-awesome/_screen-reader.scss +5 -5
- data/_sass/vendor/font-awesome/_stacked.scss +20 -20
- data/_sass/vendor/font-awesome/_variables.scss +800 -800
- data/_sass/vendor/susy/_su.scss +4 -4
- data/_sass/vendor/susy/_susy.scss +4 -4
- data/_sass/vendor/susy/_susyone.scss +4 -4
- data/_sass/vendor/susy/susy/_su.scss +7 -7
- data/_sass/vendor/susy/susy/language/_susy.scss +24 -24
- data/_sass/vendor/susy/susy/language/_susyone.scss +13 -13
- data/_sass/vendor/susy/susy/language/susy/_background.scss +385 -385
- data/_sass/vendor/susy/susy/language/susy/_bleed.scss +200 -200
- data/_sass/vendor/susy/susy/language/susy/_box-sizing.scss +47 -47
- data/_sass/vendor/susy/susy/language/susy/_breakpoint-plugin.scss +185 -185
- data/_sass/vendor/susy/susy/language/susy/_container.scss +81 -81
- data/_sass/vendor/susy/susy/language/susy/_context.scss +36 -36
- data/_sass/vendor/susy/susy/language/susy/_gallery.scss +94 -94
- data/_sass/vendor/susy/susy/language/susy/_grids.scss +64 -64
- data/_sass/vendor/susy/susy/language/susy/_gutters.scss +154 -154
- data/_sass/vendor/susy/susy/language/susy/_isolate.scss +77 -77
- data/_sass/vendor/susy/susy/language/susy/_margins.scss +94 -94
- data/_sass/vendor/susy/susy/language/susy/_padding.scss +74 -74
- data/_sass/vendor/susy/susy/language/susy/_rows.scss +138 -138
- data/_sass/vendor/susy/susy/language/susy/_settings.scss +216 -216
- data/_sass/vendor/susy/susy/language/susy/_span.scss +163 -163
- data/_sass/vendor/susy/susy/language/susy/_validation.scss +16 -16
- data/_sass/vendor/susy/susy/language/susyone/_background.scss +18 -18
- data/_sass/vendor/susy/susy/language/susyone/_functions.scss +377 -377
- data/_sass/vendor/susy/susy/language/susyone/_grid.scss +312 -312
- data/_sass/vendor/susy/susy/language/susyone/_isolation.scss +51 -51
- data/_sass/vendor/susy/susy/language/susyone/_margin.scss +93 -93
- data/_sass/vendor/susy/susy/language/susyone/_media.scss +105 -105
- data/_sass/vendor/susy/susy/language/susyone/_padding.scss +92 -92
- data/_sass/vendor/susy/susy/language/susyone/_settings.scss +60 -60
- data/_sass/vendor/susy/susy/output/_float.scss +9 -9
- data/_sass/vendor/susy/susy/output/_shared.scss +15 -15
- data/_sass/vendor/susy/susy/output/_support.scss +9 -9
- data/_sass/vendor/susy/susy/output/float/_container.scss +16 -16
- data/_sass/vendor/susy/susy/output/float/_end.scss +40 -40
- data/_sass/vendor/susy/susy/output/float/_isolate.scss +22 -22
- data/_sass/vendor/susy/susy/output/float/_span.scss +35 -35
- data/_sass/vendor/susy/susy/output/shared/_background.scss +26 -26
- data/_sass/vendor/susy/susy/output/shared/_container.scss +21 -21
- data/_sass/vendor/susy/susy/output/shared/_direction.scss +42 -42
- data/_sass/vendor/susy/susy/output/shared/_inspect.scss +25 -25
- data/_sass/vendor/susy/susy/output/shared/_margins.scss +23 -23
- data/_sass/vendor/susy/susy/output/shared/_output.scss +14 -14
- data/_sass/vendor/susy/susy/output/shared/_padding.scss +23 -23
- data/_sass/vendor/susy/susy/output/support/_background.scss +58 -58
- data/_sass/vendor/susy/susy/output/support/_box-sizing.scss +19 -19
- data/_sass/vendor/susy/susy/output/support/_clearfix.scss +18 -18
- data/_sass/vendor/susy/susy/output/support/_prefix.scss +19 -19
- data/_sass/vendor/susy/susy/output/support/_rem.scss +22 -22
- data/_sass/vendor/susy/susy/output/support/_support.scss +85 -85
- data/_sass/vendor/susy/susy/su/_grid.scss +103 -103
- data/_sass/vendor/susy/susy/su/_settings.scss +73 -73
- data/_sass/vendor/susy/susy/su/_utilities.scss +111 -111
- data/_sass/vendor/susy/susy/su/_validation.scss +57 -57
- data/assets/css/main.scss +43 -43
- data/assets/fonts/fontawesome-webfont.svg +2671 -2671
- data/assets/js/main.js +35 -35
- data/assets/js/plugins/jquery-1.12.4.min.js +4 -4
- data/assets/js/slimmenu.js +154 -154
- metadata +6 -6
data/_includes/comments.html
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
<div class="page__comments">
|
2
|
-
|
3
|
-
{% if site.disqus.shortname %}
|
4
|
-
<div id="disqus_thread"></div>
|
5
|
-
<script type="text/javascript">
|
6
|
-
var disqus_shortname = '{{ site.disqus.shortname }}';
|
7
|
-
var disqus_url = '{{ site.url }}/{{ page.url }}';
|
8
|
-
|
9
|
-
/* * * DON'T EDIT BELOW THIS LINE * * */
|
10
|
-
(function() {
|
11
|
-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
12
|
-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
13
|
-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
14
|
-
})();
|
15
|
-
|
16
|
-
/* * * DON'T EDIT BELOW THIS LINE * * */
|
17
|
-
(function () {
|
18
|
-
var s = document.createElement('script'); s.async = true;
|
19
|
-
s.type = 'text/javascript';
|
20
|
-
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
21
|
-
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
22
|
-
}());
|
23
|
-
</script>
|
24
|
-
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
25
|
-
{% endif %}
|
26
|
-
</div>
|
1
|
+
<div class="page__comments">
|
2
|
+
|
3
|
+
{% if site.disqus.shortname %}
|
4
|
+
<div id="disqus_thread"></div>
|
5
|
+
<script type="text/javascript">
|
6
|
+
var disqus_shortname = '{{ site.disqus.shortname }}';
|
7
|
+
var disqus_url = '{{ site.url }}/{{ page.url }}';
|
8
|
+
|
9
|
+
/* * * DON'T EDIT BELOW THIS LINE * * */
|
10
|
+
(function() {
|
11
|
+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
12
|
+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
13
|
+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
14
|
+
})();
|
15
|
+
|
16
|
+
/* * * DON'T EDIT BELOW THIS LINE * * */
|
17
|
+
(function () {
|
18
|
+
var s = document.createElement('script'); s.async = true;
|
19
|
+
s.type = 'text/javascript';
|
20
|
+
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
21
|
+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
22
|
+
}());
|
23
|
+
</script>
|
24
|
+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
25
|
+
{% endif %}
|
26
|
+
</div>
|
data/_includes/figure
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<figure class="{{ include.class }}">
|
2
|
-
<img src=
|
3
|
-
{% if include.image_path contains "://" %}
|
4
|
-
"{{ include.image_path }}"
|
5
|
-
{% else %}
|
6
|
-
"{{ include.image_path | absolute_url }}"
|
7
|
-
{% endif %}
|
8
|
-
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
|
9
|
-
{% if include.caption %}
|
10
|
-
<figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
|
11
|
-
{% endif %}
|
12
|
-
</figure>
|
1
|
+
<figure class="{{ include.class }}">
|
2
|
+
<img src=
|
3
|
+
{% if include.image_path contains "://" %}
|
4
|
+
"{{ include.image_path }}"
|
5
|
+
{% else %}
|
6
|
+
"{{ include.image_path | absolute_url }}"
|
7
|
+
{% endif %}
|
8
|
+
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
|
9
|
+
{% if include.caption %}
|
10
|
+
<figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
|
11
|
+
{% endif %}
|
12
|
+
</figure>
|
data/_includes/paginator.html
CHANGED
@@ -1,69 +1,8 @@
|
|
1
|
-
{% if paginator.
|
2
|
-
<nav class="pagination">
|
3
|
-
{%
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
{% else %}
|
10
|
-
<li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | absolute_url }}">Previous</a></li>
|
11
|
-
{% endif %}
|
12
|
-
{% else %}
|
13
|
-
<li><a href="#" class="disabled"><span aria-hidden="true">Previous</span></a></li>
|
14
|
-
{% endif %}
|
15
|
-
|
16
|
-
{% comment %} First page {% endcomment %}
|
17
|
-
{% if paginator.page == 1 %}
|
18
|
-
<li><a href="#" class="disabled current">1</a></li>
|
19
|
-
{% else %}
|
20
|
-
<li><a href="{{ first_page_path }}">1</a></li>
|
21
|
-
{% endif %}
|
22
|
-
|
23
|
-
{% assign page_start = 2 %}
|
24
|
-
{% if paginator.page > 4 %}
|
25
|
-
{% assign page_start = paginator.page | minus: 2 %}
|
26
|
-
{% comment %} Ellipsis for truncated links {% endcomment %}
|
27
|
-
<li><a href="#" class="disabled">…</a></li>
|
28
|
-
{% endif %}
|
29
|
-
|
30
|
-
{% assign page_end = paginator.total_pages | minus: 1 %}
|
31
|
-
{% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
|
32
|
-
{% if pages_to_end > 4 %}
|
33
|
-
{% assign page_end = paginator.page | plus: 2 %}
|
34
|
-
{% endif %}
|
35
|
-
|
36
|
-
{% for index in (page_start..page_end) %}
|
37
|
-
{% if index == paginator.page %}
|
38
|
-
<li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | absolute_url }}" class="disabled current">{{ index }}</a></li>
|
39
|
-
{% else %}
|
40
|
-
{% comment %} Distance from current page and this link {% endcomment %}
|
41
|
-
{% assign dist = paginator.page | minus: index %}
|
42
|
-
{% if dist < 0 %}
|
43
|
-
{% comment %} Distance must be a positive value {% endcomment %}
|
44
|
-
{% assign dist = 0 | minus: dist %}
|
45
|
-
{% endif %}
|
46
|
-
<li><a href="{{ site.paginate_path | replace: ':num', index | absolute_url }}">{{ index }}</a></li>
|
47
|
-
{% endif %}
|
48
|
-
{% endfor %}
|
49
|
-
|
50
|
-
{% comment %} Ellipsis for truncated links {% endcomment %}
|
51
|
-
{% if pages_to_end > 3 %}
|
52
|
-
<li><a href="#" class="disabled">…</a></li>
|
53
|
-
{% endif %}
|
54
|
-
|
55
|
-
{% if paginator.page == paginator.total_pages %}
|
56
|
-
<li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
|
57
|
-
{% else %}
|
58
|
-
<li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | absolute_url }}">{{ paginator.total_pages }}</a></li>
|
59
|
-
{% endif %}
|
60
|
-
|
61
|
-
{% comment %} Link next page {% endcomment %}
|
62
|
-
{% if paginator.next_page %}
|
63
|
-
<li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | absolute_url }}">Next</a></li></a></li>
|
64
|
-
{% else %}
|
65
|
-
<li><a href="#" class="disabled"><span aria-hidden="true">Next</span></a></li>
|
66
|
-
{% endif %}
|
67
|
-
</ul>
|
68
|
-
</nav>
|
69
|
-
{% endif %}
|
1
|
+
{% if paginator.page_trail %}
|
2
|
+
<nav class="pagination">
|
3
|
+
{% for trail in paginator.page_trail %}
|
4
|
+
<li><a {% if page.url == trail.path %}class="disabled current"{% endif %} href="{{ trail.path | absolute_url }}" title="{{trail.title}}">{{ trail.num }}</a></li>
|
5
|
+
{% endfor %}
|
6
|
+
</nav>
|
7
|
+
{% endif %}
|
8
|
+
|
data/_includes/post-entry.html
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
<div class="list__item">
|
2
|
-
<article class="page__item" itemscope itemtype="http://schema.org/CreativeWork">
|
3
|
-
|
4
|
-
<h3 class="page__item-title" itemprop="headline">
|
5
|
-
{% if post.link %}
|
6
|
-
<a href="{{ post.link }}">{{ post.title }}</a> <a href="{{ post.url | absolute_url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
|
7
|
-
{% else %}
|
8
|
-
<a href="{{ post.url | absolute_url }}" rel="permalink">{{ post.title }}</a>
|
9
|
-
{% endif %}
|
10
|
-
</h3>
|
11
|
-
|
12
|
-
{% if post.date %}
|
13
|
-
<p class="page__meta"> <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }} </time></p>
|
14
|
-
{% endif %}
|
15
|
-
</article>
|
1
|
+
<div class="list__item">
|
2
|
+
<article class="page__item" itemscope itemtype="http://schema.org/CreativeWork">
|
3
|
+
|
4
|
+
<h3 class="page__item-title" itemprop="headline">
|
5
|
+
{% if post.link %}
|
6
|
+
<a href="{{ post.link }}">{{ post.title }}</a> <a href="{{ post.url | absolute_url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
|
7
|
+
{% else %}
|
8
|
+
<a href="{{ post.url | absolute_url }}" rel="permalink">{{ post.title }}</a>
|
9
|
+
{% endif %}
|
10
|
+
</h3>
|
11
|
+
|
12
|
+
{% if post.date %}
|
13
|
+
<p class="page__meta"> <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }} </time></p>
|
14
|
+
{% endif %}
|
15
|
+
</article>
|
16
16
|
</div>
|
data/_includes/seo.html
CHANGED
@@ -1,77 +1,77 @@
|
|
1
|
-
<!-- begin SEO -->
|
2
|
-
{% if site.url %}
|
3
|
-
{% assign seo_url = site.url | append: site.baseurl %}
|
4
|
-
{% endif %}
|
5
|
-
{% assign seo_url = seo_url | default: site.github.url %}
|
6
|
-
|
7
|
-
{% if page.title %}
|
8
|
-
{% assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title %}
|
9
|
-
{% endif %}
|
10
|
-
|
11
|
-
{% if seo_title %}
|
12
|
-
{% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
|
13
|
-
{% endif %}
|
14
|
-
|
15
|
-
{% if site.url %}
|
16
|
-
{% assign canonical_url = page.url | replace: "index.html", "" | prepend: site.url %}
|
17
|
-
{% endif %}
|
18
|
-
|
19
|
-
<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
|
20
|
-
|
21
|
-
{% assign seo_description = page.description | default: page.excerpt | default: site.description %}
|
22
|
-
{% if seo_description %}
|
23
|
-
{% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
|
24
|
-
{% endif %}
|
25
|
-
|
26
|
-
<meta name="description" content="{{ seo_description }}">
|
27
|
-
|
28
|
-
{% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
|
29
|
-
|
30
|
-
<meta name="author" content="{{ seo_author }}">
|
31
|
-
|
32
|
-
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
|
33
|
-
<meta property="og:site_name" content="{{ site.title }}">
|
34
|
-
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
35
|
-
|
36
|
-
{% if seo_url %}
|
37
|
-
<link rel="canonical" href="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
|
38
|
-
<meta property="og:url" content="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
|
39
|
-
{% endif %}
|
40
|
-
|
41
|
-
{% if page.excerpt %}
|
42
|
-
<meta property="og:description" content="{{ seo_description }}">
|
43
|
-
{% endif %}
|
44
|
-
|
45
|
-
{% if site.twitter.username %}
|
46
|
-
<meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
|
47
|
-
<meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
48
|
-
<meta name="twitter:description" content="{{ seo_description }}">
|
49
|
-
<meta name="twitter:url" content="{{ canonical_url }}">
|
50
|
-
|
51
|
-
<meta name="twitter:card" content="summary">
|
52
|
-
{% if page.og_image %}
|
53
|
-
<meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
|
54
|
-
{% elsif site.og_image %}
|
55
|
-
<meta name="twitter:image" content="{{ site.og_image | absolute_url }}">
|
56
|
-
{% endif %}
|
57
|
-
<meta name="twitter:creator" content="@{{ site.twitter.username }}">
|
58
|
-
{% endif %}
|
59
|
-
|
60
|
-
{% if page.og_image %}
|
61
|
-
<meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
|
62
|
-
{% elsif site.og_image %}
|
63
|
-
<meta property="og:image" content="{% if site.og_image contains "://" %}{{ site.og_image }}{% else %}{{ site.og_image | absolute_url }}{% endif %}">
|
64
|
-
{% endif %}
|
65
|
-
|
66
|
-
{% if page.date %}
|
67
|
-
<meta property="og:type" content="article">
|
68
|
-
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
69
|
-
{% endif %}
|
70
|
-
|
71
|
-
{% if paginator.previous_page %}
|
72
|
-
<link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
|
73
|
-
{% endif %}
|
74
|
-
{% if paginator.next_page %}
|
75
|
-
<link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
|
76
|
-
{% endif %}
|
77
|
-
|
1
|
+
<!-- begin SEO -->
|
2
|
+
{% if site.url %}
|
3
|
+
{% assign seo_url = site.url | append: site.baseurl %}
|
4
|
+
{% endif %}
|
5
|
+
{% assign seo_url = seo_url | default: site.github.url %}
|
6
|
+
|
7
|
+
{% if page.title %}
|
8
|
+
{% assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title %}
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if seo_title %}
|
12
|
+
{% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% if site.url %}
|
16
|
+
{% assign canonical_url = page.url | replace: "index.html", "" | prepend: site.url %}
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
|
20
|
+
|
21
|
+
{% assign seo_description = page.description | default: page.excerpt | default: site.description %}
|
22
|
+
{% if seo_description %}
|
23
|
+
{% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
|
24
|
+
{% endif %}
|
25
|
+
|
26
|
+
<meta name="description" content="{{ seo_description }}">
|
27
|
+
|
28
|
+
{% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
|
29
|
+
|
30
|
+
<meta name="author" content="{{ seo_author }}">
|
31
|
+
|
32
|
+
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
|
33
|
+
<meta property="og:site_name" content="{{ site.title }}">
|
34
|
+
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
35
|
+
|
36
|
+
{% if seo_url %}
|
37
|
+
<link rel="canonical" href="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
|
38
|
+
<meta property="og:url" content="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
|
39
|
+
{% endif %}
|
40
|
+
|
41
|
+
{% if page.excerpt %}
|
42
|
+
<meta property="og:description" content="{{ seo_description }}">
|
43
|
+
{% endif %}
|
44
|
+
|
45
|
+
{% if site.twitter.username %}
|
46
|
+
<meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
|
47
|
+
<meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
48
|
+
<meta name="twitter:description" content="{{ seo_description }}">
|
49
|
+
<meta name="twitter:url" content="{{ canonical_url }}">
|
50
|
+
|
51
|
+
<meta name="twitter:card" content="summary">
|
52
|
+
{% if page.og_image %}
|
53
|
+
<meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
|
54
|
+
{% elsif site.og_image %}
|
55
|
+
<meta name="twitter:image" content="{{ site.og_image | absolute_url }}">
|
56
|
+
{% endif %}
|
57
|
+
<meta name="twitter:creator" content="@{{ site.twitter.username }}">
|
58
|
+
{% endif %}
|
59
|
+
|
60
|
+
{% if page.og_image %}
|
61
|
+
<meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
|
62
|
+
{% elsif site.og_image %}
|
63
|
+
<meta property="og:image" content="{% if site.og_image contains "://" %}{{ site.og_image }}{% else %}{{ site.og_image | absolute_url }}{% endif %}">
|
64
|
+
{% endif %}
|
65
|
+
|
66
|
+
{% if page.date %}
|
67
|
+
<meta property="og:type" content="article">
|
68
|
+
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
69
|
+
{% endif %}
|
70
|
+
|
71
|
+
{% if paginator.previous_page %}
|
72
|
+
<link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
|
73
|
+
{% endif %}
|
74
|
+
{% if paginator.next_page %}
|
75
|
+
<link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
|
76
|
+
{% endif %}
|
77
|
+
|
data/_includes/social-share.html
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
<section class="page__share">
|
2
|
-
<ul class="rrssb-buttons clearfix">
|
3
|
-
<li class="rrssb-facebook">
|
4
|
-
<!-- Replace with your URL. For best results, make sure you page has the proper FB Open Graph tags in header:
|
5
|
-
https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content/ -->
|
6
|
-
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url }}" class="popup">
|
7
|
-
<span class="rrssb-icon">
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29"><path d="M26.4 0H2.6C1.714 0 0 1.715 0 2.6v23.8c0 .884 1.715 2.6 2.6 2.6h12.393V17.988h-3.996v-3.98h3.997v-3.062c0-3.746 2.835-5.97 6.177-5.97 1.6 0 2.444.173 2.845.226v3.792H21.18c-1.817 0-2.156.9-2.156 2.168v2.847h5.045l-.66 3.978h-4.386V29H26.4c.884 0 2.6-1.716 2.6-2.6V2.6c0-.885-1.716-2.6-2.6-2.6z"/></svg>
|
9
|
-
</span>
|
10
|
-
<span class="rrssb-text">facebook</span>
|
11
|
-
</a>
|
12
|
-
</li>
|
13
|
-
|
14
|
-
<li class="rrssb-twitter">
|
15
|
-
<!-- Replace href with your Meta and URL information -->
|
16
|
-
<a href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username }}&{% endif %}text={{ page.title }} {{ page.url | absolute_url }}"
|
17
|
-
class="popup">
|
18
|
-
<span class="rrssb-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M24.253 8.756C24.69 17.08 18.297 24.182 9.97 24.62a15.093 15.093 0 0 1-8.86-2.32c2.702.18 5.375-.648 7.507-2.32a5.417 5.417 0 0 1-4.49-3.64c.802.13 1.62.077 2.4-.154a5.416 5.416 0 0 1-4.412-5.11 5.43 5.43 0 0 0 2.168.387A5.416 5.416 0 0 1 2.89 4.498a15.09 15.09 0 0 0 10.913 5.573 5.185 5.185 0 0 1 3.434-6.48 5.18 5.18 0 0 1 5.546 1.682 9.076 9.076 0 0 0 3.33-1.317 5.038 5.038 0 0 1-2.4 2.942 9.068 9.068 0 0 0 3.02-.85 5.05 5.05 0 0 1-2.48 2.71z"/></svg></span>
|
19
|
-
<span class="rrssb-text">twitter</span>
|
20
|
-
</a>
|
21
|
-
</li>
|
22
|
-
|
23
|
-
<li class="rrssb-linkedin">
|
24
|
-
<!-- Replace href with your meta and URL information -->
|
25
|
-
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url }}" class="popup">
|
26
|
-
<span class="rrssb-icon">
|
27
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M25.424 15.887v8.447h-4.896v-7.882c0-1.98-.71-3.33-2.48-3.33-1.354 0-2.158.91-2.514 1.802-.13.315-.162.753-.162 1.194v8.216h-4.9s.067-13.35 0-14.73h4.9v2.087c-.01.017-.023.033-.033.05h.032v-.05c.65-1.002 1.812-2.435 4.414-2.435 3.222 0 5.638 2.106 5.638 6.632zM5.348 2.5c-1.676 0-2.772 1.093-2.772 2.54 0 1.42 1.066 2.538 2.717 2.546h.032c1.71 0 2.77-1.132 2.77-2.546C8.056 3.593 7.02 2.5 5.344 2.5h.005zm-2.48 21.834h4.896V9.604H2.867v14.73z"/></svg>
|
28
|
-
</span>
|
29
|
-
<span class="rrssb-text">linkedin</span>
|
30
|
-
</a>
|
31
|
-
</li>
|
32
|
-
|
33
|
-
<li class="rrssb-googleplus">
|
34
|
-
<!-- Replace href with your meta and URL information. -->
|
35
|
-
<a href="https://plus.google.com/share?url={{ page.url | absolute_url }}" class="popup">
|
36
|
-
<span class="rrssb-icon">
|
37
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 8.29h-1.95v2.6h-2.6v1.82h2.6v2.6H21v-2.6h2.6v-1.885H21V8.29zM7.614 10.306v2.925h3.9c-.26 1.69-1.755 2.925-3.9 2.925-2.34 0-4.29-2.016-4.29-4.354s1.885-4.353 4.29-4.353c1.104 0 2.014.326 2.794 1.105l2.08-2.08c-1.3-1.17-2.924-1.883-4.874-1.883C3.65 4.586.4 7.835.4 11.8s3.25 7.212 7.214 7.212c4.224 0 6.953-2.988 6.953-7.082 0-.52-.065-1.104-.13-1.624H7.614z"/></svg> </span>
|
38
|
-
<span class="rrssb-text">google+</span>
|
39
|
-
</a>
|
40
|
-
</li>
|
41
|
-
</ul>
|
42
|
-
</section>
|
1
|
+
<section class="page__share">
|
2
|
+
<ul class="rrssb-buttons clearfix">
|
3
|
+
<li class="rrssb-facebook">
|
4
|
+
<!-- Replace with your URL. For best results, make sure you page has the proper FB Open Graph tags in header:
|
5
|
+
https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content/ -->
|
6
|
+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url }}" class="popup">
|
7
|
+
<span class="rrssb-icon">
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29"><path d="M26.4 0H2.6C1.714 0 0 1.715 0 2.6v23.8c0 .884 1.715 2.6 2.6 2.6h12.393V17.988h-3.996v-3.98h3.997v-3.062c0-3.746 2.835-5.97 6.177-5.97 1.6 0 2.444.173 2.845.226v3.792H21.18c-1.817 0-2.156.9-2.156 2.168v2.847h5.045l-.66 3.978h-4.386V29H26.4c.884 0 2.6-1.716 2.6-2.6V2.6c0-.885-1.716-2.6-2.6-2.6z"/></svg>
|
9
|
+
</span>
|
10
|
+
<span class="rrssb-text">facebook</span>
|
11
|
+
</a>
|
12
|
+
</li>
|
13
|
+
|
14
|
+
<li class="rrssb-twitter">
|
15
|
+
<!-- Replace href with your Meta and URL information -->
|
16
|
+
<a href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username }}&{% endif %}text={{ page.title }} {{ page.url | absolute_url }}"
|
17
|
+
class="popup">
|
18
|
+
<span class="rrssb-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M24.253 8.756C24.69 17.08 18.297 24.182 9.97 24.62a15.093 15.093 0 0 1-8.86-2.32c2.702.18 5.375-.648 7.507-2.32a5.417 5.417 0 0 1-4.49-3.64c.802.13 1.62.077 2.4-.154a5.416 5.416 0 0 1-4.412-5.11 5.43 5.43 0 0 0 2.168.387A5.416 5.416 0 0 1 2.89 4.498a15.09 15.09 0 0 0 10.913 5.573 5.185 5.185 0 0 1 3.434-6.48 5.18 5.18 0 0 1 5.546 1.682 9.076 9.076 0 0 0 3.33-1.317 5.038 5.038 0 0 1-2.4 2.942 9.068 9.068 0 0 0 3.02-.85 5.05 5.05 0 0 1-2.48 2.71z"/></svg></span>
|
19
|
+
<span class="rrssb-text">twitter</span>
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
|
23
|
+
<li class="rrssb-linkedin">
|
24
|
+
<!-- Replace href with your meta and URL information -->
|
25
|
+
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url }}" class="popup">
|
26
|
+
<span class="rrssb-icon">
|
27
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M25.424 15.887v8.447h-4.896v-7.882c0-1.98-.71-3.33-2.48-3.33-1.354 0-2.158.91-2.514 1.802-.13.315-.162.753-.162 1.194v8.216h-4.9s.067-13.35 0-14.73h4.9v2.087c-.01.017-.023.033-.033.05h.032v-.05c.65-1.002 1.812-2.435 4.414-2.435 3.222 0 5.638 2.106 5.638 6.632zM5.348 2.5c-1.676 0-2.772 1.093-2.772 2.54 0 1.42 1.066 2.538 2.717 2.546h.032c1.71 0 2.77-1.132 2.77-2.546C8.056 3.593 7.02 2.5 5.344 2.5h.005zm-2.48 21.834h4.896V9.604H2.867v14.73z"/></svg>
|
28
|
+
</span>
|
29
|
+
<span class="rrssb-text">linkedin</span>
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
|
33
|
+
<li class="rrssb-googleplus">
|
34
|
+
<!-- Replace href with your meta and URL information. -->
|
35
|
+
<a href="https://plus.google.com/share?url={{ page.url | absolute_url }}" class="popup">
|
36
|
+
<span class="rrssb-icon">
|
37
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 8.29h-1.95v2.6h-2.6v1.82h2.6v2.6H21v-2.6h2.6v-1.885H21V8.29zM7.614 10.306v2.925h3.9c-.26 1.69-1.755 2.925-3.9 2.925-2.34 0-4.29-2.016-4.29-4.354s1.885-4.353 4.29-4.353c1.104 0 2.014.326 2.794 1.105l2.08-2.08c-1.3-1.17-2.924-1.883-4.874-1.883C3.65 4.586.4 7.835.4 11.8s3.25 7.212 7.214 7.212c4.224 0 6.953-2.988 6.953-7.082 0-.52-.065-1.104-.13-1.624H7.614z"/></svg> </span>
|
38
|
+
<span class="rrssb-text">google+</span>
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
</ul>
|
42
|
+
</section>
|
data/_includes/topnav.html
CHANGED
@@ -1,47 +1,47 @@
|
|
1
|
-
<div class="topnav">
|
2
|
-
{% if site.avatar %}
|
3
|
-
<div class="topnav__avatar">
|
4
|
-
{% if site.avatar contains "://" %}
|
5
|
-
<img src="{{ site.avatar }}" alt="{{ site.name }}">
|
6
|
-
{% else %}
|
7
|
-
<img src="{{ site.avatar | absolute_url }}" alt="{{ site.name }}">
|
8
|
-
{% endif %}
|
9
|
-
</div>
|
10
|
-
{% endif %}
|
11
|
-
|
12
|
-
<div class="topnav__content">
|
13
|
-
<h3 class="site__name">{{ site.title }}</h3>
|
14
|
-
{% if site.description %}
|
15
|
-
<p class="site__bio">
|
16
|
-
{{ site.description }}
|
17
|
-
</p>
|
18
|
-
{% endif %}
|
19
|
-
|
20
|
-
<nav>
|
21
|
-
<ul id="navigation" class="links slimmenu">
|
22
|
-
{% for link in site.data.navigation.main %}
|
23
|
-
{% if link.url contains 'http' %}
|
24
|
-
{% assign domain = '' %}
|
25
|
-
{% else %}
|
26
|
-
{% assign domain = site.url | append: site.baseurl %}
|
27
|
-
{% endif %}
|
28
|
-
<li class="menu-item">
|
29
|
-
<a href="{{ domain }}{{ link.url }}">{{ link.title }}</a>
|
30
|
-
{% if link.children %}
|
31
|
-
<ul>
|
32
|
-
{% for child in link.children %}
|
33
|
-
{% if child.url contains 'http' %}
|
34
|
-
{% assign domain = '' %}
|
35
|
-
{% else %}
|
36
|
-
{% assign domain = site.url | append: site.baseurl %}
|
37
|
-
{% endif %}
|
38
|
-
<li><a href="{{domain }}{{child.url}}">{{ child.title }}</a></li>
|
39
|
-
{% endfor %}
|
40
|
-
</ul>
|
41
|
-
{% endif %}
|
42
|
-
</li>
|
43
|
-
{% endfor %}
|
44
|
-
</ul>
|
45
|
-
</nav>
|
46
|
-
</div>
|
1
|
+
<div class="topnav">
|
2
|
+
{% if site.avatar %}
|
3
|
+
<div class="topnav__avatar">
|
4
|
+
{% if site.avatar contains "://" %}
|
5
|
+
<img src="{{ site.avatar }}" alt="{{ site.name }}">
|
6
|
+
{% else %}
|
7
|
+
<img src="{{ site.avatar | absolute_url }}" alt="{{ site.name }}">
|
8
|
+
{% endif %}
|
9
|
+
</div>
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
<div class="topnav__content">
|
13
|
+
<h3 class="site__name">{{ site.title }}</h3>
|
14
|
+
{% if site.description %}
|
15
|
+
<p class="site__bio">
|
16
|
+
{{ site.description }}
|
17
|
+
</p>
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
<nav>
|
21
|
+
<ul id="navigation" class="links slimmenu">
|
22
|
+
{% for link in site.data.navigation.main %}
|
23
|
+
{% if link.url contains 'http' %}
|
24
|
+
{% assign domain = '' %}
|
25
|
+
{% else %}
|
26
|
+
{% assign domain = site.url | append: site.baseurl %}
|
27
|
+
{% endif %}
|
28
|
+
<li class="menu-item">
|
29
|
+
<a href="{{ domain }}{{ link.url }}">{{ link.title }}</a>
|
30
|
+
{% if link.children %}
|
31
|
+
<ul>
|
32
|
+
{% for child in link.children %}
|
33
|
+
{% if child.url contains 'http' %}
|
34
|
+
{% assign domain = '' %}
|
35
|
+
{% else %}
|
36
|
+
{% assign domain = site.url | append: site.baseurl %}
|
37
|
+
{% endif %}
|
38
|
+
<li><a href="{{domain }}{{child.url}}">{{ child.title }}</a></li>
|
39
|
+
{% endfor %}
|
40
|
+
</ul>
|
41
|
+
{% endif %}
|
42
|
+
</li>
|
43
|
+
{% endfor %}
|
44
|
+
</ul>
|
45
|
+
</nav>
|
46
|
+
</div>
|
47
47
|
</div>
|