minimal-mistakes-jekyll 4.10.1 → 4.11.1
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/CHANGELOG.md +12 -0
- data/_includes/archive-single.html +3 -3
- data/_includes/author-profile.html +2 -2
- data/_includes/breadcrumbs.html +1 -1
- data/_includes/category-list.html +1 -1
- data/_includes/documents-collection.html +19 -0
- data/_includes/feature_row +2 -2
- data/_includes/figure +1 -1
- data/_includes/footer.html +1 -1
- data/_includes/gallery +3 -3
- data/_includes/head.html +3 -3
- data/_includes/masthead.html +1 -1
- data/_includes/nav_list +6 -6
- data/_includes/page__hero.html +3 -3
- data/_includes/paginator.html +6 -6
- data/_includes/post_pagination.html +2 -2
- data/_includes/posts-category.html +3 -0
- data/_includes/posts-tag.html +3 -0
- data/_includes/scripts.html +2 -2
- data/_includes/search/lunr-search-scripts.html +3 -3
- data/_includes/sidebar.html +1 -1
- data/_includes/tag-list.html +1 -1
- data/_layouts/archive.html +1 -1
- data/_layouts/categories.html +48 -0
- data/_layouts/category.html +9 -0
- data/_layouts/collection.html +9 -0
- data/_layouts/default.html +1 -1
- data/_layouts/posts.html +29 -0
- data/_layouts/search.html +1 -1
- data/_layouts/single.html +1 -1
- data/_layouts/tag.html +9 -0
- data/_layouts/tags.html +48 -0
- data/_sass/minimal-mistakes.scss +1 -1
- data/_sass/minimal-mistakes/_archive.scss +16 -0
- data/_sass/minimal-mistakes/_page.scss +68 -0
- data/assets/js/lunr/lunr-store.js +18 -2
- data/assets/js/main.min.js +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95aa62108f6eb79d0492cfc5f10697d65cf4a4d1
|
4
|
+
data.tar.gz: 56d1ab55031077a078fd5641f33f811d4a03c9be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b115e3e392f5427f8ea5338b1c28efc5015283ed3afb548e81f5fda0bda52d823df000ff3a43c7f7936da778d2002704fbdac536f046e282beab2de22c03d2ed
|
7
|
+
data.tar.gz: 04712002fea175c0780a8df37712b26ab7a192f846d120537f1c24e88e989d0097bb271efd9d50bdb129b8307b4426eab25561fb29b3b47d6398240d6a31038b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## [4.11.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.0)
|
2
|
+
|
3
|
+
### Enhancements
|
4
|
+
|
5
|
+
* Add default `theme` and `remote_theme` values to `_config.yml`.
|
6
|
+
* Add new layouts (`posts`, `categories`, `tags`, `collection`, `category`, and `tag`) for easier archive page creation.(https://github.com/mmistakes/minimal-mistakes/issues/1582)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* Replace `absolute_url` filter with `relative_url` where it makes sense (asset/nagivation related paths). [#1588](https://github.com/mmistakes/minimal-mistakes/issues/1588)
|
11
|
+
* Fix search excerpts that run together because of implied spaces.
|
12
|
+
|
1
13
|
## [4.10.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.10.1)
|
2
14
|
|
3
15
|
### Enhancements
|
@@ -18,16 +18,16 @@
|
|
18
18
|
{% if teaser contains "://" %}
|
19
19
|
"{{ teaser }}"
|
20
20
|
{% else %}
|
21
|
-
"{{ teaser |
|
21
|
+
"{{ teaser | relative_url }}"
|
22
22
|
{% endif %}
|
23
23
|
alt="">
|
24
24
|
</div>
|
25
25
|
{% endif %}
|
26
26
|
<h2 class="archive__item-title" itemprop="headline">
|
27
27
|
{% if post.link %}
|
28
|
-
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url |
|
28
|
+
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
|
29
29
|
{% else %}
|
30
|
-
<a href="{{ post.url |
|
30
|
+
<a href="{{ post.url | relative_url }}" rel="permalink">{{ title }}</a>
|
31
31
|
{% endif %}
|
32
32
|
</h2>
|
33
33
|
{% if post.read_time %}
|
@@ -8,14 +8,14 @@
|
|
8
8
|
{% if author.avatar contains "://" %}
|
9
9
|
{% assign author_src = author.avatar %}
|
10
10
|
{% else %}
|
11
|
-
{% assign author_src = author.avatar |
|
11
|
+
{% assign author_src = author.avatar | relative_url %}
|
12
12
|
{% endif %}
|
13
13
|
|
14
14
|
{% if author.home %}
|
15
15
|
{% if author.home contains "://" %}
|
16
16
|
{% assign author_link = author.home %}
|
17
17
|
{% else %}
|
18
|
-
{% assign author_link = author.home |
|
18
|
+
{% assign author_link = author.home | relative_url %}
|
19
19
|
{% endif %}
|
20
20
|
<a href="{{ author_link }}">
|
21
21
|
<img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
|
data/_includes/breadcrumbs.html
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
{% else %}
|
30
30
|
{% assign i = i | plus: 1 %}
|
31
31
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
32
|
-
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path |
|
32
|
+
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
33
33
|
<meta itemprop="position" content="{{ i }}" />
|
34
34
|
</li>
|
35
35
|
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
{% for hash in category_hashes %}
|
20
20
|
{% assign keyValue = hash | split: '#' %}
|
21
21
|
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
22
|
-
<a href="{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path |
|
22
|
+
<a href="{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path | relative_url }}" class="page__taxonomy-item" rel="tag">{{ category_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
23
23
|
{% endfor %}
|
24
24
|
</span>
|
25
25
|
</p>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% assign entries = site[include.collection] %}
|
2
|
+
|
3
|
+
{% if include.sort_by == 'title' %}
|
4
|
+
{% if include.sort_order == 'reverse' %}
|
5
|
+
{% assign entries = entries | sort: 'title' | reverse %}
|
6
|
+
{% else %}
|
7
|
+
{% assign entries = entries | sort: 'title' %}
|
8
|
+
{% endif %}
|
9
|
+
{% elsif include.sort_by == 'date' %}
|
10
|
+
{% if include.sort_order == 'reverse' %}
|
11
|
+
{% assign entries = entries | sort: 'date' | reverse %}
|
12
|
+
{% else %}
|
13
|
+
{% assign entries = entries | sort: 'date' %}
|
14
|
+
{% endif %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
{%- for post in entries -%}
|
18
|
+
{% include archive-single.html %}
|
19
|
+
{%- endfor -%}
|
data/_includes/feature_row
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
{% if f.url contains "://" %}
|
12
12
|
{% capture f_url %}{{ f.url }}{% endcapture %}
|
13
13
|
{% else %}
|
14
|
-
{% capture f_url %}{{ f.url |
|
14
|
+
{% capture f_url %}{{ f.url | relative_url }}{% endcapture %}
|
15
15
|
{% endif %}
|
16
16
|
|
17
17
|
<div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
|
@@ -22,7 +22,7 @@
|
|
22
22
|
{% if f.image_path contains "://" %}
|
23
23
|
"{{ f.image_path }}"
|
24
24
|
{% else %}
|
25
|
-
"{{ f.image_path |
|
25
|
+
"{{ f.image_path | relative_url }}"
|
26
26
|
{% endif %}
|
27
27
|
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
|
28
28
|
</div>
|
data/_includes/figure
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
{% if include.image_path contains "://" %}
|
4
4
|
"{{ include.image_path }}"
|
5
5
|
{% else %}
|
6
|
-
"{{ include.image_path |
|
6
|
+
"{{ include.image_path | relative_url }}"
|
7
7
|
{% endif %}
|
8
8
|
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
|
9
9
|
{% if include.caption %}
|
data/_includes/footer.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
{% if site.author.bitbucket %}
|
19
19
|
<li><a href="https://bitbucket.org/{{ site.author.bitbucket }}"><i class="fab fa-fw fa-bitbucket" aria-hidden="true"></i> Bitbucket</a></li>
|
20
20
|
{% endif %}
|
21
|
-
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' |
|
21
|
+
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
|
22
22
|
</ul>
|
23
23
|
</div>
|
24
24
|
|
data/_includes/gallery
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
{% if img.url contains "://" %}
|
20
20
|
"{{ img.url }}"
|
21
21
|
{% else %}
|
22
|
-
"{{ img.url |
|
22
|
+
"{{ img.url | relative_url }}"
|
23
23
|
{% endif %}
|
24
24
|
{% if img.title %}title="{{ img.title }}"{% endif %}
|
25
25
|
>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
{% if img.image_path contains "://" %}
|
28
28
|
"{{ img.image_path }}"
|
29
29
|
{% else %}
|
30
|
-
"{{ img.image_path |
|
30
|
+
"{{ img.image_path | relative_url }}"
|
31
31
|
{% endif %}
|
32
32
|
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
33
33
|
</a>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
{% if img.image_path contains "://" %}
|
37
37
|
"{{ img.image_path }}"
|
38
38
|
{% else %}
|
39
|
-
"{{ img.image_path |
|
39
|
+
"{{ img.image_path | relative_url }}"
|
40
40
|
{% endif %}
|
41
41
|
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
42
42
|
{% endif %}
|
data/_includes/head.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
{% include seo.html %}
|
4
4
|
|
5
|
-
<link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' |
|
5
|
+
<link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
6
6
|
|
7
7
|
<!-- http://t.co/dKP3o1e -->
|
8
8
|
<meta name="HandheldFriendly" content="True">
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<!-- For all browsers -->
|
17
|
-
<link rel="stylesheet" href="{{ '/assets/css/main.css' |
|
17
|
+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
18
18
|
|
19
19
|
<!--[if lte IE 9]>
|
20
20
|
<style>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
{% if script contains "://" %}
|
37
37
|
{% capture script_path %}{{ script }}{% endcapture %}
|
38
38
|
{% else %}
|
39
|
-
{% capture script_path %}{{ script |
|
39
|
+
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
|
40
40
|
{% endif %}
|
41
41
|
<script src="{{ script_path }}"></script>
|
42
42
|
{% endfor %}
|
data/_includes/masthead.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="masthead__inner-wrap">
|
3
3
|
<div class="masthead__menu">
|
4
4
|
<nav id="site-nav" class="greedy-nav">
|
5
|
-
<a class="site-title" href="{{ '/' |
|
5
|
+
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.title }}</a>
|
6
6
|
<ul class="visible-links">
|
7
7
|
{% for link in site.data.navigation.main %}
|
8
8
|
{% if link.url contains 'http' %}
|
data/_includes/nav_list
CHANGED
@@ -10,12 +10,12 @@
|
|
10
10
|
{% if nav.url %}
|
11
11
|
{% comment %} internal/external URL check {% endcomment %}
|
12
12
|
{% if nav.url contains "://" %}
|
13
|
-
{% assign
|
13
|
+
{% assign nav_url = nav.url %}
|
14
14
|
{% else %}
|
15
|
-
{% assign
|
15
|
+
{% assign nav_url = nav.url | relative_url %}
|
16
16
|
{% endif %}
|
17
17
|
|
18
|
-
<a href="{{
|
18
|
+
<a href="{{ nav_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
|
19
19
|
{% else %}
|
20
20
|
<span class="nav__sub-title">{{ nav.title }}</span>
|
21
21
|
{% endif %}
|
@@ -25,9 +25,9 @@
|
|
25
25
|
{% for child in nav.children %}
|
26
26
|
{% comment %} internal/external URL check {% endcomment %}
|
27
27
|
{% if child.url contains "://" %}
|
28
|
-
{% assign
|
28
|
+
{% assign child_url = child.url %}
|
29
29
|
{% else %}
|
30
|
-
{% assign
|
30
|
+
{% assign child_url = child.url | relative_url %}
|
31
31
|
{% endif %}
|
32
32
|
|
33
33
|
{% comment %} set "active" class on current page {% endcomment %}
|
@@ -37,7 +37,7 @@
|
|
37
37
|
{% assign active = "" %}
|
38
38
|
{% endif %}
|
39
39
|
|
40
|
-
<li><a href="{{
|
40
|
+
<li><a href="{{ child_url }}" class="{{ active }}">{{ child.title }}</a></li>
|
41
41
|
{% endfor %}
|
42
42
|
</ul>
|
43
43
|
{% endif %}
|
data/_includes/page__hero.html
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{% if page.header.image contains "://" %}
|
2
2
|
{% capture img_path %}{{ page.header.image }}{% endcapture %}
|
3
3
|
{% else %}
|
4
|
-
{% capture img_path %}{{ page.header.image |
|
4
|
+
{% capture img_path %}{{ page.header.image | relative_url }}{% endcapture %}
|
5
5
|
{% endif %}
|
6
6
|
|
7
7
|
{% if page.header.cta_url contains "://" %}
|
8
8
|
{% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
|
9
9
|
{% else %}
|
10
|
-
{% capture cta_path %}{{ page.header.cta_url |
|
10
|
+
{% capture cta_path %}{{ page.header.cta_url | relative_url }}{% endcapture %}
|
11
11
|
{% endif %}
|
12
12
|
|
13
13
|
{% if page.header.overlay_image contains "://" %}
|
14
14
|
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
|
15
15
|
{% elsif page.header.overlay_image %}
|
16
|
-
{% capture overlay_img_path %}{{ page.header.overlay_image |
|
16
|
+
{% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %}
|
17
17
|
{% endif %}
|
18
18
|
|
19
19
|
{% if page.header.overlay_filter contains "rgba" %}
|
data/_includes/paginator.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{% if paginator.total_pages > 1 %}
|
2
2
|
<nav class="pagination">
|
3
|
-
{% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' |
|
3
|
+
{% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
|
4
4
|
<ul>
|
5
5
|
{% comment %} Link for previous page {% endcomment %}
|
6
6
|
{% if paginator.previous_page %}
|
7
7
|
{% if paginator.previous_page == 1 %}
|
8
8
|
<li><a href="{{ first_page_path }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
|
9
9
|
{% else %}
|
10
|
-
<li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' |
|
10
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | relative_url }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
|
11
11
|
{% endif %}
|
12
12
|
{% else %}
|
13
13
|
<li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</span></a></li>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
{% for index in (page_start..page_end) %}
|
37
37
|
{% if index == paginator.page %}
|
38
|
-
<li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' |
|
38
|
+
<li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | relative_url }}" class="disabled current">{{ index }}</a></li>
|
39
39
|
{% else %}
|
40
40
|
{% comment %} Distance from current page and this link {% endcomment %}
|
41
41
|
{% assign dist = paginator.page | minus: index %}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
{% comment %} Distance must be a positive value {% endcomment %}
|
44
44
|
{% assign dist = 0 | minus: dist %}
|
45
45
|
{% endif %}
|
46
|
-
<li><a href="{{ site.paginate_path | replace: ':num', index |
|
46
|
+
<li><a href="{{ site.paginate_path | replace: ':num', index | relative_url }}">{{ index }}</a></li>
|
47
47
|
{% endif %}
|
48
48
|
{% endfor %}
|
49
49
|
|
@@ -55,12 +55,12 @@
|
|
55
55
|
{% if paginator.page == paginator.total_pages %}
|
56
56
|
<li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
|
57
57
|
{% else %}
|
58
|
-
<li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' |
|
58
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | relative_url }}">{{ paginator.total_pages }}</a></li>
|
59
59
|
{% endif %}
|
60
60
|
|
61
61
|
{% comment %} Link next page {% endcomment %}
|
62
62
|
{% if paginator.next_page %}
|
63
|
-
<li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' |
|
63
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | relative_url }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a></li>
|
64
64
|
{% else %}
|
65
65
|
<li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</span></a></li>
|
66
66
|
{% endif %}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
{% if page.previous or page.next %}
|
2
2
|
<nav class="pagination">
|
3
3
|
{% if page.previous %}
|
4
|
-
<a href="{{ page.previous.url |
|
4
|
+
<a href="{{ page.previous.url | relative_url }}" class="pagination--pager" title="{{ page.previous.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
|
5
5
|
{% else %}
|
6
6
|
<a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
|
7
7
|
{% endif %}
|
8
8
|
{% if page.next %}
|
9
|
-
<a href="{{ page.next.url |
|
9
|
+
<a href="{{ page.next.url | relative_url }}" class="pagination--pager" title="{{ page.next.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
|
10
10
|
{% else %}
|
11
11
|
<a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
|
12
12
|
{% endif %}
|
data/_includes/scripts.html
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
{% if script contains "://" %}
|
4
4
|
{% capture script_path %}{{ script }}{% endcapture %}
|
5
5
|
{% else %}
|
6
|
-
{% capture script_path %}{{ script |
|
6
|
+
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
|
7
7
|
{% endif %}
|
8
8
|
<script src="{{ script_path }}"></script>
|
9
9
|
{% endfor %}
|
10
10
|
{% else %}
|
11
|
-
<script src="{{ '/assets/js/main.min.js' |
|
11
|
+
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
12
12
|
<script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
|
13
13
|
{% endif %}
|
14
14
|
|
@@ -5,6 +5,6 @@
|
|
5
5
|
{% else %}
|
6
6
|
{% assign lang = "en" %}
|
7
7
|
{% endcase %}
|
8
|
-
<script src="{{ '/assets/js/lunr/lunr.min.js' |
|
9
|
-
<script src="{{ '/assets/js/lunr/lunr-store.js' |
|
10
|
-
<script src="{{ '/assets/js/lunr/lunr-' | append: lang | append: '.js' |
|
8
|
+
<script src="{{ '/assets/js/lunr/lunr.min.js' | relative_url }}"></script>
|
9
|
+
<script src="{{ '/assets/js/lunr/lunr-store.js' | relative_url }}"></script>
|
10
|
+
<script src="{{ '/assets/js/lunr/lunr-' | append: lang | append: '.js' | relative_url }}"></script>
|
data/_includes/sidebar.html
CHANGED
data/_includes/tag-list.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
{% for hash in tag_hashes %}
|
20
20
|
{% assign keyValue = hash | split: '#' %}
|
21
21
|
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
22
|
-
<a href="{{ tag_word | slugify | prepend: path_type | prepend: site.tag_archive.path |
|
22
|
+
<a href="{{ tag_word | slugify | prepend: path_type | prepend: site.tag_archive.path | relative_url }}" class="page__taxonomy-item" rel="tag">{{ tag_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
23
23
|
{% endfor %}
|
24
24
|
</span>
|
25
25
|
</p>
|
data/_layouts/archive.html
CHANGED
@@ -19,7 +19,7 @@ layout: default
|
|
19
19
|
|
20
20
|
<div class="archive">
|
21
21
|
{% unless page.header.overlay_color or page.header.overlay_image %}
|
22
|
-
<h1 class="page__title">{{ page.title }}</h1>
|
22
|
+
<h1 id="page-title" class="page__title">{{ page.title }}</h1>
|
23
23
|
{% endunless %}
|
24
24
|
{{ content }}
|
25
25
|
</div>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
layout: archive
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
<ul class="taxonomy__index">
|
8
|
+
{% assign categories_max = 0 %}
|
9
|
+
{% for category in site.categories %}
|
10
|
+
{% if category[1].size > categories_max %}
|
11
|
+
{% assign categories_max = category[1].size %}
|
12
|
+
{% endif %}
|
13
|
+
{% endfor %}
|
14
|
+
{% for i in (1..categories_max) reversed %}
|
15
|
+
{% for category in site.categories %}
|
16
|
+
{% if category[1].size == i %}
|
17
|
+
<li>
|
18
|
+
<a href="#{{ category[0] | slugify }}">
|
19
|
+
<strong>{{ category[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
{% endif %}
|
23
|
+
{% endfor %}
|
24
|
+
{% endfor %}
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
{% assign categories_max = 0 %}
|
28
|
+
{% for category in site.categories %}
|
29
|
+
{% if category[1].size > categories_max %}
|
30
|
+
{% assign categories_max = category[1].size %}
|
31
|
+
{% endif %}
|
32
|
+
{% endfor %}
|
33
|
+
|
34
|
+
{% for i in (1..categories_max) reversed %}
|
35
|
+
{% for category in site.categories %}
|
36
|
+
{% if category[1].size == i %}
|
37
|
+
<section id="{{ category[0] | slugify | downcase }}" class="taxonomy__section">
|
38
|
+
<h2 class="archive__subtitle">{{ category[0] }}</h2>
|
39
|
+
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
40
|
+
{% for post in category.last %}
|
41
|
+
{% include archive-single.html type=page.entries_layout %}
|
42
|
+
{% endfor %}
|
43
|
+
</div>
|
44
|
+
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a>
|
45
|
+
</section>
|
46
|
+
{% endif %}
|
47
|
+
{% endfor %}
|
48
|
+
{% endfor %}
|
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.11.1 by Michael Rose
|
7
7
|
Copyright 2013-2018 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/posts.html
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
layout: archive
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
<ul class="taxonomy__index">
|
8
|
+
{% assign postsInYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
|
9
|
+
{% for year in postsInYear %}
|
10
|
+
<li>
|
11
|
+
<a href="#{{ year.name }}">
|
12
|
+
<strong>{{ year.name }}</strong> <span class="taxonomy__count">{{ year.items | size }}</span>
|
13
|
+
</a>
|
14
|
+
</li>
|
15
|
+
{% endfor %}
|
16
|
+
</ul>
|
17
|
+
|
18
|
+
{% assign postsByYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
|
19
|
+
{% for year in postsByYear %}
|
20
|
+
<section id="{{ year.name }}" class="taxonomy__section">
|
21
|
+
<h2 class="archive__subtitle">{{ year.name }}</h2>
|
22
|
+
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
23
|
+
{% for post in year.items %}
|
24
|
+
{% include archive-single.html type=page.entries_layout %}
|
25
|
+
{% endfor %}
|
26
|
+
</div>
|
27
|
+
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a>
|
28
|
+
</section>
|
29
|
+
{% endfor %}
|
data/_layouts/search.html
CHANGED
@@ -17,7 +17,7 @@ layout: default
|
|
17
17
|
|
18
18
|
<div class="archive">
|
19
19
|
{% unless page.header.overlay_color or page.header.overlay_image %}
|
20
|
-
<h1 class="page__title">{{ page.title }}</h1>
|
20
|
+
<h1 id="page-title" class="page__title">{{ page.title }}</h1>
|
21
21
|
{% endunless %}
|
22
22
|
|
23
23
|
{{ content }}
|
data/_layouts/single.html
CHANGED
@@ -26,7 +26,7 @@ layout: default
|
|
26
26
|
<div class="page__inner-wrap">
|
27
27
|
{% unless page.header.overlay_color or page.header.overlay_image %}
|
28
28
|
<header>
|
29
|
-
{% if page.title %}<h1 class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
|
29
|
+
{% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
|
30
30
|
{% if page.read_time %}
|
31
31
|
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
|
32
32
|
{% endif %}
|
data/_layouts/tag.html
ADDED
data/_layouts/tags.html
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
layout: archive
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
<ul class="taxonomy__index">
|
8
|
+
{% assign tags_max = 0 %}
|
9
|
+
{% for tag in site.tags %}
|
10
|
+
{% if tag[1].size > tags_max %}
|
11
|
+
{% assign tags_max = tag[1].size %}
|
12
|
+
{% endif %}
|
13
|
+
{% endfor %}
|
14
|
+
{% for i in (1..tags_max) reversed %}
|
15
|
+
{% for tag in site.tags %}
|
16
|
+
{% if tag[1].size == i %}
|
17
|
+
<li>
|
18
|
+
<a href="#{{ tag[0] | slugify }}">
|
19
|
+
<strong>{{ tag[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
{% endif %}
|
23
|
+
{% endfor %}
|
24
|
+
{% endfor %}
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
{% assign tags_max = 0 %}
|
28
|
+
{% for tag in site.tags %}
|
29
|
+
{% if tag[1].size > tags_max %}
|
30
|
+
{% assign tags_max = tag[1].size %}
|
31
|
+
{% endif %}
|
32
|
+
{% endfor %}
|
33
|
+
|
34
|
+
{% for i in (1..tags_max) reversed %}
|
35
|
+
{% for tag in site.tags %}
|
36
|
+
{% if tag[1].size == i %}
|
37
|
+
<section id="{{ tag[0] | slugify | downcase }}" class="taxonomy__section">
|
38
|
+
<h2 class="archive__subtitle">{{ tag[0] }}</h2>
|
39
|
+
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
40
|
+
{% for post in tag.last %}
|
41
|
+
{% include archive-single.html type=page.entries_layout %}
|
42
|
+
{% endfor %}
|
43
|
+
</div>
|
44
|
+
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a>
|
45
|
+
</section>
|
46
|
+
{% endif %}
|
47
|
+
{% endfor %}
|
48
|
+
{% endfor %}
|
data/_sass/minimal-mistakes.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Minimal Mistakes Jekyll Theme 4.
|
2
|
+
* Minimal Mistakes Jekyll Theme 4.11.1 by Michael Rose
|
3
3
|
* Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
|
5
5
|
*/
|
@@ -317,3 +317,19 @@
|
|
317
317
|
font-size: 1em;
|
318
318
|
}
|
319
319
|
}
|
320
|
+
|
321
|
+
/*
|
322
|
+
Wide Pages
|
323
|
+
========================================================================== */
|
324
|
+
|
325
|
+
.wide {
|
326
|
+
.archive {
|
327
|
+
@include breakpoint($large) {
|
328
|
+
padding-right: 0;
|
329
|
+
}
|
330
|
+
|
331
|
+
@include breakpoint($x-large) {
|
332
|
+
padding-right: 0;
|
333
|
+
}
|
334
|
+
}
|
335
|
+
}
|
@@ -295,6 +295,74 @@
|
|
295
295
|
}
|
296
296
|
}
|
297
297
|
|
298
|
+
.taxonomy__section {
|
299
|
+
margin-bottom: 2em;
|
300
|
+
padding-bottom: 1em;
|
301
|
+
|
302
|
+
&:not(:last-child) {
|
303
|
+
border-bottom: solid 1px $border-color;
|
304
|
+
}
|
305
|
+
|
306
|
+
.archive__item-title {
|
307
|
+
margin-top: 0;
|
308
|
+
}
|
309
|
+
|
310
|
+
.archive__subtitle {
|
311
|
+
clear: both;
|
312
|
+
border: 0;
|
313
|
+
}
|
314
|
+
|
315
|
+
+ .taxonomy__section {
|
316
|
+
margin-top: 2em;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
.taxonomy__title {
|
321
|
+
margin-bottom: 0.5em;
|
322
|
+
color: lighten($text-color, 60%);
|
323
|
+
}
|
324
|
+
|
325
|
+
.taxonomy__count {
|
326
|
+
color: lighten($text-color, 50%);
|
327
|
+
}
|
328
|
+
|
329
|
+
.taxonomy__index {
|
330
|
+
display: grid;
|
331
|
+
grid-column-gap: 2em;
|
332
|
+
grid-template-columns: repeat(2, 1fr);
|
333
|
+
margin: 1.414em 0;
|
334
|
+
padding: 0;
|
335
|
+
font-size: 0.75em;
|
336
|
+
list-style: none;
|
337
|
+
|
338
|
+
@include breakpoint($large) {
|
339
|
+
grid-template-columns: repeat(3, 1fr);
|
340
|
+
}
|
341
|
+
|
342
|
+
a {
|
343
|
+
display: -webkit-box;
|
344
|
+
display: -ms-flexbox;
|
345
|
+
display: flex;
|
346
|
+
padding: 0.25em 0;
|
347
|
+
-webkit-box-pack: justify;
|
348
|
+
-ms-flex-pack: justify;
|
349
|
+
justify-content: space-between;
|
350
|
+
color: inherit;
|
351
|
+
text-decoration: none;
|
352
|
+
border-bottom: 1px solid $border-color;
|
353
|
+
}
|
354
|
+
}
|
355
|
+
|
356
|
+
.back-to-top {
|
357
|
+
display: block;
|
358
|
+
clear: both;
|
359
|
+
color: lighten($text-color, 50%);
|
360
|
+
font-size: 0.6em;
|
361
|
+
text-transform: uppercase;
|
362
|
+
text-align: right;
|
363
|
+
text-decoration: none;
|
364
|
+
}
|
365
|
+
|
298
366
|
/*
|
299
367
|
Comments
|
300
368
|
========================================================================== */
|
@@ -18,9 +18,25 @@ var store = [
|
|
18
18
|
"title": {{ doc.title | jsonify }},
|
19
19
|
"excerpt":
|
20
20
|
{%- if site.search_full_content == true -%}
|
21
|
-
{{ doc.content |
|
21
|
+
{{ doc.content |
|
22
|
+
replace:"</p>", " " |
|
23
|
+
replace:"</h1>", " " |
|
24
|
+
replace:"</h2>", " " |
|
25
|
+
replace:"</h3>", " " |
|
26
|
+
replace:"</h4>", " " |
|
27
|
+
replace:"</h5>", " " |
|
28
|
+
replace:"</h6>", " "|
|
29
|
+
strip_html | strip_newlines | jsonify }},
|
22
30
|
{%- else -%}
|
23
|
-
{{ doc.content |
|
31
|
+
{{ doc.content |
|
32
|
+
replace:"</p>", " " |
|
33
|
+
replace:"</h1>", " " |
|
34
|
+
replace:"</h2>", " " |
|
35
|
+
replace:"</h3>", " " |
|
36
|
+
replace:"</h4>", " " |
|
37
|
+
replace:"</h5>", " " |
|
38
|
+
replace:"</h6>", " "|
|
39
|
+
strip_html | strip_newlines | truncatewords: 50 | jsonify }},
|
24
40
|
{%- endif -%}
|
25
41
|
"categories": {{ doc.categories | jsonify }},
|
26
42
|
"tags": {{ doc.tags | jsonify }},
|
data/assets/js/main.min.js
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal-mistakes-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Rose
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -169,6 +169,7 @@ files:
|
|
169
169
|
- _includes/comments-providers/staticman.html
|
170
170
|
- _includes/comments-providers/staticman_v2.html
|
171
171
|
- _includes/comments.html
|
172
|
+
- _includes/documents-collection.html
|
172
173
|
- _includes/feature_row
|
173
174
|
- _includes/figure
|
174
175
|
- _includes/footer.html
|
@@ -184,6 +185,8 @@ files:
|
|
184
185
|
- _includes/page__taxonomy.html
|
185
186
|
- _includes/paginator.html
|
186
187
|
- _includes/post_pagination.html
|
188
|
+
- _includes/posts-category.html
|
189
|
+
- _includes/posts-tag.html
|
187
190
|
- _includes/read-time.html
|
188
191
|
- _includes/scripts.html
|
189
192
|
- _includes/search/algolia-search-scripts.html
|
@@ -198,12 +201,18 @@ files:
|
|
198
201
|
- _includes/video
|
199
202
|
- _layouts/archive-taxonomy.html
|
200
203
|
- _layouts/archive.html
|
204
|
+
- _layouts/categories.html
|
205
|
+
- _layouts/category.html
|
206
|
+
- _layouts/collection.html
|
201
207
|
- _layouts/compress.html
|
202
208
|
- _layouts/default.html
|
203
209
|
- _layouts/home.html
|
210
|
+
- _layouts/posts.html
|
204
211
|
- _layouts/search.html
|
205
212
|
- _layouts/single.html
|
206
213
|
- _layouts/splash.html
|
214
|
+
- _layouts/tag.html
|
215
|
+
- _layouts/tags.html
|
207
216
|
- _sass/minimal-mistakes.scss
|
208
217
|
- _sass/minimal-mistakes/_animations.scss
|
209
218
|
- _sass/minimal-mistakes/_archive.scss
|