fenton-jekyll-boilerplate 0.0.12 → 0.0.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c9147748f6d04738a5ac523a9bb3152e3b20e63a93d3a0800c29a139925efc4
4
- data.tar.gz: 36bcab32d83e1efd66eba6d00aa55fe1f563e7fb04bfe2c5fa8712511ff7e8f4
3
+ metadata.gz: 796e5046594287e61a04266f801d95941663ae0bd5e30949b3f60eeafbaaa6ee
4
+ data.tar.gz: c948a2e05d83425390dc3f51cb284f2ecd1b274d4273d78d6d83c687ddc91373
5
5
  SHA512:
6
- metadata.gz: ad7d18e6a4da9c033d1ecd9a31d127d41988e4621fa2b7fba6041edc62bb6499309cec55f196b334c4fd060765888a7090391a58aea7dc9421b7e645b6ab7a63
7
- data.tar.gz: d0b0374cfcb23fc215601466c3d6e634259ca71192f7917af4b12a2f6532e45bb965af63350e07a42733dd42bc3c93de5787fbf74d390f5385dd0189768c7caa
6
+ metadata.gz: e5be494b5120efc317a8cef43887dcbc196293ad4a5ef0f3405338f930482b3687599f7d0035055e90d4eb3002e5384b694356bb71956287b43207aeae465b89
7
+ data.tar.gz: 9d65a265d19dc33f7f92d803b9513134231dea45201680617c05cba408e48ff92dc2bfaa327cde139c06018ff066b0856ca3f50ddd193b1cf0c6e288f25faad2
data/_includes/head.html CHANGED
@@ -5,9 +5,9 @@
5
5
  <meta name="description" content="{{ page.description }}">
6
6
  <meta name="keywords" content="{{ page.keywords }}">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <meta name="theme-color" content="#{{ site.theme_color_hex }}" />
9
- <meta name="msapplication-navbutton-color" content="#{{site.theme_color_hex}}" />
10
- <meta name="apple-mobile-web-app-status-bar-style" content="#{{site.theme_color_hex}}" />
8
+ <meta name="theme-color" content="#{{ site.theme_color_hex | default: 333333 }}" />
9
+ <meta name="msapplication-navbutton-color" content="#{{ site.theme_color_hex | default: 333333 }}" />
10
+ <meta name="apple-mobile-web-app-status-bar-style" content="#{{ site.theme_color_hex | default: 333333 }}" />
11
11
  <meta property="og:title" content="{{ page.title }}" />
12
12
  <meta property="og:url" content="{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'index.html',''}}" />
13
13
  <meta property="og:type" content="website" />
@@ -18,7 +18,7 @@
18
18
  {%- assign child_perma = p.permalink %}
19
19
  {%- assign child_perma_truncated = child_perma | truncate: parent_perma_size, '' %}
20
20
 
21
- {%- if parent_perma != '/' and child_perma_truncated == parent_perma and child_perma != parent_perma %}
21
+ {%- if p.nav-level != 0 and parent_perma != '/' and child_perma_truncated == parent_perma and child_perma != parent_perma %}
22
22
  {%- assign sub_pages = sub_pages | push: p %}
23
23
  {%- endif %}
24
24
  {%- endfor %}
@@ -36,7 +36,8 @@
36
36
  <li>
37
37
  <a href="{{ item_url }}"{% if item_url == current_url) %} class="current-item" aria-current="page"{% endif %}>{{ item.nav-title | default: item.title }}</a>
38
38
  </li>
39
- {%- for child in sub_pages %}
39
+ {%- assign sub_pages_sorted = sub_pages | sort: 'nav-order' %}
40
+ {%- for child in sub_pages_sorted %}
40
41
  <li>
41
42
  <a href="{{ child.url | prepend: site.baseurl }}"{% if child.url == current_url) %} class="current-item" aria-current="page"{% endif %}>{{ child.nav-title | default: child.title }}</a>
42
43
  </li>
data/_layouts/post.html CHANGED
@@ -7,7 +7,7 @@ layout: default
7
7
  <h1>{{ page.title }}</h1>
8
8
  </header>
9
9
  <div class="post-meta">
10
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
10
+ {%- assign date_format = site.date_format | default: '%b %-d, %Y' -%}
11
11
  {%- assign authordata = '' | split:'@' %}
12
12
  {%- for author in site.authors %}
13
13
  {%- if page.authors contains author.username or author.username == page.authors %}
data/_layouts/search.html CHANGED
@@ -7,12 +7,12 @@ layout: default
7
7
  </header>
8
8
  <div>
9
9
  {{ content }}
10
- <form method="GET" action="{{ site.search_fallback_url }}" role="search" id="site-search" class="site-search note" autocomplete="off">
10
+ <form method="GET" action="{{ site.search_fallback_url | default: 'https://www.google.com/search' }}" role="search" id="site-search" class="site-search note" autocomplete="off">
11
11
  <fieldset>
12
- <input type="hidden" name="{{ site.search_fallback_site }}" value="{{ site.url | prepend: 'site:' }}" />
12
+ <input type="hidden" name="{{ site.search_fallback_site | default: 'q' }}" value="{{ site.url | prepend: 'site:' }}" />
13
13
  <div>
14
14
  <label for="site-search-query">{{ 'search' | t: 'search_for' }}</label>
15
- <input type="text" name="{{ site.search_fallback_query }}" id="site-search-query" autofocus="autofocus" />
15
+ <input type="text" name="{{ site.search_fallback_query | default: 'q' }}" id="site-search-query" autofocus="autofocus" />
16
16
  <button id="site-search-button" type="submit">{{ 'search' | t: 'submit' }}</button>
17
17
  </div>
18
18
  </fieldset>
@@ -3,4 +3,4 @@ layout: null
3
3
  permalink: robots.txt
4
4
  ---
5
5
  Sitemap: {{ site.url }}{{ '/sitemap.xml' | prepend: site.baseurl }}
6
- {{ site.robots_txt }}
6
+ {{ site.robots_txt | default: 'User-agent: *' }}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fenton-jekyll-boilerplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Fenton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll