jekyll-theme-simplix 0.4 → 0.4.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: '08255e4c1f18cf88a00450bf4bd09d33d1b1f01c111bc2aa7c39c63c8fcd6fde'
4
- data.tar.gz: dfe18cdc18fd3588df496c4b495f7c5341a8dcea57fd64fc911e7e1edc4d7972
3
+ metadata.gz: f7a1320b639256619bfbaec35675cbe9c5cc36c923f27756e7edd2d865c37546
4
+ data.tar.gz: 1300ee5aa11a6058e9c4e1c43ac431164cfbec8870a3f29fbd2289d5a5cd8286
5
5
  SHA512:
6
- metadata.gz: d90e50a05cc5d82e41f98b2a27bc353d4713eeecd365d4d66f32e8bae4ef2a6cba35037672d54f0db44c617c184165f674583a01127d5c71fcd6d5838abf28c9
7
- data.tar.gz: 7536ffd4f19510a640805c4757dcb01016585209a4055da04780013dbf45ce2ccca79d79f81f26fc81fc14ed20b008c3b65dd510ccbb4e7be492104e7da7e1f6
6
+ metadata.gz: cc691dc46d59a1c4c7202253f5470d536850876a91d4414c6b28deb16466635829e3de92c5da5781831e1243a770ea87668680e26c5b43440c428c1edc9e55bb
7
+ data.tar.gz: 024fca4bc4ad2ca05c421f0d73e455f6277557dcc39b8bb9a0961d40dc15484e8a09d19c6e169d101eb21d69cb7aaf2d4919c2785f407a4857b3e74d9d7e97df
data/_includes/ui.html CHANGED
@@ -1,5 +1,5 @@
1
1
  {% assign nav = site.navigation | default: site.data.navigation %}
2
- <nav{% if nav %} class="nav__multi"{% endif %}>
2
+ <nav{% if nav and nav.size > 1 %} class="nav__multi"{% endif %}>
3
3
  <div class="nav__toggle">
4
4
  <button title="Toggle navigation menu" aria-label="Toggle navigation menu"><i class="ph ph-list"></i> Menu</button>
5
5
  </div>
@@ -2,5 +2,48 @@
2
2
  layout: page
3
3
  ---
4
4
 
5
- <p>Here are posts which belong to the {{ page.type }} <b>{{ page.title | strip_html }}</b>.</p>
5
+ {% if page.type == 'tag' or page.type == 'category' %}
6
+ {% assign name = page.title | strip_html %}
7
+ {% elsif page.type == 'year' %}
8
+ {% assign name = page.date | date: '%Y' %}
9
+ {% assign child = 'month' %}
10
+ {% elsif page.type == 'month' %}
11
+ {% assign name = page.date | date: '%b %Y' %}
12
+ {% assign child = 'day' %}
13
+ {% elsif page.type == 'day' %}
14
+ {% assign name = page.date | date: '%d %b %Y' %}
15
+ {% endif %}
16
+
17
+ {% if child %}
18
+ {% assign arr = '' | split: ',' %}
19
+ {% assign months = ',Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec' | split: ',' %}
20
+ <p>Specific {{ child }}s which have existing posts: {% case page.type %}
21
+ {% when 'year' %}
22
+ {% assign year = page.date | date: '%Y' %}
23
+ {% for post in site.posts %}
24
+ {% assign src = post.date | date: '%Y' %}
25
+ {% if src == year %}
26
+ {% assign idx = post.date | date: '%m' %}
27
+ {% unless arr contains idx %}
28
+ {% assign arr = arr | push: idx %}
29
+ <a href="{{ idx }}">{% assign idx = idx | to_integer %}{{ months[idx] }}</a>
30
+ {% endunless %}
31
+ {% endif %}
32
+ {% endfor %}
33
+ {% when 'month' %}
34
+ {% assign month = page.date | date: '%Y%m' %}
35
+ {% for post in site.posts %}
36
+ {% assign src = post.date | date: '%Y%m' %}
37
+ {% if src == month %}
38
+ {% assign idx = post.date | date: '%d' %}
39
+ {% unless arr contains idx %}
40
+ {% assign arr = arr | push: idx %}
41
+ <a href="{{ idx }}">{{ idx }}</a>
42
+ {% endunless %}
43
+ {% endif %}
44
+ {% endfor %}
45
+ {% endcase %}</p>
46
+ {% endif %}
47
+
48
+ <p>Here are posts which belong to the {{ page.type }} <b>{{ name }}</b>.</p>
6
49
  {% include list-post.html posts=page.posts %}
data/_layouts/post.html CHANGED
@@ -13,10 +13,10 @@ title_bg_dark: 'linear-gradient(104deg, #1a094d 0%, #074b8f 70%, #0081de 100%)'
13
13
  <p>posted{% if page.date %} on {{ page.date | date_to_string }}{% endif %}{% if page.author %} by {{ page.author | strip_html }}{% endif %}</p>
14
14
  {% endif %}
15
15
  {% if page.tags.size > 0 %}
