jekyll-theme-simplix 0.3.3 → 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: edf5f2d7fb1eeb2625fd0d589c4e80e423ca85dcecadb268c577c7f32959a081
4
- data.tar.gz: 26ad256d8cdcb17f87af5fa120ef4605df04dc42b3b918dd912164c2ff9d10de
3
+ metadata.gz: f9cfb55fb3799b0f3d86d13a019de575f8e043e3b6ec29cd41763f2e1f91769c
4
+ data.tar.gz: ac9d85c0d8c19ed910859532c9482e7c277f04d9908f065d07794055db49905c
5
5
  SHA512:
6
- metadata.gz: 642323e6525f8747253952a33f45e7eac81e2f97f36c39bbf8c94d72bb6287386e072170bb3c8befaafcdd55b76b525fddb7535b703984e7b3b555a01aab3a7f
7
- data.tar.gz: 491922778eb64cab1ea3020dddda44c6978329ab21b5b2e9ff75c0c44c0f68207aaa3063051d2d6d930a4be638f8005f591e880f846fd137cb38b746a804c407
6
+ metadata.gz: ea6dfbd79098c0b400e2903ead8835e10b7bd411c20ccd230e74b8332e0425793560ab993e1e775bcbaa69a68032c6a349240499d72532c38b3067a3c6e1edaa
7
+ data.tar.gz: 0ab6db6b632677f6a4a1ddb2a7ac095b29bfc4892d96551fabb0487ff9a2a26f9fb80a872e60a00be36b7c2d5ff283c268413a1c88d5244e5faccbb73ddf0b23
@@ -1 +1,4 @@
1
- <footer><i class="ph ph-paint-brush"></i>&nbsp;Theme by <a href="https://github.com/lithier94675">lithier94675</a><br>View on <a href="https://github.com/lithier94675/jekyll-theme-simplix">GitHub</a></footer>
1
+ <footer>
2
+ <i class="ph ph-paint-brush"></i>
3
+ <span>&nbsp;Theme by <a href="https://github.com/lithier94675">lithier94675</a><br>View on <a href="https://github.com/lithier94675/jekyll-theme-simplix">GitHub</a></span>
4
+ </footer>
@@ -1,8 +1,17 @@
1
1
  <ul>
2
2
  {% for group in include.group %}
3
+ {% case include.dir %}
4
+ {% when 'tag' %}
5
+ {% assign link = '/tag/:name/' %}
6
+ {% when 'category' %}
7
+ {% assign link = '/category/:name/' %}
8
+ {% else %}
9
+ {% break %}
10
+ {% endcase %}
11
+ {% assign name = group[0] | slugify: 'ascii' %}
3
12
  <li>
4
13
  <i class="ph ph-{{ include.icon | default: 'book' }}"></i>
5
- <a href="{{ include.dir | prepend: '/' | append: '/' | relative_url }}{{ group[0] | slugify: 'ascii' }}">{{ group[0] }}</a>&nbsp;<span>{{ group[1].size }} post{% if group[1].size > 1 %}s{% endif %}</span></p>
14
+ <a href="{{ site['jekyll-archives'].permalinks[include.dir] | default: link | replace: ':name', name | relative_url }}">{{ group[0] }}</a>&nbsp;<span>{{ group[1].size }} post{% if group[1].size > 1 %}s{% endif %}</span></p>
6
15
  </li>
7
16
  {% endfor %}
8
17
  </ul>
@@ -29,7 +29,7 @@
29
29
  <i class="ph ph-file"></i>
30
30
  <div>
31
31
  <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
32
- <p><span>{{ post.date | date_to_string }} </span>{{ post.content | strip_html | truncate: 67 }}</p>
32
+ <p><span>{{ post.date | date_to_string }}</span> {{ post.content | strip_html | truncate: 67 }}</p>
33
33
  </div>
34
34
  </li>
35
35
  {% endfor %}
@@ -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 %}
@@ -14,11 +14,54 @@ src:
14
14
  <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}">
15
15
 
16
16
  <head>
17
- {% include head.html %}
17
+ <meta charset="utf-8">
18
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
19
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
20
+ <meta name="viewport" content="width=device-width, initial-scale=1">
21
+ <meta name="IE_RM_OFF" content="true">
22
+
23
+ <title>{{ page.title | default: site.title | default: 'Untitled' }}</title>
24
+ <link rel="icon" href="{{ page.icon | default: site.icon | default: '/favicon.ico' | relative_url }}">
25
+ {% assign desc = page.description | default: site.description %}
26
+ {% if page.path != '404.html' and desc %}<meta name="description" content="{{ desc }}">{% endif %}
27
+
28
+ <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
29
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/style.css' | relative_url }}">
30
+ {% if page.layout == 'home' or page.layout == 'post' %}
31
+ {% if layout.title_bg_light or layout.title_bg_dark %}
32
+ {% if page.title_bg_fill or site.title_bg_fill %}
33
+ <style type="text/css" media="screen">
34
+ body#main__theme-light .main__bg {
35
+ background: {{ page.title_bg_light | default: page.title_bg | default: layout.title_bg_light | default: site.title_bg[page.layout][0] | default: 'white' }} center fixed !important;
36
+ }
37
+
38
+ body#main__theme-dark .main__bg {
39
+ background: {{ page.title_bg_dark | default: page.title_bg | default: layout.title_bg_dark | default: site.title_bg[page.layout][1] | default: site.title_bg[page.layout][0] | default: 'black' }} center fixed;
40
+ }
41
+ </style>
42
+ <div class="main__bg"></div>
43
+ {% else %}
44
+ <style type="text/css" media="screen">
45
+ body#main__theme-light header {
46
+ background: {{ page.title_bg_light | default: page.title_bg | default: layout.title_bg_light | default: site.title_bg[page.layout][0] | default: 'white' }} !important;
47
+ }
48
+
49
+ body#main__theme-dark header {
50
+ background: {{ page.title_bg_dark | default: page.title_bg | default: layout.title_bg_dark | default: site.title_bg[page.layout][1] | default: site.title_bg[page.layout][0] | default: 'black' }};
51
+ }
52
+ </style>
53
+ {% endif %}
54
+ {% endif %}
55
+ {% endif %}
56
+
57
+ {% for src in layout.src %}
58
+ <script type="text/javascript" src="{{ src }}"></script>
59
+ {% endfor %}
18
60
  {% if jekyll.environment == 'development' or site.debug %}
