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 +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 +22 -21
- 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: 27d32720b4bcccd99d67754350f04fb43f323d4393831ff4a6e3c05c65f7c636
|
|
4
|
+
data.tar.gz: dd953e09de01f180690e7d1d810a72c06ef496a53bc64d1d1049b7fc63a93904
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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) {
|
|
@@ -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() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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.
|
|
97
|
+
code_copy.innerHTML = '<i class="ph ph-copy"></i>';
|
|
94
98
|
code_copy.title = "Copy";
|
|
95
99
|
}, code_copy_ev = function(b) {
|
|
96
|
-
|
|
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.
|
|
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
|
-
},
|
|
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
|
-
|
|
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)),
|
|
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.
|
|
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:
|
|
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 %}
|