16
- <p>Tags: {% for tag in page.tags %}{% if site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'tags' %}<a href="{{ tag | slugify: 'ascii' | prepend: '/tag/' | relative_url }}">{{ tag }}</a>{% else %}{{ tag }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
16
+ <p>Tags: {% for tag in page.tags %}{% if site.plugins contains 'jekyll-archives' and site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'tags' %}<a href="{{ site['jekyll-archives'].permalinks.tag | default: '/tag/:name/' | replace: ':name', tag | relative_url }}">{{ tag }}</a>{% else %}{{ tag }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
17
17
  {% endif %}
18
18
  {% if page.categories.size > 0 %}
19
- <p>Categories: {% for category in page.categories %}{% if site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'categories' %}<a href="{{ category | slugify: 'ascii' | prepend: '/category/' | relative_url }}">{{ category }}</a>{% else %}{{ category }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
19
+ <p>Categories: {% for category in page.categories %}{% if site.plugins contains 'jekyll-archives' and site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'categories' %}<a href="{{ site['jekyll-archives'].permalinks.category | default: '/category/:name/' | replace: ':name', category | relative_url }}">{{ category }}</a>{% else %}{{ category }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
20
20
  {% endif %}
21
21
  </header>
22
22
 
data/_sass/main.scss CHANGED
@@ -275,7 +275,7 @@ nav {
275
275
  }
276
276
 
277
277
  &.nav__open {
278
- width: 100vh;
278
+ width: 100vw;
279
279
  height: 100vh;
280
280
 
281
281
  .nav__links {
data/assets/script.js CHANGED
@@ -41,7 +41,7 @@
41
41
  }
42
42
  });
43
43
 
44
- // Initialize \"Scroll to top\" button
44
+ // Initialize "Scroll to top" button
45
45
  function scroll_ev() {
46
46
  const e = document.querySelector("header"), r = e.getBoundingClientRect(), h = window.innerHeight;
47
47
  if(document.body.clientHeight > h && (r.bottom <= h * .2) != document.body.classList.contains("main__scroll-down")) document.body.classList.toggle("main__scroll-down");
@@ -63,14 +63,14 @@
63
63
  };
64
64
  document.querySelectorAll("a").forEach(link);
65
65
  document.querySelectorAll("a.footnote").forEach(function(f) {f.innerText = "[" + f.innerText + "]"});
66
- document.querySelectorAll("a.reversefootnote").forEach(function(r) {r.innerHTML = "<i class=\"ph ph-arrow-u-up-left\"></i>"});
66
+ document.querySelectorAll("a.reversefootnote").forEach(function(r) {r.innerHTML = '<i class="ph ph-arrow-u-up-left"></i>'});
67
67
  document.querySelectorAll("blockquote").forEach(function(b) {
68
68
  const e = b.firstElementChild;
69
69
  if(e) {
70
70
  const r = new RegExp("^\\[!(note|tip|important|warning|caution)\\]($| )", "i").exec(e.innerText.trim());
71
71
  if(r) {
72
72
  b.classList.add("quote__alert-" + r[1].toLowerCase());
73
- b.insertAdjacentHTML("afterbegin", "<p class=\"quote__alert-title\">" + r[1].charAt(0).toUpperCase() + r[1].slice(1).toLowerCase() + "</p>");
73
+ b.insertAdjacentHTML("afterbegin", '<p class="quote__alert-title">' + r[1].charAt(0).toUpperCase() + r[1].slice(1).toLowerCase() + "</p>");
74
74
  e.innerHTML = e.innerHTML.replace(new RegExp("^\\[!(note|tip|important|warning|caution)\\]", "i"), "").trim();
75
75
  }
76
76
  }
@@ -81,7 +81,7 @@
81
81
  s = document.createElement("summary");
82
82
  d.insertBefore(s, d.firstChild);
83
83
  }
84
- s.insertAdjacentHTML("afterbegin", "<i class=\"ph ph-caret-right\"></i>");
84
+ s.insertAdjacentHTML("afterbegin", '<i class="ph ph-caret-right"></i>');
85
85
  if(iedoc) s.onclick = function() {d.open = !d.hasAttribute("open")};
86
86
  });
87
87
 
@@ -143,7 +143,7 @@
143
143
  case "abc":
144
144
  case "abcjs":
145
145
  const id = (++abc).toString();
146
- preview_init(null).innerHTML = "<div id=\"paper" + id + "\"></div><div id=\"audio" + id + "\" class=\"synth\"></div>";
146
+ preview_init(null).innerHTML = '<div id="paper' + id + '"></div><div id="audio' + id + '" class="synth"></div>';
147
147
  const p = ABCJS.renderAbc("paper" + id, code, {responsive: "resize"})[0];
148
148
 
149
149
  if(ABCJS.synth.supportsAudio()) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-simplix
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lithier94675
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.6.9
82
+ rubygems_version: 4.0.10
83
83
  specification_version: 4
84
84
  summary: A simple Jekyll theme made with gradient colors
85
85
  test_files: []