minimaJake 1.0.4 → 1.0.10

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: f8cf3f8c77fc7a0c7d98cb2544b3408e6a7af33be1acaf402152d37fabf9e98c
4
- data.tar.gz: 90be3fa39a05be8351481b0be6974aea52679b01f788b847938e9b0f5d281574
3
+ metadata.gz: 8b95d76f31fba8b42c39b0bc2300a5aa42193e8b39195276cb5a45ef4fa64f08
4
+ data.tar.gz: 35dae310780a193f638dbf2d313140cb1c41a3d5aa06e6bf9acc6d45857ff348
5
5
  SHA512:
6
- metadata.gz: ab18af65dcf7d9189d512df0d68aec4ebd21a53e0d27dd67be4dca07f9509e12964448bc3365c731c8bd3ffecab319a4edea97fb4b99a4d2d958c681ce7f066a
7
- data.tar.gz: a913529d59bfbfe5948753fe0884bb56d70fa90296a100db57d8bb887a097a581ce73243792079271dba52a9a3f2957e4818d4224ff62c8ac9698942e0015f3a
6
+ metadata.gz: 5e73f813240912a90ce0efb4de54c3298941b3687554e8a9e821a5e6271b46d020ede19ace0f9a672722cffb8836f02cff02ab5ba96e40898b8afb8416594895
7
+ data.tar.gz: 61ea770d41b2b0682d1d927c9b7f5b8d1095df0e1b7b4b1ce8aba749c37b03f62baeeb4b2bc91163ac0dacd86fe43c077f24caf2edc201c5928dfb269afd9cd6
data/README.md CHANGED
@@ -12,23 +12,25 @@ A live demo is available at [minima.jakelee.co.uk](https://minima.jakelee.co.uk)
12
12
 
13
13
  The easiest way is to just [copy the `_config.yml`](https://github.com/JakeSteam/blog-programming/blob/main/_config.yml) from one of the blogs using this theme, updating the name / accent colour etc as desired.
14
14
 
15
- The theme is imported via `remote_theme: JakeSteam/minimaJake`, optionally adding `@1.0.2` to specify a release from [the releases page](https://github.com/JakeSteam/minimaJake/releases).
15
+ The theme is imported via `remote_theme: JakeSteam/minimaJake`, optionally adding `@1.0.9` to specify a release from [the releases page](https://github.com/JakeSteam/minimaJake/releases).
16
16
 
17
17
  ## Additions
18
18
 
19
19
  Native (liquid) features:
20
20
 
21
- * Table of contents
21
+ * Table of contents (toggleable & collapsible)
22
22
  * Linkable headers
23
23
  * Tag system
24
24
  * Pagination improvements
25
25
  * End of post call to action
26
26
  * Social & meta link system in footer
27
- * Network site picker
27
+ * Network site picker
28
+ * Plaintext or HTML excerpts (`show_excerpts` / `show_excerpts_html`)
29
+ * Read time / word count (`replace_read_time_with_word_count`)
30
+ * Search
28
31
 
29
32
  Third party features:
30
33
 
31
- * Search
32
34
  * Giscus comments
33
35
  * Configurable Ko-fi donation button & floating prompt
34
36
 
@@ -170,8 +170,14 @@
170
170
  {% assign nodes = jekyll_toc | split: '>' %}
171
171
  {% capture jekyll_toc %}
172
172
  <div class="toc">
173
- <b>{{ site.table_of_contents_header }}</b>
174
- <{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>
173
+ {%- if site.table_of_contents_collapsible != false -%}
174
+ <details open>
175
+ {%- endif- %}
176
+ <summary><b>{{ site.table_of_contents_header }}</b></summary>
177
+ <{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>
178
+ {%- if site.table_of_contents_collapsible -%}
179
+ </details>
180
+ {%- endif- %}
175
181
  </div>
176
182
  {% endcapture %}
177
183
  {% endif %}
@@ -0,0 +1,10 @@
1
+ {% capture words %}
2
+ {{ post.content | number_of_words }}
3
+ {% endcapture %}
4
+ {%- if site.replace_read_time_with_word_count -%}
5
+ {% assign wordThousands = words | at_least: 100 | divided_by: 1000.0 | round: 1 %}
6
+ {{ wordThousands }}k words
7
+ {%- else -%}
8
+ {% assign minutes = words | divided_by: 160.0 | ceil %}
9
+ {{ minutes }} min{% if minutes != 1 %}s{% endif %}
10
+ {%- endif- %}
@@ -14,6 +14,7 @@
14
14
  if (prop === "title" || prop === "excerpt") {
15
15
  value = value.replace(/&amp;/g, "&");
16
16
  }
17
+ if (prop === "url") { return value }
17
18
  return value.replace(
18
19
  new RegExp(document.getElementById('search-input').value, "gi"),
19
20
  '<span class="highlight">$&</span>'
@@ -50,7 +51,9 @@
50
51
  var searchParam = new URLSearchParams(window.location.search).get("q")
51
52
  if (searchParam != null) {
52
53
  document.getElementById('search-input').value = searchParam
53
- sjs.search(searchParam)
54
+ setTimeout(() => {
55
+ sjs.search(searchParam)
56
+ }, 100);
54
57
  }
55
58
  document.getElementById('search-input').placeholder = "Type your search here..."
56
59
  }, false);
@@ -10,9 +10,13 @@
10
10
  <div class="footer-col">
11
11
  <p>{{ site.description | escape }}</p>
12
12
  <p>
13
- <a href="https://pages.github.com/">GH Pages</a> v{{ site.github.versions.github-pages | default: 1.0 }}
14
- <a href="https://jekyllrb.com/">Jekyll</a> v{{ site.github.versions.jekyll | default: 1.0 }},
15
- <a href="https://github.com/JakeSteam/minimaJake">minimaJake</a> v1.0.4.
13
+ <a href="https://pages.github.com/">GH Pages</a> {{ site.github.versions.github-pages | default: 1.0 }}
14
+ <a href="https://jekyllrb.com/">Jekyll</a> {{ site.github.versions.jekyll | default: 1.0 }},
15
+ {% if site.theme_version %}
16
+ <a href="https://github.com/JakeSteam/minimaJake">minimaJake</a> {{ site.theme_version }}.
17
+ {% else %}
18
+ <a href="https://github.com/JakeSteam/minimaJake">minimaJake</a> {{ site.remote_theme | split: '@' | last }}.
19
+ {% endif %}
16
20
  </p>
17
21
  </div>
18
22
  </div>
data/_includes/head.html CHANGED
@@ -2,13 +2,14 @@
2
2
  <meta charset="utf-8">
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <meta name="twitter:site" content="@JakeLeeUK" />
6
- <meta name="twitter:creator" content="@JakeLeeUK" />
7
5
  {%- seo -%}
8
- <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
6
+ <link rel="stylesheet" href="/assets/css/style.css?v={{ site.theme_version }}">
9
7
  {%- feed_meta -%}
10
8
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
11
9
  {%- include google-analytics.html -%}
12
10
  {%- endif -%}
13
-
11
+
12
+ {% if site.open_external_links_in_new_tab != false %}
13
+ <script src="/assets/js/new_window.js" defer></script>
14
+ {% endif %}
14
15
  </head>
@@ -0,0 +1 @@
1
+ <path d="M 9.523438 6.78125 L 15.480469 0 L 14.070312 0 L 8.894531 5.886719 L 4.765625 0 L 0 0 L 6.246094 8.902344 L 0 16.011719 L 1.410156 16.011719 L 6.871094 9.796875 L 11.234375 16.011719 L 16 16.011719 M 1.921875 1.042969 L 4.089844 1.042969 L 14.070312 15.023438 L 11.898438 15.023438 "/>
@@ -1,7 +1,7 @@
1
1
  <ul class="contact-list">
2
2
  {%- for entry in site.minima.social_links -%}
3
- {% if entry.user_title != blank? %}
4
- {%- include social/meta-item.html item = entry -%}
5
- {% endif %}
3
+ {% if entry.user_title != blank? %}
4
+ {%- include social/meta-item.html item = entry -%}
5
+ {% endif %}
6
6
  {%- endfor -%}
7
7
  </ul>
data/_layouts/home.html CHANGED
@@ -9,14 +9,12 @@ layout: default
9
9
 
10
10
  {{ content }}
11
11
 
12
-
13
12
  {% if site.paginate %}
14
13
  {% assign posts = paginator.posts %}
15
14
  {% else %}
16
15
  {% assign posts = site.posts %}
17
16
  {% endif %}
18
17
 
19
-
20
18
  {%- if posts.size > 0 -%}
21
19
  {%- if page.list_title -%}
22
20
  <h2 class="post-list-heading">{{ page.list_title }}</h2>
@@ -33,12 +31,12 @@ layout: default
33
31
  {{ post.title | escape }}
34
32
  </a>
35
33
  </h3>
36
- <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • {% include custom/read_time.html %} • {% include custom/tags.html %}</span>
37
- <p>
38
- {%- if site.show_excerpts -%}
39
- {{ post.excerpt | strip_html }}
40
- {%- endif -%}
41
- </p>
34
+ <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • {% include custom/read_time_or_words.html %} • {% include custom/tags.html %}</span>
35
+ {%- if site.show_excerpts -%}
36
+ <p>{{ post.excerpt | strip_html }}</p>
37
+ {%- elsif site.show_excerpts_html -%}
38
+ {{ post.excerpt }}
39
+ {% endif %}
42
40
  </div>
43
41
  </li>
44
42
  {%- endfor -%}
data/_layouts/post.html CHANGED
@@ -30,6 +30,8 @@ layout: default
30
30
  {% include custom/anchor_headings.html html=content beforeHeading=true anchorBody="<svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>" %}
31
31
  </div>
32
32
 
33
+ <hr>
34
+
33
35
  <div class="centred-content">
34
36
  {% if site.post_end_promo != blank? %}
35
37
  {{ site.post_end_promo }}<br><br>
@@ -45,6 +45,11 @@
45
45
  text-align: center;
46
46
  }
47
47
 
48
+ blockquote {
49
+ text-indent: -35px !important;
50
+ padding-left: 50px !important;
51
+ }
52
+
48
53
  /* Makes the meta info pretty */
49
54
  .contact-list li+li {
50
55
  padding-top: 5px;
@@ -157,16 +162,18 @@ h1:hover .octicon, h2:hover .octicon, h3:hover .octicon, h4:hover .octicon, h5:h
157
162
  border-radius: 0.25rem;
158
163
  padding-top: 15px;
159
164
  padding-right: 15px;
165
+ padding-bottom: 15px;
160
166
  margin-left: 15px;
161
167
  }
162
168
 
163
- .toc b {
169
+ .toc summary {
164
170
  margin-left: 20px;
165
171
  }
166
172
 
167
173
  .toc ul {
168
174
  list-style: none;
169
175
  margin-left: 10px;
176
+ margin-bottom: 0px;
170
177
  }
171
178
 
172
179
  .toc li {
@@ -188,7 +195,7 @@ h1:hover .octicon, h2:hover .octicon, h3:hover .octicon, h4:hover .octicon, h5:h
188
195
  }
189
196
 
190
197
  .site-tile {
191
- padding: 2px 10px 3px 10px;
198
+ padding: 3.5px 10px 3.5px 10px;
192
199
  color: #ffffff !important;
193
200
  white-space: nowrap;
194
201
  }
@@ -0,0 +1,8 @@
1
+ window.onload = function() {
2
+ var links = document.links;
3
+ for(var i = 0; i < links.length; i++) {
4
+ if (links[i].hostname != window.location.hostname || links[i].href.includes("/images/")) {
5
+ links[i].target = '_blank';
6
+ }
7
+ }
8
+ };
data/assets/js/posts.json CHANGED
@@ -6,7 +6,7 @@ layout: none
6
6
  {
7
7
  "tags" : "{{ post.tags | join: ', ' }}",
8
8
  "title" : {{ post.title | jsonify | strip_html }},
9
- "excerpt" : {{ post.excerpt | jsonify | strip_html }},
9
+ "excerpt" : {{ post.excerpt | jsonify | strip_html }},
10
10
  "url" : "{{ post.url }}",
11
11
  "date" : "{{ post.date | date: "%b %-d, %Y" }}",
12
12
  "content" : {{ post.content | jsonify | strip_html }}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimaJake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-04 00:00:00.000000000 Z
11
+ date: 2023-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -86,7 +86,7 @@ files:
86
86
  - _includes/custom/donatebutton.html
87
87
  - _includes/custom/donatefloating.html
88
88
  - _includes/custom/paginator.html
89
- - _includes/custom/read_time.html
89
+ - _includes/custom/read_time_or_words.html
90
90
  - _includes/custom/search.html
91
91
  - _includes/custom/tags.html
92
92
  - _includes/footer.html
@@ -113,6 +113,7 @@ files:
113
113
  - _includes/social/icons/substack.svg
114
114
  - _includes/social/icons/telegram.svg
115
115
  - _includes/social/icons/twitter.svg
116
+ - _includes/social/icons/x.svg
116
117
  - _includes/social/icons/youtube.svg
117
118
  - _includes/social/meta-item.html
118
119
  - _includes/social/meta.html
@@ -135,6 +136,7 @@ files:
135
136
  - _sass/minima/skins/solarized-light.scss
136
137
  - _sass/minima/skins/solarized.scss
137
138
  - assets/css/style.scss
139
+ - assets/js/new_window.js
138
140
  - assets/js/posts.json
139
141
  - assets/js/search.js
140
142
  - assets/minima-social-icons.liquid
@@ -158,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
160
  - !ruby/object:Gem::Version
159
161
  version: '0'
160
162
  requirements: []
161
- rubygems_version: 3.1.6
163
+ rubygems_version: 3.3.26
162
164
  signing_key:
163
165
  specification_version: 4
164
166
  summary: Minima, but with the missing functionality added
@@ -1,5 +0,0 @@
1
- {% capture words %}
2
- {{ post.content | number_of_words }}
3
- {% endcapture %}
4
- {% assign minutes = words | divided_by: 160.0 | ceil %}
5
- {{ minutes }} min{% if minutes != 1 %}s{% endif %}