19
61
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/eruda"></script>
20
62
  <script type="text/javascript">!document.documentMode && eruda.init()</script>
21
63
  {% endif %}
64
+ <script type="text/javascript" src="{{ '/assets/script.js' | relative_url }}" defer></script>
22
65
  </head>
23
66
 
24
67
  {% assign len = page.content | strip | size %}
data/_layouts/page.html CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <header class="page__header{% unless page.title and page.description %} page__header-blank{% endunless %}">
5
+ <header class="page__header{% unless page.title or page.description %} page__header-blank{% endunless %}">
6
6
  <h1>{{ page.title }}</h1>
7
7
  <p>{{ page.description }}</p>
8
8
  </header>
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/abcjs.scss CHANGED
@@ -68,7 +68,7 @@ $track-bg-end: max(50%, min(50% * (1 + $track-bg-height / $track-height), 100%))
68
68
  }
69
69
 
70
70
  .abcjs-midi-clock {
71
- font-family: monospace;
71
+ font-family: "Source Code Pro", "Roboto Mono", Consolas, "Courier New", Courier, monospace;
72
72
  }
73
73
 
74
74
  @keyframes spin {
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,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-simplix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lithier94675
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-05-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jekyll
@@ -38,8 +37,6 @@ dependencies:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
39
  version: '1.9'
41
- description:
42
- email:
43
40
  executables: []
44
41
  extensions: []
45
42
  extra_rdoc_files: []
@@ -47,7 +44,6 @@ files:
47
44
  - LICENSE
48
45
  - README.md
49
46
  - _includes/footer.html
50
- - _includes/head.html
51
47
  - _includes/list-group.html
52
48
  - _includes/list-post.html
53
49
  - _includes/ui.html
@@ -69,7 +65,6 @@ metadata:
69
65
  source_code_uri: https://github.com/lithier94675/jekyll-theme-simplix
70
66
  bug_tracker_uri: https://github.com/lithier94675/jekyll-theme-simplix/issues
71
67
  homepage_uri: https://lithier94675.github.io/jekyll-theme-simplix
72
- post_install_message:
73
68
  rdoc_options: []
74
69
  require_paths:
75
70
  - lib
@@ -84,8 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
79
  - !ruby/object:Gem::Version
85
80
  version: '0'
86
81
  requirements: []
87
- rubygems_version: 3.5.22
88
- signing_key:
82
+ rubygems_version: 4.0.10
89
83
  specification_version: 4
90
84
  summary: A simple Jekyll theme made with gradient colors
91
85
  test_files: []
data/_includes/head.html DELETED
@@ -1,44 +0,0 @@
1
- <meta charset="utf-8">
2
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <meta name="IE_RM_OFF" content="true">
6
-
7
- <title>{{ page.title | default: site.title | default: 'Untitled' }}</title>
8
- <link rel="icon" href="{{ page.icon | default: site.favicon | default: '/favicon.ico' | relative_url }}">
9
- {% assign desc = page.description | default: site.description %}
10
- {% if page.path != '404.html' and desc %}<meta name="description" content="{{ desc }}">{% endif %}
11
-
12
- <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
13
- <link rel="stylesheet" type="text/css" href="{{ '/assets/style.css' | relative_url }}">
14
- {% if page.layout == 'home' or page.layout == 'post' %}
15
- {% if layout.title_bg_light or layout.title_bg_dark %}
16
- {% if page.title_bg_fill or site.title_bg_fill %}
17
- <style type="text/css" media="screen">
18
- body#main__theme-light .main__bg {
19
- background: {{ page.title_bg_light | default: page.title_bg | default: layout.title_bg_light | default: site.title_bg[page.layout][0] | default: 'white' }} center fixed !important;
20
- }
21
-
22
- body#main__theme-dark .main__bg {
23
- background: {{ page.title_bg_dark | default: page.title_bg | default: layout.title_bg_dark | default: site.title_bg[page.layout][1] | default: site.title_bg[page.layout][0] | default: 'black' }} center fixed;
24
- }
25
- </style>
26
- <div class="main__bg"></div>
27
- {% else %}
28
- <style type="text/css" media="screen">
29
- body#main__theme-light header {
30
- background: {{ page.title_bg_light | default: page.title_bg | default: layout.title_bg_light | default: site.title_bg[page.layout][0] | default: 'white' }} !important;
31
- }
32
-
33
- body#main__theme-dark header {
34
- background: {{ page.title_bg_dark | default: page.title_bg | default: layout.title_bg_dark | default: site.title_bg[page.layout][1] | default: site.title_bg[page.layout][0] | default: 'black' }};
35
- }
36
- </style>
37
- {% endif %}
38
- {% endif %}
39
- {% endif %}
40
-
41
- {% for src in layout.src %}
42
- <script type="text/javascript" src="{{ src }}"></script>
43
- {% endfor %}
44
- <script type="text/javascript" src="{{ '/assets/script.js' | relative_url }}" defer></script>