jekyll-theme-simplix 0.2.0 → 0.3.0

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: 27db881f44f7469cb213680c98a59e09ac7f1d178e272d9eb8fd3b9bed096274
4
+ data.tar.gz: 249d985eab9df442e81e16805f2c423025d82b6134cd3365c6ee6d7bb93d8504
5
5
  SHA512:
6
- metadata.gz: f68a731621f74173218db39ecc9c8bf11d3c9242127a63b1405d173baf13930e684f723dc5e947609bb4a31b21390b959db4fa351ca8ff395b8aad78ae3c3948
7
- data.tar.gz: 06c4fb6355ab5e5415a1974a7ad7bb3cffca06f3ec1b01dc921a544bec1d6caced603dbb8ff3f42b3cda52ab4facf05b28c975306fe18e3371f58bfe16893c1b
6
+ metadata.gz: 6214c3c9b61d4be170387e18409d7327db629a5d3feedb7be7ebd663a54b0feae168884142c0820e026a07c4608575aecdd2201f66680d81b3bc132559d07c8e
7
+ data.tar.gz: db78aff388b7fa8345cc316dab0cc265d6a1355d3101f461df8852e335dc0bc9df7542e4f2f80a5cb22bc7c0c01e46591cea7437513c2e5506327a8b71b5e0f4
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) {
@@ -90,13 +90,12 @@
90
90
 
91
91
  const code_copy = document.createElement("button"), code_copy_reset = function() {
92
92
  code_copy.className = "";
93
- code_copy.innerText = "\ue1ca";
93
+ code_copy.innerHTML = '<i class="ph ph-copy"></i>';
94
94
  code_copy.title = "Copy";
95
95
  }, code_copy_ev = function(b) {
96
- const c = b ? "code__copy-ok" : "code__copy-bad";
97
- code_copy.classList.toggle(c);
96
+ code_copy.classList.toggle(b ? "code__copy-ok" : "code__copy-bad");
98
97
  code_copy.classList.toggle("code__copy-na");
99
- code_copy.innerText = b ? "\ue182" : "\ue4f6";
98
+ code_copy.innerHTML = '<i class="ph ph-' + (b ? "check" : "x") + '"></i>';
100
99
  code_copy.title = b ? "Copied!" : "Error!";
101
100
  setTimeout(code_copy_reset, 1500);
102
101
  };
@@ -116,25 +115,23 @@
116
115
  e.classList.add("code__preview-container");
117
116
  pre.appendChild(e);
118
117
  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
- };
118
+ }, str64 = function(s) {return btoa(String.fromCharCode.apply(null, pako.deflate(new TextEncoder().encode(s), {level: 9}))).replaceAll("+", "-").replaceAll("/", "_")};
127
119
  switch(code_lang) {
128
120
  case "html":
129
121
  const f = document.createElement("iframe");
130
- HTMLMinifier.minify(code, min_opts).then(function(t) {f.srcdoc = t});
122
+ f.srcdoc = code;
131
123
  preview_init(f).onload = function() {this.contentDocument.querySelectorAll("a").forEach(function(a) {a.target = "_blank", a.rel = "noopener noreferrer"})};
132
124
  break;
133
125
 
134
126
  case "md":
135
127
  case "markdown":
136
128
  const d = document.createElement("div");
137
- HTMLMinifier.minify(DOMPurify.sanitize(marked.parse(code)), min_opts).then(function(t) {d.innerHTML = t});
129
+ HTMLMinifier.minify(DOMPurify.sanitize(marked.parse(code)), {
130
+ removeComments: true,
131
+ collapseWhitespace: true,
132
+ conservativeCollapse: true,
133
+ preserveLineBreaks: false
134
+ }).then(function(t) {d.innerHTML = t});
138
135
  d.querySelectorAll("a").forEach(link);
139
136
  preview_init(d);
140
137
  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.0
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 %}