minimal-mistakes-jekyll 4.8.0 → 4.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -2
  3. data/LICENSE.txt +59 -59
  4. data/README.md +1 -3
  5. data/_data/navigation.yml +11 -11
  6. data/_data/ui-text.yml +977 -932
  7. data/_includes/analytics-providers/custom.html +2 -2
  8. data/_includes/analytics-providers/google-universal.html +9 -9
  9. data/_includes/analytics-providers/google.html +10 -10
  10. data/_includes/analytics.html +11 -11
  11. data/_includes/archive-single.html +37 -37
  12. data/_includes/author-profile-custom-links.html +6 -6
  13. data/_includes/author-profile.html +266 -249
  14. data/_includes/base_path +4 -4
  15. data/_includes/breadcrumbs.html +39 -39
  16. data/_includes/browser-upgrade.html +3 -3
  17. data/_includes/category-list.html +25 -25
  18. data/_includes/comment.html +22 -22
  19. data/_includes/comments-providers/custom.html +2 -2
  20. data/_includes/comments-providers/discourse.html +13 -13
  21. data/_includes/comments-providers/facebook.html +7 -7
  22. data/_includes/comments-providers/google-plus.html +1 -1
  23. data/_includes/comments-providers/staticman.html +41 -41
  24. data/_includes/comments-providers/staticman_v2.html +41 -41
  25. data/_includes/feature_row +49 -49
  26. data/_includes/figure +12 -12
  27. data/_includes/footer.html +25 -25
  28. data/_includes/footer/custom.html +2 -2
  29. data/_includes/gallery +46 -46
  30. data/_includes/group-by-array +46 -46
  31. data/_includes/head.html +42 -42
  32. data/_includes/head/custom.html +4 -4
  33. data/_includes/masthead.html +32 -32
  34. data/_includes/nav_list +46 -46
  35. data/_includes/page__hero_video.html +4 -4
  36. data/_includes/page__taxonomy.html +6 -6
  37. data/_includes/paginator.html +69 -69
  38. data/_includes/post_pagination.html +13 -13
  39. data/_includes/read-time.html +14 -14
  40. data/_includes/scripts.html +20 -20
  41. data/_includes/search_form.html +3 -3
  42. data/_includes/seo.html +162 -162
  43. data/_includes/sidebar.html +22 -22
  44. data/_includes/social-share.html +13 -13
  45. data/_includes/tag-list.html +25 -25
  46. data/_includes/toc +6 -6
  47. data/_includes/toc.html +74 -74
  48. data/_includes/video +11 -11
  49. data/_layouts/archive-taxonomy.html +14 -14
  50. data/_layouts/compress.html +10 -10
  51. data/_layouts/default.html +1 -1
  52. data/_layouts/home.html +11 -11
  53. data/_layouts/search.html +32 -32
  54. data/_layouts/single.html +92 -92
  55. data/_layouts/splash.html +21 -21
  56. data/_sass/minimal-mistakes.scss +1 -1
  57. data/_sass/minimal-mistakes/_animations.scss +20 -20
  58. data/_sass/minimal-mistakes/_archive.scss +310 -310
  59. data/_sass/minimal-mistakes/_base.scss +360 -360
  60. data/_sass/minimal-mistakes/_buttons.scss +97 -97
  61. data/_sass/minimal-mistakes/_footer.scss +82 -82
  62. data/_sass/minimal-mistakes/_masthead.scss +83 -83
  63. data/_sass/minimal-mistakes/_mixins.scss +91 -91
  64. data/_sass/minimal-mistakes/_navigation.scss +540 -540
  65. data/_sass/minimal-mistakes/_notices.scss +99 -99
  66. data/_sass/minimal-mistakes/_page.scss +426 -426
  67. data/_sass/minimal-mistakes/_search.scss +107 -107
  68. data/_sass/minimal-mistakes/_sidebar.scss +267 -262
  69. data/_sass/minimal-mistakes/_tables.scss +36 -36
  70. data/_sass/minimal-mistakes/_utilities.scss +516 -516
  71. data/_sass/minimal-mistakes/_variables.scss +137 -137
  72. data/_sass/minimal-mistakes/skins/_air.scss +22 -22
  73. data/_sass/minimal-mistakes/skins/_aqua.scss +29 -29
  74. data/_sass/minimal-mistakes/skins/_contrast.scss +33 -33
  75. data/_sass/minimal-mistakes/skins/_dark.scss +23 -23
  76. data/_sass/minimal-mistakes/skins/_default.scss +5 -5
  77. data/_sass/minimal-mistakes/skins/_dirt.scss +14 -14
  78. data/_sass/minimal-mistakes/skins/_mint.scss +22 -22
  79. data/_sass/minimal-mistakes/skins/_sunrise.scss +25 -25
  80. data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -114
  81. data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +94 -94
  82. data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -151
  83. data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +49 -49
  84. data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -15
  85. data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -215
  86. data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -82
  87. data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +70 -70
  88. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -33
  89. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -82
  90. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -31
  91. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -26
  92. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -36
  93. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
  94. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -22
  95. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
  96. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
  97. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -13
  98. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -18
  99. data/_sass/minimal-mistakes/vendor/font-awesome/_animated.scss +34 -34
  100. data/_sass/minimal-mistakes/vendor/font-awesome/_bordered-pulled.scss +25 -25
  101. data/_sass/minimal-mistakes/vendor/font-awesome/_core.scss +12 -12
  102. data/_sass/minimal-mistakes/vendor/font-awesome/_fixed-width.scss +6 -6
  103. data/_sass/minimal-mistakes/vendor/font-awesome/_font-awesome.scss +18 -18
  104. data/_sass/minimal-mistakes/vendor/font-awesome/_icons.scss +789 -789
  105. data/_sass/minimal-mistakes/vendor/font-awesome/_larger.scss +13 -13
  106. data/_sass/minimal-mistakes/vendor/font-awesome/_list.scss +19 -19
  107. data/_sass/minimal-mistakes/vendor/font-awesome/_mixins.scss +60 -60
  108. data/_sass/minimal-mistakes/vendor/font-awesome/_path.scss +15 -15
  109. data/_sass/minimal-mistakes/vendor/font-awesome/_rotated-flipped.scss +20 -20
  110. data/_sass/minimal-mistakes/vendor/font-awesome/_screen-reader.scss +5 -5
  111. data/_sass/minimal-mistakes/vendor/font-awesome/_stacked.scss +20 -20
  112. data/_sass/minimal-mistakes/vendor/font-awesome/_variables.scss +800 -800
  113. data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -649
  114. data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +45 -45
  115. data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -13
  116. data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -5
  117. data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -5
  118. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -7
  119. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -114
  120. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -67
  121. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -14
  122. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -18
  123. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -133
  124. data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -318
  125. data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -261
  126. data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -163
  127. data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -329
  128. data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -441
  129. data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -213
  130. data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -191
  131. data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -56
  132. data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -167
  133. data/assets/css/main.scss +7 -7
  134. data/assets/fonts/fontawesome-webfont.svg +2671 -2671
  135. data/assets/js/_main.js +85 -85
  136. data/assets/js/lunr-en.js +104 -93
  137. data/assets/js/lunr.min.js +2977 -7
  138. data/assets/js/main.min.js +5 -5
  139. data/assets/js/plugins/jquery.fitvids.js +81 -81
  140. data/assets/js/plugins/jquery.greedy-navigation.js +83 -83
  141. metadata +3 -3
