jekyll-theme-simplix 0.2.0 → 0.3.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: 5f1340c7ca473b278862c191616d3c6698d01e27ebf4975e897edde889d2fe29
4
- data.tar.gz: 27381987b07bce2b8ca6c4c7c32304e25fd342c00a282a13b377102851bb93ec
3
+ metadata.gz: 27d32720b4bcccd99d67754350f04fb43f323d4393831ff4a6e3c05c65f7c636
4
+ data.tar.gz: dd953e09de01f180690e7d1d810a72c06ef496a53bc64d1d1049b7fc63a93904
5
5
  SHA512:
6
- metadata.gz: f68a731621f74173218db39ecc9c8bf11d3c9242127a63b1405d173baf13930e684f723dc5e947609bb4a31b21390b959db4fa351ca8ff395b8aad78ae3c3948
7
- data.tar.gz: 06c4fb6355ab5e5415a1974a7ad7bb3cffca06f3ec1b01dc921a544bec1d6caced603dbb8ff3f42b3cda52ab4facf05b28c975306fe18e3371f58bfe16893c1b
6
+ metadata.gz: c73248ddb69f2afc21cd59be0798afe629d235c769a173ac3a5f4af4bf4bcbfdea419697956f56d2bd135d762dc0fc69c23ce362ee47b7c3f40e651c42496143
7
+ data.tar.gz: 37972db94f49a3a633986ef777c2d916fe8d369a252da9edf38c759f8707becc83ca2e7552e3268936093679c049d05aebb86dff3fe0fcf7ee1d20b484480cc1
data/README.md CHANGED
@@ -111,9 +111,6 @@ To check out all supported features of this project, please take a look at [the
111
111
  > debug: true
112
112
  > ```
113
113
 
114
- > [!WARNING]
115
- > This theme is not intended to be an customizable template for beginners.
116
-
117
114
  ## Credits
118
115
 
119
116
  - Fonts: [Google Fonts](https://fonts.google.com) and their corresponding creators
data/_includes/head.html CHANGED
@@ -11,30 +11,34 @@
11
11
 
12
12
  <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
13
13
  <link rel="stylesheet" type="text/css" href="{{ '/assets/style.css' | relative_url }}">
14
- {% if layout.title_bg_light or layout.title_bg_dark %}
15
- {% if page.title_bg_fill or site.title_bg_fill %}
16
- <style type="text/css" media="screen">
17
- body#main__theme-light .main__bg {
18
- 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;
19
- }
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
+ }
20
21
 
21
- body#main__theme-dark .main__bg {
22
- 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;
23
- }
24
- </style>
25
- <div class="main__bg"></div>
26
- {% else %}
27
- <style type="text/css" media="screen">
28
- body#main__theme-light header {
29
- background: {{ page.title_bg_light | default: page.title_bg | default: layout.title_bg_light | default: site.title_bg[page.layout][0] | default: 'white' }} !important;
30
- }
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
+ }
31
32
 
32
- body#main__theme-dark header {
33
- 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' }};
34
- }
35
- </style>
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 %}
36
38
  {% endif %}
37
39
  {% endif %}
38
40
 
39
- <script type="text/javascript" src="https://cdn.jsdelivr.net/combine/{% for src in layout.src %}{{ src }}{% unless forloop.last %},{% endunless %}{% endfor %}"></script>
41
+ {% for src in layout.src %}
42
+ <script type="text/javascript" src="{{ src }}"></script>
43
+ {% endfor %}
40
44
  <script type="text/javascript" src="{{ '/assets/script.js' | relative_url }}" defer></script>
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  src:
3
- - npm/katex/dist/katex.min.js
4
- - npm/katex/dist/contrib/auto-render.min.js
5
- - npm/katex/dist/contrib/mhchem.min.js
6
- - npm/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js
7
- - npm/dompurify/dist/purify.min.js
8
- - npm/marked/lib/marked.umd.min.js
9
- - npm/pako/dist/pako.min.js
10
- - npm/abcjs/dist/abcjs-basic-min.js
3
+ - https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js
4
+ - https://cdn.jsdelivr.net/npm/katex/dist/contrib/auto-render.min.js
5
+ - https://cdn.jsdelivr.net/npm/katex/dist/contrib/mhchem.min.js
6
+ - https://cdn.jsdelivr.net/npm/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js
7
+ - https://cdn.jsdelivr.net/npm/dompurify/dist/purify.min.js
8
+ - https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.min.js
9
+ - https://cdn.jsdelivr.net/npm/pako/dist/pako.min.js
10
+ - https://cdn.jsdelivr.net/npm/abcjs/dist/abcjs-basic-min.js
11
11
  ---
12
12
 
13
13
  <!DOCTYPE html>
data/_sass/abcjs.scss CHANGED
@@ -38,7 +38,7 @@ $track-bg-end: max(50%, min(50% * (1 + $track-bg-height / $track-height), 100%))
38
38
  content: "\e66c";
39
39
  }
40
40
 
41
- animation: abcjs-spin 1s linear infinite;
41
+ animation: spin 1s linear infinite;
42
42
  cursor: default;
43
43
  }
44
44
 
@@ -62,12 +62,16 @@ $track-bg-end: max(50%, min(50% * (1 + $track-bg-height / $track-height), 100%))
62
62
  position: relative;
63
63
  width: $thumb-width;
64
64
  height: $thumb-height;
65
- margin-left: calc($thumb-width / -0.5);
65
+ margin-left: calc(min($thumb-width, $thumb-height) / -2);
66
66
  border-radius: calc(min($thumb-width, $thumb-height) / 2);
67
67
  cursor: pointer;
68
68
  }
69
69
 
70
- @keyframes abcjs-spin {
70
+ .abcjs-midi-clock {
71
+ font-family: monospace;
72
+ }
73
+
74
+ @keyframes spin {
71
75
  from {
72
76
  rotate: 0deg;
73
77
  }
data/assets/script.js CHANGED
@@ -10,7 +10,7 @@
10
10
  e = e.parentElement;
11
11
  if(!e || e.msMatchesSelector(s)) return e;
12
12
  }
13
- };
13
+ }, String.prototype.replaceAll = function(f, r) {return this.split(f).join(r)};
14
14
 
15
15
  // Initialize page theme
16
16
  let th = document.querySelector(".btn__theme-toggle"), th_dark = window.matchMedia("(prefers-color-scheme: dark)"), th_match = th_dark && th_dark.matches, th_val = sessionStorage.getItem("theme"), th_ev = function(v) {
@@ -23,14 +23,18 @@
23
23
  document.body.id = "main__theme-" + (th_val == "dark" || th_val == "light" ? th_val : th_match ? "dark" : "light");
24
24
 
25
25
  // Initialize navigation menu
26
- const nav = document.querySelector("nav"), nav_btn = nav.querySelector("button"), nav_links = nav.querySelector(".nav__links"), nav_ev = function() {if(nav.classList.contains("nav__multi")) nav_btn.innerHTML = nav.classList.toggle("nav__open") ? "\ue4f6 Close" : "\ue2f0 Menu"};
27
- nav.style.display = "flex";
28
- nav_btn.onclick = function() {
29
- nav_ev();
30
- navigator.userAgentData.mobile && history.pushState(null, null, window.location.pathname);
26
+ const nav = document.querySelector("nav"), nav_btn = nav.querySelector("button"), nav_links = nav.querySelector(".nav__links"), nav_ev = function(i) {
27
+ if(nav.classList.contains("nav__multi")) {
28
+ i ? nav.classList.add("nav__open") : nav.classList.remove("nav__open");
29
+ nav_btn.innerHTML = i ? '<i class="ph ph-x"></i> Close' : '<i class="ph ph-list"></i> Menu';
30
+ return i;
31
+ } else return false;
31
32
  };
33
+ nav.style.display = "flex";
34
+ nav_btn.onclick = function() {nav_ev(nav.classList.toggle("nav__open")) ? history.pushState(null, null, window.location.pathname) : history.back()};
35
+ window.onpopstate = function() {nav_ev(false)};
32
36
  nav_links.onclick = function(e) {e.target.tagName != "a" && nav_ev()};
33
- navigator.userAgentData && navigator.userAgentData.mobile ? window.onpopstate = nav_ev : nav_links.addEventListener("wheel", function(e) {
37
+ nav_links.addEventListener("wheel", function(e) {
34
38
  if(window.innerWidth >= 768) {
35
39
  e.preventDefault();
36
40
  nav_links.scrollLeft += e.deltaY;
@@ -90,13 +94,12 @@
90
94
 
91
95
  const code_copy = document.createElement("button"), code_copy_reset = function() {
92
96
  code_copy.className = "";
93
- code_copy.innerText = "\ue1ca";
97
+ code_copy.innerHTML = '<i class="ph ph-copy"></i>';
94
98
  code_copy.title = "Copy";
95
99
  }, code_copy_ev = function(b) {
96
- const c = b ? "code__copy-ok" : "code__copy-bad";
97
- code_copy.classList.toggle(c);
100
+ code_copy.classList.toggle(b ? "code__copy-ok" : "code__copy-bad");
98
101
  code_copy.classList.toggle("code__copy-na");
99
- code_copy.innerText = b ? "\ue182" : "\ue4f6";
102
+ code_copy.innerHTML = '<i class="ph ph-' + (b ? "check" : "x") + '"></i>';
100
103
  code_copy.title = b ? "Copied!" : "Error!";
101
104
  setTimeout(code_copy_reset, 1500);
102
105
  };
@@ -116,25 +119,23 @@
116
119
  e.classList.add("code__preview-container");
117
120
  pre.appendChild(e);
118
121
  return e;
119
- }, str64_encoder = new TextEncoder(), str64 = function(s) {return btoa(String.fromCharCode.apply(null, pako.deflate(str64_encoder.encode(s), {level: 9}))).replace(new RegExp("\\+", "g"), "-").replace(new RegExp("\\/", "g"), "_")}, min_opts = {
120
- minifyCSS: true,
121
- minifyJS: true,
122
- removeComments: true,
123
- collapseWhitespace: true,
124
- conservativeCollapse: false,
125
- preserveLineBreaks: false
126
- };
122
+ }, str64 = function(s) {return btoa(String.fromCharCode.apply(null, pako.deflate(new TextEncoder().encode(s), {level: 9}))).replaceAll("+", "-").replaceAll("/", "_")};
127
123
  switch(code_lang) {
128
124
  case "html":
129
125
  const f = document.createElement("iframe");
130
- HTMLMinifier.minify(code, min_opts).then(function(t) {f.srcdoc = t});
126
+ f.srcdoc = code;
131
127
  preview_init(f).onload = function() {this.contentDocument.querySelectorAll("a").forEach(function(a) {a.target = "_blank", a.rel = "noopener noreferrer"})};
132
128
  break;
133
129
 
134
130
  case "md":
135
131
  case "markdown":
136
132
  const d = document.createElement("div");
137
- HTMLMinifier.minify(DOMPurify.sanitize(marked.parse(code)), min_opts).then(function(t) {d.innerHTML = t});
133
+ HTMLMinifier.minify(DOMPurify.sanitize(marked.parse(code)), {
134
+ removeComments: true,
135
+ collapseWhitespace: true,
136
+ conservativeCollapse: true,
137
+ preserveLineBreaks: false
138
+ }).then(function(t) {d.innerHTML = t});
138
139
  d.querySelectorAll("a").forEach(link);
139
140
  preview_init(d);
140
141
  break;
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-simplix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lithier94675
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-04-25 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: jekyll
@@ -37,11 +38,12 @@ dependencies:
37
38
  - - "~>"
38
39
  - !ruby/object:Gem::Version
39
40
  version: '1.9'
41
+ description:
42
+ email:
40
43
  executables: []
41
44
  extensions: []
42
45
  extra_rdoc_files: []
43
46
  files:
44
- - 404.md
45
47
  - LICENSE
46
48
  - README.md
47
49
  - _includes/footer.html
@@ -60,7 +62,6 @@ files:
60
62
  - _sass/theme.scss
61
63
  - assets/script.js
62
64
  - assets/style.scss
63
- - posts.html
64
65
  homepage: https://lithier94675.github.io/jekyll-theme-simplix
65
66
  licenses:
66
67
  - CC0-1.0
@@ -68,6 +69,7 @@ metadata:
68
69
  source_code_uri: https://github.com/lithier94675/jekyll-theme-simplix
69
70
  bug_tracker_uri: https://github.com/lithier94675/jekyll-theme-simplix/issues
70
71
  homepage_uri: https://lithier94675.github.io/jekyll-theme-simplix
72
+ post_install_message:
71
73
  rdoc_options: []
72
74
  require_paths:
73
75
  - lib
@@ -82,7 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
84
  - !ruby/object:Gem::Version
83
85
  version: '0'
84
86
  requirements: []
85
- rubygems_version: 4.0.9
87
+ rubygems_version: 3.5.22
88
+ signing_key:
86
89
  specification_version: 4
87
90
  summary: A simple Jekyll theme made with gradient colors
88
91
  test_files: []
data/404.md DELETED
@@ -1,9 +0,0 @@
1
- ---
2
- layout: post
3
- title: 404 - Not found!!
4
- title_bg_fill: true
5
- ---
6
-
7
- The requested page is not found on this website.
8
-
9
- [Go back to home page]({{ '/' | relative_url }})
data/posts.html DELETED
@@ -1,23 +0,0 @@
1
- ---
2
- layout: page
3
- title: Posts listing
4
- permalink: /posts
5
- ---
6
-
7
- {% if site.posts.size > 0 %}
8
- <h3>Individual posts</h3>
9
- <p>Some posts listed here may not belong to a specific tag or category.</p>
10
- {% include list-post.html posts=site.posts %}
11
- {% else %}
12
- <p>There aren't any posts on this website.</p>
13
- {% endif %}
14
-
15
- {% if site.tags.size > 0 and site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'tags' %}
16
- <h3>Tags</h3>
17
- {% include list-group.html dir='tag' group=site.tags icon='tag-simple' %}
18
- {% endif %}
19
-
20
- {% if site.categories.size > 0 and site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'categories' %}
21
- <h3>Categories</h3>
22
- {% include list-group.html dir='category' group=site.categories icon='folder-simple' %}
23
- {% endif %}