minimal-mistakes-jekyll 4.18.1 → 4.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3b77658df40467db5638be5dcf6f4e3079296c64b3c7a90c7b3026ee8539693
4
- data.tar.gz: 1f1660e944a85ad39339af427cb545c997d9f8419dce1480eede9849a8a7a8e6
3
+ metadata.gz: 8bf22253b990be28d94c19767bf3b98281a70fb8bd7afb1f02dbf8eb1670077e
4
+ data.tar.gz: fbb94e83983502a9f59f5daf3fffa8cb720f76a58df3ea9e903423d7b00a5917
5
5
  SHA512:
6
- metadata.gz: ccb2bd569ba7577980949a8e909ac5db016e2a81585590edd95cc536feb7290a096976e0cf5e31a6bf535aa5456ff860d4127e89108424abb623a5e0f2f941ea
7
- data.tar.gz: e7bc5b4b1e2ad679bd1333917d883840e2ca47d7cb79172f37f26065eda76a02900104487a1cfdc7ed6e417ab43ccc2331a53d76a85dd734b2bd8bf36132e36a
6
+ metadata.gz: 0d1a97ed2fb4a30b38621e09b1a9d344a6e1ad112a028281bedaccec358393e8e288aa551253bce66ba8e9d69a6fd1fc987fe98ccb67b27de29c879e40581366
7
+ data.tar.gz: fbac2bc615e5023fc90cc25f02ac74ad052dd70cfd13d6526d7b29a1c132d12c1bd84efa2a9574f46bc10dfe3164815a8757c306667e7aa717b3aad6b3782509
@@ -1,3 +1,24 @@
1
+ ## [4.19.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.19.0)
2
+
3
+ ### Enhancements
4
+
5
+ - Add "click" overlay to close masthead and follow button menus when open. [#1168](https://github.com/mmistakes/minimal-mistakes/issues/1168)
6
+ - Remove deprecated Staticman v1 configurations from `_config.yml`. [#2386](https://github.com/mmistakes/minimal-mistakes/issues/2386)
7
+ - Use `relative_url` and `absolute_url` filters where possible. [#2387](https://github.com/mmistakes/minimal-mistakes/pull/2387)
8
+ - Improve headline hierarchy and add Sass specific variables `$h-size-x`. [#2423](https://github.com/mmistakes/minimal-mistakes/issues/2423)
9
+ - Improve accessibility of `default` skin by increasing color contrast of text and links.
10
+ - Hide posts with `hidden: true` YAML front matter from appearing in listings. [#2345](https://github.com/mmistakes/minimal-mistakes/pull/2345)
11
+ - Add Irish (Gaeilge) localized UI text strings. [#2422](https://github.com/mmistakes/minimal-mistakes/pull/2422)
12
+ - Remove `box-shadow` on radio and checkbox inputs. [#2398](https://github.com/mmistakes/minimal-mistakes/pull/2398)
13
+ - Bump Jekyll gem dependency to `v3.7`.
14
+
15
+ ### Bug Fixes
16
+
17
+ - Fix documentation around using `bundle info` command. [#2425](https://github.com/mmistakes/minimal-mistakes/pull/2425)
18
+ - Fix rake vulnerability in `.gemspec` file.
19
+ - Fix Staticman v2 comment submission. [#2402](https://github.com/mmistakes/minimal-mistakes/pull/2402)
20
+ - Fix repeated site base path for masthead logo. [#2385](https://github.com/mmistakes/minimal-mistakes/pull/2385)
21
+
1
22
  ## [4.18.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.18.1)
2
23
 
3
24
  ### Bug Fixes
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # [Minimal Mistakes Jekyll theme](https://mmistakes.github.io/minimal-mistakes/)
2
2
 
3
3
  [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/LICENSE)
4
- [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.6-blue.svg)](https://jekyllrb.com/)
4
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.7-blue.svg)](https://jekyllrb.com/)
5
5
  [![Ruby gem](https://img.shields.io/gem/v/minimal-mistakes-jekyll.svg)](https://rubygems.org/gems/minimal-mistakes-jekyll)
6
6
  [![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-green.svg?logo=paypal)](https://www.paypal.me/mmistakes)
7
7
 
@@ -33,7 +33,7 @@ Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building per
33
33
  - Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
34
34
  - Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), static-based via [Staticman](https://staticman.net/), and [utterances](https://utteranc.es/)).
35
35
  - [Google Analytics](https://www.google.com/analytics/) support.
36
- - UI localized text in English (default), Brazilian Portuguese (Português brasileiro), Catalan, Chinese, Danish, Dutch, French (Français), German (Deutsch), Greek, Hindi (हिंदी), Hungarian, Indonesian, Italian (Italiano), Japanese, Korean, Malayalam, Nepali (Nepalese), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), and Vietnamese.
36
+ - UI localized text in English (default), Brazilian Portuguese (Português brasileiro), Catalan, Chinese, Danish, Dutch, French (Français), German (Deutsch), Greek, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Korean, Malayalam, Nepali (Nepalese), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), and Vietnamese.
37
37
 
38
38
  ## Skins (color variations)
39
39
 
@@ -126,7 +126,7 @@ To install:
126
126
  bundle
127
127
  ```
128
128
 
129
- 4. Add `remote_theme: "mmistakes/minimal-mistakes@4.18.1"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
129
+ 4. Add `remote_theme: "mmistakes/minimal-mistakes@4.19.0"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
130
130
 
131
131
  **Looking for an example?** Fork the [Minimal Mistakes remote theme starter](https://github.com/mmistakes/mm-github-pages-starter) for the quickest method of getting a GitHub Pages hosted site up and running. Replace sample content with your own and configure as needed.
132
132
 
@@ -1608,6 +1608,52 @@ ca: &DEFAULT_CA
1608
1608
  ca-ES:
1609
1609
  <<: *DEFAULT_CA
1610
1610
 
1611
+ # Irish (Gaeilge)
1612
+ # --------------
1613
+ ga: &DEFAULT_GA
1614
+ skip_links : "Léim naisc"
1615
+ skip_primary_nav : "Léim chuig príomh naiscleanúint"
1616
+ skip_content : "Léim chuig inneachar"
1617
+ skip_footer : "Léim chuig buntásc"
1618
+ page : "Leathanach"
1619
+ pagination_previous : "Leathanach roimhe sin"
1620
+ pagination_next : "Céad leathanach eile"
1621
+ breadcrumb_home_label : "Baile"
1622
+ breadcrumb_separator : "/"
1623
+ menu_label : "Scorán roghchlár"
1624
+ search_label : "Scorán cuardach"
1625
+ toc_label : "Ar an leathanach seo"
1626
+ ext_link_label : "Nasc díreach"
1627
+ less_than : "níos lú na"
1628
+ minute_read : "a léamh"
1629
+ share_on_label : "Roinn ar"
1630
+ meta_label :
1631
+ tags_label : "Clibeanna:"
1632
+ categories_label : "Catagoírí:"
1633
+ date_label : "Nuashonraíodh:"
1634
+ comments_label : "Fág trácht"
1635
+ comments_title : "Tráchtanna"
1636
+ more_label : "Foghlaim níos mó"
1637
+ follow_label : "Lean:"
1638
+ feed_label : "Feed"
1639
+ powered_by : "Ag fáil cumhacht as"
1640
+ website_label : "Suíomh gréasáin"
1641
+ email_label : "R-phost"
1642
+ recent_posts : "Postálacha le deanaí"
1643
+ comment_form_comment_label : "Trácht"
1644
+ comment_form_name_label : "Ainm"
1645
+ comment_form_email_label : "Ríomhsheoladh"
1646
+ comment_form_website_label : "Suíomh gréasáin (roghnach)"
1647
+ comment_btn_submit : "Cuir isteach trácht"
1648
+ comment_btn_submitted : "Curtha isteach"
1649
+ loading_label : "Lódáil..."
1650
+ search_label_text : "Cuir do chuardach isteach..."
1651
+ search_placeholder_text : "Cuir do chuardach isteach..."
1652
+ results_found : "Torthaí aimsithe"
1653
+ back_to_top : "Ar ais go barr"
1654
+ ga-IE:
1655
+ <<: *DEFAULT_GA
1656
+
1611
1657
  # Another locale
1612
1658
  # --------------
1613
1659
  #
@@ -14,13 +14,7 @@
14
14
  <article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
15
15
  {% if include.type == "grid" and teaser %}
16
16
  <div class="archive__item-teaser">
17
- <img src=
18
- {% if teaser contains "://" %}
19
- "{{ teaser }}"
20
- {% else %}
21
- "{{ teaser | relative_url }}"
22
- {% endif %}
23
- alt="">
17
+ <img src="{{ teaser | relative_url }}" alt="">
24
18
  </div>
25
19
  {% endif %}
26
20
  <h2 class="archive__item-title" itemprop="headline">
@@ -5,23 +5,12 @@
5
5
 
6
6
  {% if author.avatar %}
7
7
  <div class="author__avatar">
8
- {% if author.avatar contains "://" %}
9
- {% assign author_src = author.avatar %}
10
- {% else %}
11
- {% assign author_src = author.avatar | relative_url %}
12
- {% endif %}
13
-
14
8
  {% if author.home %}
15
- {% if author.home contains "://" %}
16
- {% assign author_link = author.home %}
17
- {% else %}
18
- {% assign author_link = author.home | relative_url %}
19
- {% endif %}
20
- <a href="{{ author_link }}">
21
- <img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
9
+ <a href="{{ author.home | relative_url }}">
10
+ <img src="{{ author.avatar | relative_url }}" alt="{{ author.name }}" itemprop="image">
22
11
  </a>
23
12
  {% else %}
24
- <img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
13
+ <img src="{{ author.avatar | relative_url }}" alt="{{ author.name }}" itemprop="image">
25
14
  {% endif %}
26
15
  </div>
27
16
  {% endif %}
@@ -208,7 +197,7 @@
208
197
  <i class="fab fa-fw fa-youtube" aria-hidden="true"></i> YouTube
209
198
  </a>
210
199
  </li>
211
- {% else author.youtube %}
200
+ {% elsif author.youtube %}
212
201
  <li>
213
202
  <a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
214
203
  <i class="fab fa-fw fa-youtube" aria-hidden="true"></i> YouTube
@@ -1,4 +1,4 @@
1
- {% if site.repository and site.staticman.branch %}
1
+ {% if site.repository and site.comments.staticman.branch %}
2
2
  <script>
3
3
  (function ($) {
4
4
  $('#new_comment').submit(function () {
@@ -15,5 +15,7 @@
15
15
  {% endif %}
16
16
 
17
17
  {%- for post in entries -%}
18
- {% include archive-single.html %}
18
+ {%- unless post.hidden -%}
19
+ {% include archive-single.html %}
20
+ {%- endunless -%}
19
21
  {%- endfor -%}
@@ -7,24 +7,12 @@
7
7
  <div class="feature__wrapper">
8
8
 
9
9
  {% for f in feature_row %}
10
-
11
- {% if f.url contains "://" %}
12
- {% capture f_url %}{{ f.url }}{% endcapture %}
13
- {% else %}
14
- {% capture f_url %}{{ f.url | relative_url }}{% endcapture %}
15
- {% endif %}
16
-
17
10
  <div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
18
11
  <div class="archive__item">
19
12
  {% if f.image_path %}
20
13
  <div class="archive__item-teaser">
21
- <img src=
22
- {% if f.image_path contains "://" %}
23
- "{{ f.image_path }}"
24
- {% else %}
25
- "{{ f.image_path | relative_url }}"
26
- {% endif %}
27
- alt="{% if f.alt %}{{ f.alt }}{% endif %}">
14
+ <img src="{{ f.image_path | relative_url }}"
15
+ alt="{% if f.alt %}{{ f.alt }}{% endif %}">
28
16
  {% if f.image_caption %}
29
17
  <span class="archive__item-caption">{{ f.image_caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
30
18
  {% endif %}
@@ -43,11 +31,11 @@
43
31
  {% endif %}
44
32
 
45
33
  {% if f.url %}
46
- <p><a href="{{ f_url }}" class="btn {{ f.btn_class }}">{{ f.btn_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
34
+ <p><a href="{{ f.url | relative_url }}" class="btn {{ f.btn_class }}">{{ f.btn_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
47
35
  {% endif %}
48
36
  </div>
49
37
  </div>
50
38
  </div>
51
39
  {% endfor %}
52
40
 
53
- </div>
41
+ </div>
@@ -1,12 +1,9 @@
1
1
  <figure class="{{ include.class }}">
2
- <img src=
3
- {% if include.image_path contains "://" %}
4
- "{{ include.image_path }}"
5
- {% else %}
6
- "{{ include.image_path | relative_url }}"
7
- {% endif %}
8
- alt="{% if include.alt %}{{ include.alt }}{% endif %}">
2
+ <img src="{{ include.image_path | relative_url }}"
3
+ alt="{% if include.alt %}{{ include.alt }}{% endif %}">
9
4
  {% if include.caption %}
10
5
  <figcaption>
11
6
  {{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}
12
- </figcaption>{% endif %}</figure>
7
+ </figcaption>
8
+ {% endif %}
9
+ </figure>
@@ -19,33 +19,17 @@
19
19
  <figure class="{{ gallery_layout }} {{ include.class }}">
20
20
  {% for img in gallery %}
21
21
  {% if img.url %}
22
- <a href=
23
- {% if img.url contains "://" %}
24
- "{{ img.url }}"
25
- {% else %}
26
- "{{ img.url | relative_url }}"
27
- {% endif %}
28
- {% if img.title %}title="{{ img.title }}"{% endif %}
29
- >
30
- <img src=
31
- {% if img.image_path contains "://" %}
32
- "{{ img.image_path }}"
33
- {% else %}
34
- "{{ img.image_path | relative_url }}"
35
- {% endif %}
36
- alt="{% if img.alt %}{{ img.alt }}{% endif %}">
22
+ <a href="{{ img.url | relative_url }}"
23
+ {% if img.title %}title="{{ img.title }}"{% endif %}>
24
+ <img src="{{ img.image_path | relative_url }}"
25
+ alt="{% if img.alt %}{{ img.alt }}{% endif %}">
37
26
  </a>
38
27
  {% else %}
39
- <img src=
40
- {% if img.image_path contains "://" %}
41
- "{{ img.image_path }}"
42
- {% else %}
43
- "{{ img.image_path | relative_url }}"
44
- {% endif %}
45
- alt="{% if img.alt %}{{ img.alt }}{% endif %}">
28
+ <img src="{{ img.image_path | relative_url }}"
29
+ alt="{% if img.alt %}{{ img.alt }}{% endif %}">
46
30
  {% endif %}
47
31
  {% endfor %}
48
32
  {% if include.caption %}
49
33
  <figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
50
34
  {% endif %}
51
- </figure>
35
+ </figure>
@@ -31,11 +31,6 @@
31
31
 
32
32
  {% if site.head_scripts %}
33
33
  {% for script in site.head_scripts %}
34
- {% if script contains "://" %}
35
- {% capture script_path %}{{ script }}{% endcapture %}
36
- {% else %}
37
- {% capture script_path %}{{ script | relative_url }}{% endcapture %}
38
- {% endif %}
39
- <script src="{{ script_path }}"></script>
34
+ <script src="{{ script | relative_url }}"></script>
40
35
  {% endfor %}
41
36
  {% endif %}
@@ -1,8 +1,4 @@
1
- {% if site.logo contains "://" %}
2
- {% capture logo_path %}{{ site.logo }}{% endcapture %}
3
- {% else %}
4
- {% capture logo_path %}{{ site.logo | relative_url }}{% endcapture %}
5
- {% endif %}
1
+ {% capture logo_path %}{{ site.logo }}{% endcapture %}
6
2
 
7
3
  <div class="masthead">
8
4
  <div class="masthead__inner-wrap">
@@ -17,13 +13,8 @@
17
13
  </a>
18
14
  <ul class="visible-links">
19
15
  {%- for link in site.data.navigation.main -%}
20
- {%- if link.url contains '://' -%}
21
- {%- assign url = link.url -%}
22
- {%- else -%}
23
- {%- assign url = link.url | relative_url -%}
24
- {%- endif -%}
25
16
  <li class="masthead__menu-item">
26
- <a href="{{ url }}" {% if link.description %}title="{{ link.description }}"{% endif %}>{{ link.title }}</a>
17
+ <a href="{{ link.url | relative_url }}"{% if link.description %} title="{{ link.description }}"{% endif %}>{{ link.title }}</a>
27
18
  </li>
28
19
  {%- endfor -%}
29
20
  </ul>
@@ -8,14 +8,7 @@
8
8
  {% for nav in navigation %}
9
9
  <li>
10
10
  {% if nav.url %}
11
- {% comment %} internal/external URL check {% endcomment %}
12
- {% if nav.url contains "://" %}
13
- {% assign nav_url = nav.url %}
14
- {% else %}
15
- {% assign nav_url = nav.url | relative_url %}
16
- {% endif %}
17
-
18
- <a href="{{ nav_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
11
+ <a href="{{ nav.url | relative_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
19
12
  {% else %}
20
13
  <span class="nav__sub-title">{{ nav.title }}</span>
21
14
  {% endif %}
@@ -23,25 +16,11 @@
23
16
  {% if nav.children != null %}
24
17
  <ul>
25
18
  {% for child in nav.children %}
26
- {% comment %} internal/external URL check {% endcomment %}
27
- {% if child.url contains "://" %}
28
- {% assign child_url = child.url %}
29
- {% else %}
30
- {% assign child_url = child.url | relative_url %}
31
- {% endif %}
32
-
33
- {% comment %} set "active" class on current page {% endcomment %}
34
- {% if child.url == page.url %}
35
- {% assign active = "active" %}
36
- {% else %}
37
- {% assign active = "" %}
38
- {% endif %}
39
-
40
- <li><a href="{{ child_url }}" class="{{ active }}">{{ child.title }}</a></li>
19
+ <li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }}</a></li>
41
20
  {% endfor %}
42
21
  </ul>
43
22
  {% endif %}
44
23
  </li>
45
24
  {% endfor %}
46
25
  </ul>
47
- </nav>
26
+ </nav>
@@ -1,20 +1,4 @@
1
- {% if page.header.image contains "://" %}
2
- {% capture img_path %}{{ page.header.image }}{% endcapture %}
3
- {% else %}
4
- {% capture img_path %}{{ page.header.image | relative_url }}{% endcapture %}
5
- {% endif %}
6
-
7
- {% if page.header.cta_url contains "://" %}
8
- {% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
9
- {% else %}
10
- {% capture cta_path %}{{ page.header.cta_url | relative_url }}{% endcapture %}
11
- {% endif %}
12
-
13
- {% if page.header.overlay_image contains "://" %}
14
- {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
15
- {% elsif page.header.overlay_image %}
16
- {% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %}
17
- {% endif %}
1
+ {% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %}
18
2
 
19
3
  {% if page.header.overlay_filter contains "rgba" %}
20
4
  {% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
@@ -51,22 +35,17 @@
51
35
  <p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
52
36
  {% endif %}
53
37
  {% if page.header.cta_url %}
54
- <p><a href="{{ cta_path }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
38
+ <p><a href="{{ page.header.cta_url | relative_url }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
55
39
  {% endif %}
56
40
  {% if page.header.actions %}
57
41
  <p>
58
42
  {% for action in page.header.actions %}
59
- {% if action.url contains "://" %}
60
- {% assign url = action.url %}
61
- {% else %}
62
- {% assign url = action.url | relative_url %}
63
- {% endif %}
64
- <a href="{{ url }}" class="btn btn--light-outline btn--large">{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a>
43
+ <a href="{{ action.url | relative_url }}" class="btn btn--light-outline btn--large">{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a>
65
44
  {% endfor %}
66
45
  {% endif %}
67
46
  </div>
68
47
  {% else %}
69
- <img src="{{ img_path }}" alt="{{ image_description }}" class="page__hero-image">
48
+ <img src="{{ page.header.image | relative_url }}" alt="{{ image_description }}" class="page__hero-image">
70
49
  {% endif %}
71
50
  {% if page.header.caption %}
72
51
  <span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
@@ -1,3 +1,5 @@
1
1
  {%- for post in site.categories[include.taxonomy] -%}
2
- {% include archive-single.html %}
2
+ {%- unless post.hidden -%}
3
+ {% include archive-single.html %}
4
+ {%- endunless -%}
3
5
  {%- endfor -%}
@@ -1,3 +1,5 @@
1
1
  {%- for post in site.tags[include.taxonomy] -%}
2
- {% include archive-single.html %}
2
+ {%- unless post.hidden -%}
3
+ {% include archive-single.html %}
4
+ {%- endunless -%}
3
5
  {%- endfor -%}
@@ -1,11 +1,6 @@
1
1
  {% if site.footer_scripts %}
2
2
  {% for script in site.footer_scripts %}
3
- {% if script contains "://" %}
4
- {% capture script_path %}{{ script }}{% endcapture %}
5
- {% else %}
6
- {% capture script_path %}{{ script | relative_url }}{% endcapture %}
7
- {% endif %}
8
- <script src="{{ script_path }}"></script>
3
+ <script src="{{ script | relative_url }}"></script>
9
4
  {% endfor %}
10
5
  {% else %}
11
6
  <script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
@@ -29,11 +24,6 @@
29
24
 
30
25
  {% if site.after_footer_scripts %}
31
26
  {% for script in site.after_footer_scripts %}
32
- {% if script contains "://" %}
33
- {% capture script_path %}{{ script }}{% endcapture %}
34
- {% else %}
35
- {% capture script_path %}{{ script | relative_url }}{% endcapture %}
36
- {% endif %}
37
- <script src="{{ script_path }}"></script>
27
+ <script src="{{ script | relative_url }}"></script>
38
28
  {% endfor %}
39
29
  {% endif %}