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 +4 -4
- data/README.md +0 -3
- data/_includes/head.html +25 -21
- data/_layouts/default.html +8 -8
- data/_sass/abcjs.scss +7 -3
- data/assets/script.js +12 -15
- metadata +8 -5
- data/404.md +0 -9
- data/posts.html +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27db881f44f7469cb213680c98a59e09ac7f1d178e272d9eb8fd3b9bed096274
|
|
4
|
+
data.tar.gz: 249d985eab9df442e81e16805f2c423025d82b6134cd3365c6ee6d7bb93d8504
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
15
|
-
{% if
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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>
|
data/_layouts/default.html
CHANGED
|
@@ -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:
|
|
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 / -
|
|
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
|
-
|
|
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.
|
|
93
|
+
code_copy.innerHTML = '<i class="ph ph-copy"></i>';
|
|
94
94
|
code_copy.title = "Copy";
|
|
95
95
|
}, code_copy_ev = function(b) {
|
|
96
|
-
|
|
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.
|
|
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
|
-
},
|
|
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
|
-
|
|
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)),
|
|
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.
|
|
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:
|
|
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:
|
|
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
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 %}
|