jekyll-theme-simplix 0.4 → 0.4.1

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: f9cfb55fb3799b0f3d86d13a019de575f8e043e3b6ec29cd41763f2e1f91769c
4
+ data.tar.gz: ac9d85c0d8c19ed910859532c9482e7c277f04d9908f065d07794055db49905c
5
5
  SHA512:
6
- metadata.gz: d90e50a05cc5d82e41f98b2a27bc353d4713eeecd365d4d66f32e8bae4ef2a6cba35037672d54f0db44c617c184165f674583a01127d5c71fcd6d5838abf28c9
7
- data.tar.gz: 7536ffd4f19510a640805c4757dcb01016585209a4055da04780013dbf45ce2ccca79d79f81f26fc81fc14ed20b008c3b65dd510ccbb4e7be492104e7da7e1f6
6
+ metadata.gz: ea6dfbd79098c0b400e2903ead8835e10b7bd411c20ccd230e74b8332e0425793560ab993e1e775bcbaa69a68032c6a349240499d72532c38b3067a3c6e1edaa
7
+ data.tar.gz: 0ab6db6b632677f6a4a1ddb2a7ac095b29bfc4892d96551fabb0487ff9a2a26f9fb80a872e60a00be36b7c2d5ff283c268413a1c88d5244e5faccbb73ddf0b23
@@ -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/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");
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.1
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: []