minimal-mistakes-jekyll 4.6.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/LICENSE.txt +59 -21
- data/README.md +217 -160
- data/_data/navigation.yml +11 -11
- data/_data/ui-text.yml +931 -888
- data/_includes/analytics-providers/custom.html +2 -2
- data/_includes/analytics-providers/google-universal.html +9 -9
- data/_includes/analytics-providers/google.html +10 -10
- data/_includes/analytics.html +11 -11
- data/_includes/archive-single.html +37 -37
- data/_includes/author-profile-custom-links.html +6 -6
- data/_includes/author-profile.html +249 -249
- data/_includes/base_path +4 -4
- data/_includes/breadcrumbs.html +39 -39
- data/_includes/browser-upgrade.html +2 -2
- data/_includes/category-list.html +25 -25
- data/_includes/comment.html +22 -22
- data/_includes/comments-providers/custom.html +2 -2
- data/_includes/comments-providers/discourse.html +13 -13
- data/_includes/comments-providers/facebook.html +7 -7
- data/_includes/comments-providers/google-plus.html +1 -1
- data/_includes/comments-providers/scripts.html +17 -15
- data/_includes/comments-providers/staticman.html +41 -41
- data/_includes/comments-providers/staticman_v2.html +42 -0
- data/_includes/comments.html +168 -96
- data/_includes/feature_row +49 -49
- data/_includes/figure +12 -12
- data/_includes/footer.html +25 -25
- data/_includes/footer/custom.html +2 -2
- data/_includes/gallery +46 -46
- data/_includes/group-by-array +46 -46
- data/_includes/head.html +42 -42
- data/_includes/head/custom.html +4 -4
- data/_includes/masthead.html +23 -20
- data/_includes/nav_list +46 -46
- data/_includes/page__hero_video.html +4 -4
- data/_includes/page__taxonomy.html +6 -6
- data/_includes/paginator.html +69 -69
- data/_includes/post_pagination.html +13 -13
- data/_includes/read-time.html +14 -14
- data/_includes/scripts.html +15 -15
- data/_includes/seo.html +162 -147
- data/_includes/sidebar.html +22 -22
- data/_includes/social-share.html +13 -13
- data/_includes/tag-list.html +25 -25
- data/_includes/toc +6 -6
- data/_includes/toc.html +75 -0
- data/_includes/video +11 -11
- data/_layouts/archive-taxonomy.html +14 -14
- data/_layouts/archive.html +25 -25
- data/_layouts/compress.html +10 -10
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +11 -11
- data/_layouts/single.html +92 -84
- data/_layouts/splash.html +21 -21
- data/_sass/minimal-mistakes.scss +1 -1
- data/_sass/minimal-mistakes/_animations.scss +20 -20
- data/_sass/minimal-mistakes/_archive.scss +317 -317
- data/_sass/minimal-mistakes/_base.scss +315 -315
- data/_sass/minimal-mistakes/_buttons.scss +97 -97
- data/_sass/minimal-mistakes/_footer.scss +82 -82
- data/_sass/minimal-mistakes/_forms.scss +399 -389
- data/_sass/minimal-mistakes/_masthead.scss +82 -82
- data/_sass/minimal-mistakes/_mixins.scss +91 -91
- data/_sass/minimal-mistakes/_navigation.scss +552 -552
- data/_sass/minimal-mistakes/_notices.scss +99 -99
- data/_sass/minimal-mistakes/_page.scss +430 -430
- data/_sass/minimal-mistakes/_reset.scss +186 -186
- data/_sass/minimal-mistakes/_sidebar.scss +262 -262
- data/_sass/minimal-mistakes/_syntax.scss +286 -146
- data/_sass/minimal-mistakes/_tables.scss +36 -36
- data/_sass/minimal-mistakes/_utilities.scss +519 -519
- data/_sass/minimal-mistakes/_variables.scss +137 -137
- data/_sass/minimal-mistakes/skins/_air.scss +22 -22
- data/_sass/minimal-mistakes/skins/_aqua.scss +30 -0
- data/_sass/minimal-mistakes/skins/_contrast.scss +33 -33
- data/_sass/minimal-mistakes/skins/_dark.scss +23 -23
- data/_sass/minimal-mistakes/skins/_default.scss +5 -5
- data/_sass/minimal-mistakes/skins/_dirt.scss +14 -14
- data/_sass/minimal-mistakes/skins/_mint.scss +22 -22
- data/_sass/minimal-mistakes/skins/_neon.scss +35 -0
- data/_sass/minimal-mistakes/skins/_plum.scss +42 -0
- data/_sass/minimal-mistakes/skins/_sunrise.scss +25 -25
- data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -114
- data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +94 -94
- data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -151
- data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +49 -49
- data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -15
- data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -215
- data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -82
- data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +70 -70
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -33
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -82
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -31
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -26
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -36
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -22
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -13
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -18
- data/_sass/minimal-mistakes/vendor/font-awesome/_animated.scss +34 -34
- data/_sass/minimal-mistakes/vendor/font-awesome/_bordered-pulled.scss +25 -25
- data/_sass/minimal-mistakes/vendor/font-awesome/_core.scss +12 -12
- data/_sass/minimal-mistakes/vendor/font-awesome/_fixed-width.scss +6 -6
- data/_sass/minimal-mistakes/vendor/font-awesome/_font-awesome.scss +18 -18
- data/_sass/minimal-mistakes/vendor/font-awesome/_icons.scss +789 -789
- data/_sass/minimal-mistakes/vendor/font-awesome/_larger.scss +13 -13
- data/_sass/minimal-mistakes/vendor/font-awesome/_list.scss +19 -19
- data/_sass/minimal-mistakes/vendor/font-awesome/_mixins.scss +60 -60
- data/_sass/minimal-mistakes/vendor/font-awesome/_path.scss +15 -15
- data/_sass/minimal-mistakes/vendor/font-awesome/_rotated-flipped.scss +20 -20
- data/_sass/minimal-mistakes/vendor/font-awesome/_screen-reader.scss +5 -5
- data/_sass/minimal-mistakes/vendor/font-awesome/_stacked.scss +20 -20
- data/_sass/minimal-mistakes/vendor/font-awesome/_variables.scss +800 -800
- data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -649
- data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +45 -45
- data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -13
- data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -5
- data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -5
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -7
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -114
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -67
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -14
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -18
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -133
- data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -318
- data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -261
- data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -163
- data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -329
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -441
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -213
- data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -191
- data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -56
- data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -167
- data/assets/css/main.scss +7 -7
- data/assets/fonts/fontawesome-webfont.svg +2671 -2671
- data/assets/js/_main.js +72 -72
- data/assets/js/main.min.js +1 -1
- data/assets/js/plugins/jquery.fitvids.js +81 -81
- data/assets/js/plugins/jquery.greedy-navigation.js +77 -77
- metadata +8 -3
data/_includes/sidebar.html
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
{% if page.author_profile or layout.author_profile or page.sidebar %}
|
2
|
-
<div class="sidebar sticky">
|
3
|
-
{% if page.author_profile or layout.author_profile %}{% include author-profile.html %}{% endif %}
|
4
|
-
{% if page.sidebar %}
|
5
|
-
{% for s in page.sidebar %}
|
6
|
-
{% if s.image %}
|
7
|
-
<img src=
|
8
|
-
{% if s.image contains "://" %}
|
9
|
-
"{{ s.image }}"
|
10
|
-
{% else %}
|
11
|
-
"{{ s.image | absolute_url }}"
|
12
|
-
{% endif %}
|
13
|
-
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
|
14
|
-
{% endif %}
|
15
|
-
{% if s.title %}<h3>{{ s.title }}</h3>{% endif %}
|
16
|
-
{% if s.text %}{{ s.text | markdownify }}{% endif %}
|
17
|
-
{% endfor %}
|
18
|
-
{% if page.sidebar.nav %}
|
19
|
-
{% include nav_list nav=page.sidebar.nav %}
|
20
|
-
{% endif %}
|
21
|
-
{% endif %}
|
22
|
-
</div>
|
1
|
+
{% if page.author_profile or layout.author_profile or page.sidebar %}
|
2
|
+
<div class="sidebar sticky">
|
3
|
+
{% if page.author_profile or layout.author_profile %}{% include author-profile.html %}{% endif %}
|
4
|
+
{% if page.sidebar %}
|
5
|
+
{% for s in page.sidebar %}
|
6
|
+
{% if s.image %}
|
7
|
+
<img src=
|
8
|
+
{% if s.image contains "://" %}
|
9
|
+
"{{ s.image }}"
|
10
|
+
{% else %}
|
11
|
+
"{{ s.image | absolute_url }}"
|
12
|
+
{% endif %}
|
13
|
+
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
|
14
|
+
{% endif %}
|
15
|
+
{% if s.title %}<h3>{{ s.title }}</h3>{% endif %}
|
16
|
+
{% if s.text %}{{ s.text | markdownify }}{% endif %}
|
17
|
+
{% endfor %}
|
18
|
+
{% if page.sidebar.nav %}
|
19
|
+
{% include nav_list nav=page.sidebar.nav %}
|
20
|
+
{% endif %}
|
21
|
+
{% endif %}
|
22
|
+
</div>
|
23
23
|
{% endif %}
|
data/_includes/social-share.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
<section class="page__share">
|
2
|
-
{% if site.data.ui-text[site.locale].share_on_label %}
|
3
|
-
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}</h4>
|
4
|
-
{% endif %}
|
5
|
-
|
6
|
-
<a href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" class="btn btn--twitter" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span> Twitter</span></a>
|
7
|
-
|
8
|
-
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook"><i class="fa fa-fw fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
|
9
|
-
|
10
|
-
<a href="https://plus.google.com/share?url={{ page.url | absolute_url | url_encode }}" class="btn btn--google-plus" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Google Plus"><i class="fa fa-fw fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
|
11
|
-
|
12
|
-
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}" class="btn btn--linkedin" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} LinkedIn"><i class="fa fa-fw fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
|
13
|
-
</section>
|
1
|
+
<section class="page__share">
|
2
|
+
{% if site.data.ui-text[site.locale].share_on_label %}
|
3
|
+
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}</h4>
|
4
|
+
{% endif %}
|
5
|
+
|
6
|
+
<a href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" class="btn btn--twitter" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span> Twitter</span></a>
|
7
|
+
|
8
|
+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook"><i class="fa fa-fw fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
|
9
|
+
|
10
|
+
<a href="https://plus.google.com/share?url={{ page.url | absolute_url | url_encode }}" class="btn btn--google-plus" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Google Plus"><i class="fa fa-fw fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
|
11
|
+
|
12
|
+
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}" class="btn btn--linkedin" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} LinkedIn"><i class="fa fa-fw fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
|
13
|
+
</section>
|
data/_includes/tag-list.html
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
{% case site.tag_archive.type %}
|
2
|
-
{% when "liquid" %}
|
3
|
-
{% assign path_type = "#" %}
|
4
|
-
{% when "jekyll-archives" %}
|
5
|
-
{% assign path_type = nil %}
|
6
|
-
{% endcase %}
|
7
|
-
|
8
|
-
{% if site.tag_archive.path %}
|
9
|
-
{% comment %}
|
10
|
-
<!-- Sort alphabetically regardless of case e.g. a B c d E -->
|
11
|
-
<!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
|
12
|
-
{% endcomment %}
|
13
|
-
{% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
14
|
-
{% assign tag_hashes = page_tags | split: ',' | sort %}
|
15
|
-
|
16
|
-
<p class="page__taxonomy">
|
17
|
-
<strong><i class="fa fa-fw fa-tags" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }} </strong>
|
18
|
-
<span itemprop="keywords">
|
19
|
-
{% for hash in tag_hashes %}
|
20
|
-
{% assign keyValue = hash | split: '#' %}
|
21
|
-
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
22
|
-
<a href="{{ tag_word | slugify | prepend: path_type | prepend: site.tag_archive.path | absolute_url }}" class="page__taxonomy-item" rel="tag">{{ tag_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
23
|
-
{% endfor %}
|
24
|
-
</span>
|
25
|
-
</p>
|
1
|
+
{% case site.tag_archive.type %}
|
2
|
+
{% when "liquid" %}
|
3
|
+
{% assign path_type = "#" %}
|
4
|
+
{% when "jekyll-archives" %}
|
5
|
+
{% assign path_type = nil %}
|
6
|
+
{% endcase %}
|
7
|
+
|
8
|
+
{% if site.tag_archive.path %}
|
9
|
+
{% comment %}
|
10
|
+
<!-- Sort alphabetically regardless of case e.g. a B c d E -->
|
11
|
+
<!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
|
12
|
+
{% endcomment %}
|
13
|
+
{% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
14
|
+
{% assign tag_hashes = page_tags | split: ',' | sort %}
|
15
|
+
|
16
|
+
<p class="page__taxonomy">
|
17
|
+
<strong><i class="fa fa-fw fa-tags" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }} </strong>
|
18
|
+
<span itemprop="keywords">
|
19
|
+
{% for hash in tag_hashes %}
|
20
|
+
{% assign keyValue = hash | split: '#' %}
|
21
|
+
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
22
|
+
<a href="{{ tag_word | slugify | prepend: path_type | prepend: site.tag_archive.path | absolute_url }}" class="page__taxonomy-item" rel="tag">{{ tag_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
23
|
+
{% endfor %}
|
24
|
+
</span>
|
25
|
+
</p>
|
26
26
|
{% endif %}
|
data/_includes/toc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
<aside class="sidebar__right">
|
2
|
-
<nav class="toc" markdown="1">
|
3
|
-
<header><h4 class="nav__title"><i class="fa fa-{{ include.icon | default: 'file-text' }}"></i> {{ include.title | default: site.data.ui-text[site.locale].toc_label }}</h4></header>
|
4
|
-
* Auto generated table of contents
|
5
|
-
{:toc .toc__menu}
|
6
|
-
</nav>
|
1
|
+
<aside class="sidebar__right">
|
2
|
+
<nav class="toc" markdown="1">
|
3
|
+
<header><h4 class="nav__title"><i class="fa fa-{{ include.icon | default: 'file-text' }}"></i> {{ include.title | default: site.data.ui-text[site.locale].toc_label }}</h4></header>
|
4
|
+
* Auto generated table of contents
|
5
|
+
{:toc .toc__menu}
|
6
|
+
</nav>
|
7
7
|
</aside>
|
data/_includes/toc.html
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
{% capture tocWorkspace %}
|
2
|
+
{%- comment -%}
|
3
|
+
Version 1.0.2
|
4
|
+
|
5
|
+
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
|
6
|
+
|
7
|
+
Usage:
|
8
|
+
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
|
9
|
+
|
10
|
+
Parameters:
|
11
|
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
12
|
+
|
13
|
+
Optional Parameters:
|
14
|
+
* sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
|
15
|
+
* class (string) : '' - a CSS class assigned to the TOC
|
16
|
+
* id (string) : '' - an ID to assigned to the TOC
|
17
|
+
* h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
|
18
|
+
* h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
|
19
|
+
|
20
|
+
Output:
|
21
|
+
An unordered list representing the table of contents of a markdown block. This snippet will only generate the table of contents and will NOT output the markdown given to it
|
22
|
+
{%- endcomment -%}
|
23
|
+
|
24
|
+
{% capture my_toc %}{% endcapture %}
|
25
|
+
{% assign minHeader = include.h_min | default: 1 %}
|
26
|
+
{% assign maxHeader = include.h_max | default: 6 %}
|
27
|
+
{% assign nodes = include.html | split: '<h' %}
|
28
|
+
{% assign firstHeader = true %}
|
29
|
+
|
30
|
+
{% for node in nodes %}
|
31
|
+
{% if node == "" %}
|
32
|
+
{% continue %}
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
{% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
|
36
|
+
|
37
|
+
{% if headerLevel < minHeader or headerLevel > maxHeader %}
|
38
|
+
{% continue %}
|
39
|
+
{% endif %}
|
40
|
+
|
41
|
+
{% if firstHeader %}
|
42
|
+
{% assign firstHeader = false %}
|
43
|
+
{% assign minHeader = headerLevel %}
|
44
|
+
{% endif %}
|
45
|
+
|
46
|
+
{% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
|
47
|
+
{% assign _workspace = node | split: '</h' %}
|
48
|
+
|
49
|
+
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
50
|
+
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
51
|
+
{% assign html_id = _idWorkspace[0] %}
|
52
|
+
|
53
|
+
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
54
|
+
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
55
|
+
|
56
|
+
{% assign space = '' %}
|
57
|
+
{% for i in (1..indentAmount) %}
|
58
|
+
{% assign space = space | prepend: ' ' %}
|
59
|
+
{% endfor %}
|
60
|
+
|
61
|
+
{% capture my_toc %}{{ my_toc }}
|
62
|
+
{{ space }}- [{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}](#{{ html_id }}){% endcapture %}
|
63
|
+
|
64
|
+
{% endfor %}
|
65
|
+
|
66
|
+
{% if include.class %}
|
67
|
+
{% capture my_toc %}{:.{{ include.class }}}
|
68
|
+
{{ my_toc | lstrip }}{% endcapture %}
|
69
|
+
{% endif %}
|
70
|
+
|
71
|
+
{% if include.id %}
|
72
|
+
{% capture my_toc %}{: #{{ include.id }}}
|
73
|
+
{{ my_toc | lstrip }}{% endcapture %}
|
74
|
+
{% endif %}
|
75
|
+
{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
|
data/_includes/video
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
{% capture video_id %}{{ include.id }}{% endcapture %}
|
2
|
-
{% capture video_provider %}{{ include.provider }}{% endcapture %}
|
3
|
-
|
4
|
-
<!-- Courtesy of embedresponsively.com //-->
|
5
|
-
<div class="responsive-video-container">
|
6
|
-
{% if video_provider == "vimeo" %}
|
7
|
-
<iframe src="https://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
8
|
-
{% elsif video_provider == "youtube" %}
|
9
|
-
<iframe src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
10
|
-
{% endif %}
|
11
|
-
</div>
|
1
|
+
{% capture video_id %}{{ include.id }}{% endcapture %}
|
2
|
+
{% capture video_provider %}{{ include.provider }}{% endcapture %}
|
3
|
+
|
4
|
+
<!-- Courtesy of embedresponsively.com //-->
|
5
|
+
<div class="responsive-video-container">
|
6
|
+
{% if video_provider == "vimeo" %}
|
7
|
+
<iframe src="https://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
8
|
+
{% elsif video_provider == "youtube" %}
|
9
|
+
<iframe src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
10
|
+
{% endif %}
|
11
|
+
</div>
|
@@ -1,15 +1,15 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
author_profile: false
|
4
|
-
---
|
5
|
-
|
6
|
-
<div id="main" role="main">
|
7
|
-
{% include sidebar.html %}
|
8
|
-
|
9
|
-
<div class="archive">
|
10
|
-
<h1 class="page__title">{{ page.title }}</h1>
|
11
|
-
{% for post in page.posts %}
|
12
|
-
{% include archive-single.html %}
|
13
|
-
{% endfor %}
|
14
|
-
</div>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
author_profile: false
|
4
|
+
---
|
5
|
+
|
6
|
+
<div id="main" role="main">
|
7
|
+
{% include sidebar.html %}
|
8
|
+
|
9
|
+
<div class="archive">
|
10
|
+
<h1 class="page__title">{{ page.title }}</h1>
|
11
|
+
{% for post in page.posts %}
|
12
|
+
{% include archive-single.html %}
|
13
|
+
{% endfor %}
|
14
|
+
</div>
|
15
15
|
</div>
|
data/_layouts/archive.html
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
6
|
-
{% include page__hero.html %}
|
7
|
-
{% elsif page.header.video.id and page.header.video.provider %}
|
8
|
-
{% include page__hero_video.html %}
|
9
|
-
{% endif %}
|
10
|
-
|
11
|
-
{% if page.url != "/" and site.breadcrumbs %}
|
12
|
-
{% unless paginator %}
|
13
|
-
{% include breadcrumbs.html %}
|
14
|
-
{% endunless %}
|
15
|
-
{% endif %}
|
16
|
-
|
17
|
-
<div id="main" role="main">
|
18
|
-
{% include sidebar.html %}
|
19
|
-
|
20
|
-
<div class="archive">
|
21
|
-
{% unless page.header.overlay_color or page.header.overlay_image %}
|
22
|
-
<h1 class="page__title">{{ page.title }}</h1>
|
23
|
-
{% endunless %}
|
24
|
-
{{ content }}
|
25
|
-
</div>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
6
|
+
{% include page__hero.html %}
|
7
|
+
{% elsif page.header.video.id and page.header.video.provider %}
|
8
|
+
{% include page__hero_video.html %}
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if page.url != "/" and site.breadcrumbs %}
|
12
|
+
{% unless paginator %}
|
13
|
+
{% include breadcrumbs.html %}
|
14
|
+
{% endunless %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<div id="main" role="main">
|
18
|
+
{% include sidebar.html %}
|
19
|
+
|
20
|
+
<div class="archive">
|
21
|
+
{% unless page.header.overlay_color or page.header.overlay_image %}
|
22
|
+
<h1 class="page__title">{{ page.title }}</h1>
|
23
|
+
{% endunless %}
|
24
|
+
{{ content }}
|
25
|
+
</div>
|
26
26
|
</div>
|
data/_layouts/compress.html
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
---
|
2
|
-
# Jekyll layout that compresses HTML
|
3
|
-
# v3.0.2
|
4
|
-
# http://jch.penibelst.de/
|
5
|
-
# © 2014–2015 Anatol Broder
|
6
|
-
# MIT License
|
7
|
-
---
|
8
|
-
|
9
|
-
{% capture _LINE_FEED %}
|
10
|
-
{% endcapture %}{% 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.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% 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_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.0.2
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% 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.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% 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_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
<!doctype html>
|
5
5
|
<!--
|
6
|
-
Minimal Mistakes Jekyll Theme 4.
|
6
|
+
Minimal Mistakes Jekyll Theme 4.7.0 by Michael Rose
|
7
7
|
Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
|
8
8
|
Free for personal and commercial use under the MIT license
|
9
9
|
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
|
data/_layouts/home.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
---
|
2
|
-
layout: archive
|
3
|
-
---
|
4
|
-
|
5
|
-
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>
|
6
|
-
|
7
|
-
{% for post in paginator.posts %}
|
8
|
-
{% include archive-single.html %}
|
9
|
-
{% endfor %}
|
10
|
-
|
11
|
-
{% include paginator.html %}
|
1
|
+
---
|
2
|
+
layout: archive
|
3
|
+
---
|
4
|
+
|
5
|
+
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>
|
6
|
+
|
7
|
+
{% for post in paginator.posts %}
|
8
|
+
{% include archive-single.html %}
|
9
|
+
{% endfor %}
|
10
|
+
|
11
|
+
{% include paginator.html %}
|
data/_layouts/single.html
CHANGED
@@ -1,84 +1,92 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
6
|
-
{% include page__hero.html %}
|
7
|
-
{% elsif page.header.video.id and page.header.video.provider %}
|
8
|
-
{% include page__hero_video.html %}
|
9
|
-
{% endif %}
|
10
|
-
|
11
|
-
{% if page.url != "/" and site.breadcrumbs %}
|
12
|
-
{% unless paginator %}
|
13
|
-
{% include breadcrumbs.html %}
|
14
|
-
{% endunless %}
|
15
|
-
{% endif %}
|
16
|
-
|
17
|
-
<div id="main" role="main">
|
18
|
-
{% include sidebar.html %}
|
19
|
-
|
20
|
-
<article class="page" itemscope itemtype="http://schema.org/CreativeWork">
|
21
|
-
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
22
|
-
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
23
|
-
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
|
24
|
-
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
|
25
|
-
|
26
|
-
<div class="page__inner-wrap">
|
27
|
-
{% unless page.header.overlay_color or page.header.overlay_image %}
|
28
|
-
<header>
|
29
|
-
{% if page.title %}<h1 class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
|
30
|
-
{% if page.read_time %}
|
31
|
-
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
|
32
|
-
{% endif %}
|
33
|
-
</header>
|
34
|
-
{% endunless %}
|
35
|
-
|
36
|
-
<section class="page__content" itemprop="text">
|
37
|
-
{
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
{% endif %}
|
45
|
-
{
|
46
|
-
{% if page.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
{%
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
{%
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
</
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
6
|
+
{% include page__hero.html %}
|
7
|
+
{% elsif page.header.video.id and page.header.video.provider %}
|
8
|
+
{% include page__hero_video.html %}
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if page.url != "/" and site.breadcrumbs %}
|
12
|
+
{% unless paginator %}
|
13
|
+
{% include breadcrumbs.html %}
|
14
|
+
{% endunless %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<div id="main" role="main">
|
18
|
+
{% include sidebar.html %}
|
19
|
+
|
20
|
+
<article class="page" itemscope itemtype="http://schema.org/CreativeWork">
|
21
|
+
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
22
|
+
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
23
|
+
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
|
24
|
+
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
|
25
|
+
|
26
|
+
<div class="page__inner-wrap">
|
27
|
+
{% unless page.header.overlay_color or page.header.overlay_image %}
|
28
|
+
<header>
|
29
|
+
{% if page.title %}<h1 class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
|
30
|
+
{% if page.read_time %}
|
31
|
+
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
|
32
|
+
{% endif %}
|
33
|
+
</header>
|
34
|
+
{% endunless %}
|
35
|
+
|
36
|
+
<section class="page__content" itemprop="text">
|
37
|
+
{% if page.toc %}
|
38
|
+
<aside class="sidebar__right">
|
39
|
+
<nav class="toc">
|
40
|
+
<header><h4 class="nav__title"><i class="fa fa-{{ page.toc_icon | default: 'file-text' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label }}</h4></header>
|
41
|
+
{% include toc.html sanitize=true html=content h_min=2 h_max=3 class="toc__menu" %}
|
42
|
+
</nav>
|
43
|
+
</aside>
|
44
|
+
{% endif %}
|
45
|
+
{{ content }}
|
46
|
+
{% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
|
47
|
+
</section>
|
48
|
+
|
49
|
+
<footer class="page__meta">
|
50
|
+
{% if site.data.ui-text[site.locale].meta_label %}
|
51
|
+
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
|
52
|
+
{% endif %}
|
53
|
+
{% include page__taxonomy.html %}
|
54
|
+
{% if page.last_modified_at %}
|
55
|
+
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: "%B %d, %Y" }}</time></p>
|
56
|
+
{% elsif page.date %}
|
57
|
+
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
|
58
|
+
{% endif %}
|
59
|
+
</footer>
|
60
|
+
|
61
|
+
{% if page.share %}{% include social-share.html %}{% endif %}
|
62
|
+
|
63
|
+
{% include post_pagination.html %}
|
64
|
+
</div>
|
65
|
+
|
66
|
+
{% if site.comments.provider and page.comments %}
|
67
|
+
{% include comments.html %}
|
68
|
+
{% endif %}
|
69
|
+
</article>
|
70
|
+
|
71
|
+
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
|
72
|
+
{% if page.id and page.related and site.related_posts.size > 0 %}
|
73
|
+
<div class="page__related">
|
74
|
+
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
|
75
|
+
<div class="grid__wrapper">
|
76
|
+
{% for post in site.related_posts limit:4 %}
|
77
|
+
{% include archive-single.html type="grid" %}
|
78
|
+
{% endfor %}
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
{% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
|
82
|
+
{% elsif page.id and page.related %}
|
83
|
+
<div class="page__related">
|
84
|
+
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
|
85
|
+
<div class="grid__wrapper">
|
86
|
+
{% for post in site.posts limit:4 %}
|
87
|
+
{% include archive-single.html type="grid" %}
|
88
|
+
{% endfor %}
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
{% endif %}
|
92
|
+
</div>
|