fenton-jekyll-boilerplate 0.0.1 → 0.0.2

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: 558447f5dfcd7a95bd652f0de9db495f0f61c29bf9045abfec40d9a8da5373da
4
- data.tar.gz: 1e19c261e69fe31b8f0b49ac197811e370c771937f0b1602d712bc8629fd470b
3
+ metadata.gz: 8a8dc279ce1e3d98f2fdf3bcad5aff9c84172f9d3da6e261c79cec26e060adb1
4
+ data.tar.gz: 1bb9d2da45641b6dd7be6229b35b5f28aa0fe6a4091abebd1d14952451d4fd1a
5
5
  SHA512:
6
- metadata.gz: 85b7c819903cbc729b347090b4e5117025851f675d67d708649e2e69d786e5f73b2b511ccfe85d9b80056c7dab162865b13a1b653c599c86d4dbe47dd2c8bb44
7
- data.tar.gz: 205c4dafb39cc5476c96e7b9ed220b53f09c90ee17f991fa2c9d22b5055f6440b68ea7a41f2d1930339f2884ddca4edbfdadb17f06a98ce2828497a23b380440
6
+ metadata.gz: 939ffe81c144968c6f32190e8edcf18dfcac629b22fe290c8a5705dfa26632b97bd846d4901e9e855f8e27181f35b214cbfddba0b5cec8b8189d9aa128dfddd1
7
+ data.tar.gz: 8d813c139be5a500b369fbbc577e4fa165971c8c0fc59016f23c96c3e1418b7072fc08d7dcaecf00ff769e1077bd658593e45908686c758ae87ebf3f0f44b9b5
data/favicon.ico ADDED
Binary file
data/robots.txt ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ Sitemap: {{ site.url }}{{ '/sitemap.xml' | prepend: site.baseurl }}
5
+ User-agent: *
data/search.json CHANGED
@@ -11,20 +11,18 @@ layout: null
11
11
  "tags" : "{{ page.tags | join: ' ' }} {{page.keywords}}",
12
12
  "url" : "{{ site.baseurl }}{{ page.url }}",
13
13
  "date" : "{{ page.date }}"
14
- }
15
-
16
- {%- if authors.size > 0 %},{% endif %}
14
+ }{%- unless forloop.last %},{% endunless %}
17
15
  {%- endfor %}
16
+ {%- if authors.size > 0 %},{% endif %}
18
17
  {%- for author in authors %}{
19
18
  "title" : "{{ author.name | escape }}",
20
19
  "category" : "{{ author.category }}",
21
20
  "tags" : "{{ page.tags | join: ' ' }} {{page.keywords}}",
22
21
  "url" : "{{ site.baseurl }}{{ author.url }}",
23
22
  "date" : "{{ author.date }}"
24
- }
25
-
26
- {%- if posts.size > 0 %},{% endif %}
23
+ }{%- unless forloop.last %},{% endunless %}
27
24
  {%- endfor %}