@@ -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 %}
@@ -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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" 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,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 CHANGED
@@ -1,75 +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 %}
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
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>
@@ -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 %}
@@ -3,7 +3,7 @@
3
3
 
4
4
  <!doctype html>
5
5
  <!--
6
- Minimal Mistakes Jekyll Theme 4.8.0 by Michael Rose
6
+ Minimal Mistakes Jekyll Theme 4.8.1 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/search.html CHANGED
@@ -1,32 +1,32 @@
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
- {% endif %}
8
-
9
- {% if page.url != "/" and site.breadcrumbs %}
10
- {% unless paginator %}
11
- {% include breadcrumbs.html %}
12
- {% endunless %}
13
- {% endif %}
14
-
15
- <div id="main" role="main">
16
- {% include sidebar.html %}
17
-
18
- <div class="archive">
19
- {% unless page.header.overlay_color or page.header.overlay_image %}
20
- <h1 class="page__title">{{ page.title }}</h1>
21
- {% endunless %}
22
-
23
- {{ content }}
24
-
25
- <form>
26
- <input type="input" id="search" class="search-input" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
27
- </form>
28
-
29
- <div id="results"></div>
30
-
31
- </div>
32
- </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
+ {% endif %}
8
+
9
+ {% if page.url != "/" and site.breadcrumbs %}
10
+ {% unless paginator %}
11
+ {% include breadcrumbs.html %}
12
+ {% endunless %}
13
+ {% endif %}
14
+
15
+ <div id="main" role="main">
16
+ {% include sidebar.html %}
17
+
18
+ <div class="archive">
19
+ {% unless page.header.overlay_color or page.header.overlay_image %}
20
+ <h1 class="page__title">{{ page.title }}</h1>
21
+ {% endunless %}
22
+
23
+ {{ content }}
24
+
25
+ <form>
26
+ <input type="input" id="search" class="search-input" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
27
+ </form>
28
+
29
+ <div id="results"></div>
30
+
31
+ </div>
32
+ </div>