25
+ {%- if posts.size > 0 %},{% endif %}
28
26
  {%- for post in posts %}{
29
27
  "title" : "{{ post.title | escape }}",
30
28
  "category" : "{{ post.category }}",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fenton-jekyll-boilerplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Fenton
@@ -70,7 +70,6 @@ files:
70
70
  - _plugins/liquid_regex.rb
71
71
  - _plugins/markdown.rb
72
72
  - _plugins/paging.rb
73
- - articles/index.html
74
73
  - assets/css/code.css
75
74
  - assets/css/main.css
76
75
  - assets/css/vars.css
@@ -98,12 +97,10 @@ files:
98
97
  - assets/js/modules/string.js
99
98
  - assets/js/search.js
100
99
  - assets/svg/down.svg
101
- - feed/atom.xml
100
+ - favicon.ico
101
+ - robots.txt
102
102
  - search.json
103
103
  - sitemap.xml
104
- - sitemap/authors.xml
105
- - sitemap/pages.xml
106
- - sitemap/posts.xml
107
104
  homepage: https://jekyll.stevefenton.co.uk/
108
105
  licenses:
109
106
  - Apache-2.0
data/articles/index.html DELETED
@@ -1,70 +0,0 @@
1
- ---
2
- layout: default
3
- title: Articles
4
- date: 2022-09-06
5
- authors: steve-fenton
6
- description: Articles about Jekyll Boilerplate.
7
- nav-title: Articles
8
- nav-level: 1
9
- nav-order: 3000
10
- published: true
11
- nav-sitemap: true
12
- nav-search: true
13
- # Don't use permalink on list pages
14
- ---
15
- <main id="site-main">
16
- <h1>{{ 'articles' | t: 'title' }}</h1>
17
- {%- if site.paginate %}
18
- {% assign posts = paginator.posts %}
19
- {% else %}
20
- {% assign posts = site.posts %}
21
- {% endif %}
22
- {%- if posts.size > 0 -%}
23
- <ul class="post-list">
24
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
25
- {%- for post in posts -%}
26
- <li class="list-item" data-destination="{{ post.url | relative_url }}">
27
- {%- if post.banner-image -%}
28
- <img src="{{ post.banner-image }}" alt="{{ post.banner-image-alt }}" {% unless forloop.first %}loading="lazy"{% endunless %} />
29
- {%- endif -%}
30
- <div class="list-item-content">
31
- <span class="post-meta">{{ post.date | date: date_format }}</span>
32
- <h2>
33
- <a href="{{ post.url | relative_url }}">
34
- {{ post.title | escape }}
35
- </a>
36
- </h2>
37
- {%- if site.show_excerpts -%}
38
- {{ post.excerpt | default: post.description }}
39
- {%- endif -%}
40
- </div>
41
- </li>
42
- {%- endfor -%}
43
- </ul>
44
-
45
- {% if paginator.total_pages > 1 %}
46
- <div class="post-paging">
47
- {% if paginator.previous_page %}
48
- <a href="{{ paginator.previous_page_path | relative_url }}">&laquo; {{ 'articles' | t: 'previous' }}</a>
49
- {% else %}
50
- <span>&laquo; {{ 'articles' | t: 'previous' }}</span>
51
- {% endif %}
52
-
53
- {% for page in (1..paginator.total_pages) %}
54
- {% if page == paginator.page %}
55
- <em>{{ page }}</em>
56
- {% else %}
57
- {% assign page_one_link = '/' | append: site.paginate_page | append: '1' | append: '/' %}
58
- <a href="{{ site.paginate_path | relative_url | replace: ':num', page | replace: page_one_link, '/' }}">{{ page }}</a>
59
- {% endif %}
60
- {% endfor %}
61
-
62
- {% if paginator.next_page %}
63
- <a href="{{ paginator.next_page_path | relative_url }}">{{ 'articles' | t: 'next' }} &raquo;</a>
64
- {% else %}
65
- <span>{{ 'articles' | t: 'next' }} &raquo;</span>
66
- {% endif %}
67
- </div>
68
- {% endif %}
69
- {%- endif -%}
70
- </main>
data/feed/atom.xml DELETED
@@ -1,39 +0,0 @@
1
- ---
2
- layout: null
3
- ---
4
- <?xml version="1.0" encoding="utf-8"?>
5
- <feed xmlns="http://www.w3.org/2005/Atom">
6
- <title>{{ site.title }}</title>
7
- <subtitle>{{ site.description }}</subtitle>
8
- <link href="{{ site.url }}{{ '/feed/atom.xml' | prepend: site.baseurl}}" rel="self" />
9
- <link href="{{ site.url }}" />
10
- <id>{{ site.url }}{{ '/feed/atom.xml' | prepend: site.baseurl}}</id>
11
-
12
- {%- for post in site.posts limit:1 %}
13
- <updated>{{ post.date | date_to_xmlschema }}</updated>
14
- {%- endfor %}
15
-
16
- {%- for post in site.posts limit:20 %}
17
- <entry>
18
- <title>{{ post.title }}</title>
19
- <link href="{{site.url}}{{ post.url | prepend: site.baseurl }}" />
20
- <id>{{ post.url | prepend: site.url }}</id>
21
- <published>{{ post.date | date_to_xmlschema }}</published>
22
- <updated>{{ post.date | date_to_xmlschema }}</updated>
23
- <summary>{{ post.excerpt | default: post.description }}</summary>
24
- <author>
25
- {%- assign authordata = '' | split:'@' %}
26
- {%- for author in site.authors %}
27
- {%- if post.authors contains author.username or author.username == post.authors %}
28
- {%- capture data %}
29
- <name>{{ author.name }}</name>
30
- <email>{{ author.email }}</email>
31
- {%- endcapture %}
32
- {%- assign authordata = authordata | push: data %}
33
- {%- endif %}
34
- {%- endfor %}
35
- {{- authordata | array_to_sentence_string }}
36
- </author>
37
- </entry>
38
- {%- endfor %}
39
- </feed>
data/sitemap/authors.xml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- layout: null
3
- ---
4
- <?xml version="1.0" encoding="UTF-8"?>
5
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
6
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
- xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
8
- http://www.sitemaps.org/schemas/sitemap/0.9.xsd">
9
- {%- assign authors = site.authors | where: 'nav-sitemap','true' %}
10
- {%- for author in authors %} <url>
11
- <loc>{{ site.url }}{{ author.url }}</loc>
12
- <lastmod>{{ author.date }}</lastmod>
13
- </url>
14
- {%- endfor %}
15
- </urlset>
data/sitemap/pages.xml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- layout: null
3
- ---
4
- <?xml version="1.0" encoding="UTF-8"?>
5
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
6
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
- xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
8
- http://www.sitemaps.org/schemas/sitemap/0.9.xsd">
9
- {%- assign pages = site.pages | where: 'nav-sitemap','true' %}
10
- {% for page in pages %} <url>
11
- <loc>{{ site.url }}{{ page.url }}</loc>
12
- <lastmod>{{ page.date }}</lastmod>
13
- </url>
14
- {% endfor %}
15
- </urlset>
data/sitemap/posts.xml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- layout: null
3
- ---
4
- <?xml version="1.0" encoding="UTF-8"?>
5
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
6
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
- xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
8
- http://www.sitemaps.org/schemas/sitemap/0.9.xsd">
9
- {%- assign posts = site.posts | where: 'nav-sitemap','true' %}
10
- {%- for post in posts %} <url>
11
- <loc>{{ site.url }}{{ post.url }}</loc>
12
- <lastmod>{{ post.date }}</lastmod>
13
- </url>
14
- {%- endfor %}
15
- </urlset>