jekyll-theme-satellite 1.1.0 → 1.1.2
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 +8 -8
- data/_includes/navigation.html +45 -30
- data/_includes/pagination.html +1 -1
- data/_includes/post.html +2 -2
- data/_includes/search_event.html +0 -173
- data/_includes/sidebar.html +0 -7
- data/_sass/darkmode.scss +1 -1
- data/_sass/navigation.scss +2 -2
- data/_sass/post.scss +31 -22
- data/_sass/search.scss +1 -1
- data/assets/img/favicon.webp +0 -0
- data/assets/js/post.js +1 -7
- metadata +38 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a500e53a72b35809de612f591c923834f7316197a310d89a005b25b4195ad96e
|
|
4
|
+
data.tar.gz: 6c0fa7b0991fcdcd1a426eef7b2c9426d82b4b467872e74a1a44b39d11bdee1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3078471481814c98235d2ecb7800ddae35837d5555ec49738d89c310e163807ae99dafd5a0de534e1c3b5e83d829da89c091893e1678a0732c0b9b01761710cb
|
|
7
|
+
data.tar.gz: 39a32049e2333b2d15d75cac2a8061f27bf7c81313a52bed1e4e325038b8318a925742ddf1babf1a1808d3a82634408ab07e10aae8c3c195cbfb918368623ae0
|
data/README.md
CHANGED
|
@@ -37,16 +37,16 @@ An emotional and adorable blog theme powered by ***Jekyll***. Live demo is avail
|
|
|
37
37
|
|
|
38
38
|
## Installation
|
|
39
39
|
|
|
40
|
-
There are two
|
|
40
|
+
There are two ways to setup this theme:
|
|
41
41
|
|
|
42
42
|
### Method 1: Build from source (Recommended)
|
|
43
43
|
Fork this repository or download the [source](https://github.com/byanko55/jekyll-theme-satellite/releases) as a zip.
|
|
44
44
|
|
|
45
|
-
If you use as destination a repository named USERNAME.github.io then your url will be https://USERNAME.github.io/.
|
|
45
|
+
If you use as destination a repository named USERNAME.github.io, then your url will be https://USERNAME.github.io/.
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
### Method 2: Utilize Gem package
|
|
49
|
-
Create a clean site directory (Follow the **Instruction 1~4** described
|
|
49
|
+
Create a clean site directory (Follow the **Instruction 1~4** described [here](https://jekyllrb.com/docs/)).
|
|
50
50
|
|
|
51
51
|
The following materials are redundant, so remove them.
|
|
52
52
|
* index.markdown
|
|
@@ -59,7 +59,7 @@ Then, add this line to your Jekyll site's `Gemfile`:
|
|
|
59
59
|
gem "jekyll-theme-satellite"
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
You need to replace the initial `_config.yml` file with the [prepared one](https://github.com/byanko55/jekyll-theme-satellite/docs/_config.yml).
|
|
62
|
+
You need to replace the initial `_config.yml` file with the [prepared one](https://github.com/byanko55/jekyll-theme-satellite/blob/master/docs/_config.yml).
|
|
63
63
|
|
|
64
64
|
### Modify your site setting
|
|
65
65
|
|
|
@@ -102,12 +102,12 @@ You can find useful manuals for customizing your site from the below table:
|
|
|
102
102
|
|
|
103
103
|
|||
|
|
104
104
|
|---|---|
|
|
105
|
-
|Posting guidelines|[link](https://github.com/byanko55/jekyll-theme-satellite/docs/Posting%
|
|
106
|
-
|Enabling ***comment system***|[link](https://github.com/byanko55/jekyll-theme-satellite/docs/Comment%
|
|
107
|
-
|Enabling ***Visitor counter***|[link](https://github.com/byanko55/jekyll-theme-satellite/docs/Visitor%
|
|
105
|
+
|Posting guidelines|[link](https://github.com/byanko55/jekyll-theme-satellite/blob/master/docs/Posting%20Guide.md)|
|
|
106
|
+
|Enabling ***comment system***|[link](https://github.com/byanko55/jekyll-theme-satellite/blob/master/docs/Comment%20System.md)|
|
|
107
|
+
|Enabling ***Visitor counter***|[link](https://github.com/byanko55/jekyll-theme-satellite/blob/master/docs/Visitor%20Counter.md)|
|
|
108
108
|
|
|
109
109
|
## Contribution
|
|
110
|
-
If you would like to report a bug
|
|
110
|
+
If you would like to report a bug or request a new feature, please open [an issue](https://github.com/byanko55/jekyll-theme-satellite/issues) We are open to any kind of feedback or collaboration.
|
|
111
111
|
|
|
112
112
|
## License
|
|
113
113
|
© 2024 *Yankos*. This theme is available as open source under the terms of the [MIT License](https://opensource.org/license/mit/).
|
data/_includes/navigation.html
CHANGED
|
@@ -1,41 +1,55 @@
|
|
|
1
1
|
<nav id="navigation">
|
|
2
|
-
{%- assign nav_pages = site.pages
|
|
3
|
-
| where_exp: "item", "item.title != nil"
|
|
4
|
-
| where_exp: "item", "item.bookmark == true"
|
|
5
|
-
| sort: 'title' -%}
|
|
6
|
-
|
|
7
2
|
{% assign first_level_pages = "" | split, "" %}
|
|
8
3
|
{% assign second_level_pages = "" | split, "" %}
|
|
9
4
|
{% assign third_level_pages = "" | split, "" %}
|
|
10
5
|
|
|
11
|
-
{% for p in
|
|
6
|
+
{% for p in site.pages %}
|
|
12
7
|
{%- assign p_tree = p.url | remove_first: "/" | split: "/" -%}
|
|
8
|
+
{%- assign p_name = p_tree | last -%}
|
|
13
9
|
{%- assign p_level = p_tree | size -%}
|
|
14
10
|
|
|
15
|
-
{% if
|
|
16
|
-
{%
|
|
17
|
-
{%
|
|
18
|
-
|
|
19
|
-
{%
|
|
20
|
-
{%
|
|
11
|
+
{% if p.bookmark == nil and p_name != 'index.html' %}
|
|
12
|
+
{% continue %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
15
|
+
{% if p.bookmark %}
|
|
16
|
+
{% if p_level == 1 %}
|
|
17
|
+
{% assign first_level_pages = first_level_pages | push:p %}
|
|
18
|
+
{% elsif p_level == 2 %}
|
|
19
|
+
{% assign second_level_pages = second_level_pages | push:p %}
|
|
20
|
+
{% elsif p_level == 3 %}
|
|
21
|
+
{% assign third_level_pages = third_level_pages | push:p %}
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% else %}
|
|
24
|
+
{% if p_level <= 2 %}
|
|
25
|
+
{% assign first_level_pages = first_level_pages | push:p %}
|
|
26
|
+
{% elsif p_level == 3 %}
|
|
27
|
+
{% assign second_level_pages = second_level_pages | push:p %}
|
|
28
|
+
{% elsif p_level == 4 %}
|
|
29
|
+
{% assign third_level_pages = third_level_pages | push:p %}
|
|
30
|
+
{% endif %}
|
|
21
31
|
{% endif %}
|
|
22
32
|
{% endfor %}
|
|
23
33
|
|
|
34
|
+
{% assign first_level_pages = first_level_pages | sort: 'url' %}
|
|
35
|
+
{% assign second_level_pages = second_level_pages | sort: 'url' %}
|
|
36
|
+
{% assign third_level_pages = third_level_pages | sort: 'url' %}
|
|
37
|
+
|
|
24
38
|
<ul class="nav-list">
|
|
25
39
|
{%- for node in first_level_pages -%}
|
|
26
40
|
{%- assign node_url = node.url | remove: 'index.html' -%}
|
|
41
|
+
{%- assign node_title = node.path | remove: 'index.md' | split: "/" | last | remove: '.md' | replace: "_pages", "Home" -%}
|
|
27
42
|
{%- assign children_list = second_level_pages
|
|
28
|
-
| where_exp: "item", "item.url contains node_url"
|
|
29
|
-
| sort: 'title' -%}
|
|
43
|
+
| where_exp: "item", "item.url contains node_url" -%}
|
|
30
44
|
{%- assign num_children = children_list | size -%}
|
|
31
|
-
<li id="nav-first" aria-label="{{
|
|
45
|
+
<li id="nav-first" aria-label="{{ node_title }}">
|
|
32
46
|
<div class="nav-item">
|
|
33
47
|
<a href="{{ node_url }}" class="nav-list-link nav-lh">
|
|
34
48
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8L197.8 128h95.1l11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8L357.8 128H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H347.1L325.8 320H384c17.7 0 32 14.3 32 32s-14.3 32-32 32H315.1l-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7H155.1l-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8L90.2 384H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h68.9l21.3-128H64c-17.7 0-32-14.3-32-32s14.3-32 32-32h68.9l11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zM187.1 192L165.8 320h95.1l21.3-128H187.1z"/></svg>
|
|
35
|
-
<span>{{
|
|
49
|
+
<span>{{ node_title }}</span>
|
|
36
50
|
</a>
|
|
37
51
|
{%- if num_children > 0 and node_url != "/" -%}
|
|
38
|
-
<button class="nav-list-expander" aria-label="toggle items in {{
|
|
52
|
+
<button class="nav-list-expander" aria-label="toggle items in {{ node_title }} category" aria-pressed="false">
|
|
39
53
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"/></svg>
|
|
40
54
|
</button>
|
|
41
55
|
{%- endif -%}
|
|
@@ -44,18 +58,18 @@
|
|
|
44
58
|
<ul class="nav-list">
|
|
45
59
|
{%- for child in children_list -%}
|
|
46
60
|
{%- assign child_url = child.url | remove: 'index.html' -%}
|
|
61
|
+
{%- assign child_title = child.path | remove: 'index.md' | split: "/" | last | remove: '.md' -%}
|
|
47
62
|
{%- assign grand_children_list = third_level_pages
|
|
48
|
-
| where_exp: "item", "item.url contains child_url"
|
|
49
|
-
| sort: 'title' -%}
|
|
63
|
+
| where_exp: "item", "item.url contains child_url" -%}
|
|
50
64
|
{%- assign num_grand_children = grand_children_list | size -%}
|
|
51
|
-
<li id="nav-second" aria-label="{{
|
|
65
|
+
<li id="nav-second" aria-label="{{ child_title }}">
|
|
52
66
|
<div class="nav-item">
|
|
53
67
|
<a href="{{ child_url }}" class="nav-list-link nav-sh">
|
|
54
68
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"/></svg>
|
|
55
|
-
<span>{{
|
|
69
|
+
<span>{{ child_title }}</span>
|
|
56
70
|
</a>
|
|
57
71
|
{%- if num_grand_children > 0 -%}
|
|
58
|
-
<button class="nav-list-expander" aria-label="toggle items in {{
|
|
72
|
+
<button class="nav-list-expander" aria-label="toggle items in {{ child_title }} category" aria-pressed="false">
|
|
59
73
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"/></svg>
|
|
60
74
|
</button>
|
|
61
75
|
{%- endif -%}
|
|
@@ -63,14 +77,15 @@
|
|
|
63
77
|
{%- if num_grand_children > 0 -%}
|
|
64
78
|
<ul class="nav-list">
|
|
65
79
|
{%- for grand_child in grand_children_list -%}
|
|
66
|
-
|
|
67
|
-
<
|
|
68
|
-
<
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
{%- assign grand_child_title = grand_child.path | remove: 'index.md' | split: "/" | last | remove: '.md' -%}
|
|
81
|
+
<li id="nav-third" aria-label="{{ grand_child_title }}">
|
|
82
|
+
<div class="nav-item">
|
|
83
|
+
<a href="{{ grand_child.url | relative_url }}" class="nav-list-link nav-sh">
|
|
84
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"/></svg>
|
|
85
|
+
<span>{{ grand_child_title }}</span>
|
|
86
|
+
</a>
|
|
87
|
+
</div>
|
|
88
|
+
</li>
|
|
74
89
|
{%- endfor -%}
|
|
75
90
|
</ul>
|
|
76
91
|
{%- endif -%}
|
data/_includes/pagination.html
CHANGED
data/_includes/post.html
CHANGED
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
|
-
<div class="
|
|
44
|
+
<div class="tag-box">
|
|
45
45
|
{%- for page_tag in page.tags -%}
|
|
46
|
-
<span class="tag
|
|
46
|
+
<span class="tag theme-{{ forloop.index0 | modulo: 3 }}" contentID="{{ page_tag }}">
|
|
47
47
|
{{ page_tag }}
|
|
48
48
|
</span>
|
|
49
49
|
{%- endfor -%}
|
data/_includes/search_event.html
CHANGED
|
@@ -41,177 +41,4 @@
|
|
|
41
41
|
{% if page_type == "post" %}
|
|
42
42
|
searchRelated(posts);
|
|
43
43
|
{% endif %}
|
|
44
|
-
|
|
45
|
-
/*
|
|
46
|
-
$('#search-input').on('keyup', function () {
|
|
47
|
-
var keyword = this.value.toLowerCase();
|
|
48
|
-
var searchResult = [];
|
|
49
|
-
|
|
50
|
-
if (keyword.length > 0) {
|
|
51
|
-
$('#search-result').show();
|
|
52
|
-
$('#btn-clear').show();
|
|
53
|
-
} else {
|
|
54
|
-
$('#search-result').hide();
|
|
55
|
-
$('#btn-clear').hide();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
$('.result-item').remove();
|
|
59
|
-
|
|
60
|
-
for (var i = 0; i < posts.length; i++) {
|
|
61
|
-
var post = posts[i];
|
|
62
|
-
|
|
63
|
-
if (post.title === 'Home' && post.type == 'category') continue;
|
|
64
|
-
|
|
65
|
-
if (post.title.toLowerCase().indexOf(keyword) >= 0
|
|
66
|
-
|| post.path.toLowerCase().indexOf(keyword) >= 0
|
|
67
|
-
|| post.tags.toLowerCase().indexOf(keyword) >= 0){
|
|
68
|
-
searchResult.push(post);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (searchResult.length === 0) {
|
|
73
|
-
$('#search-result').append(
|
|
74
|
-
'<li class="result-item"><span class="description">There is no search result.</span></li>'
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
searchResult.sort(function (a, b) {
|
|
81
|
-
if (a.type == 'category') return 1;
|
|
82
|
-
|
|
83
|
-
return -1;
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
for (var i = 0; i < searchResult.length; i++) {
|
|
87
|
-
var highlighted_path = highlightKeyword(searchResult[i].path, keyword);
|
|
88
|
-
|
|
89
|
-
if (highlighted_path === '')
|
|
90
|
-
highlighted_path = "Home";
|
|
91
|
-
|
|
92
|
-
if (searchResult[i].type === 'post'){
|
|
93
|
-
var highlighted_title = highlightKeyword(searchResult[i].title, keyword);
|
|
94
|
-
var highlighted_tags = highlightKeyword(searchResult[i].tags, keyword);
|
|
95
|
-
|
|
96
|
-
if (highlighted_tags === '')
|
|
97
|
-
highlighted_tags = "none";
|
|
98
|
-
|
|
99
|
-
$('#search-result').append(
|
|
100
|
-
'<li class="result-item"><a href="' +
|
|
101
|
-
searchResult[i].url +
|
|
102
|
-
'"><table><thead><tr><th><svg class="ico-book"></svg></th><th>' + highlighted_title +
|
|
103
|
-
'</th></tr></thead><tbody><tr><td><svg class="ico-folder"></svg></td><td>' + highlighted_path +
|
|
104
|
-
'</td></tr><tr><td><svg class="ico-tags"></svg></td><td>' + highlighted_tags +
|
|
105
|
-
'</td></tr><tr><td><svg class="ico-calendar"></svg></td><td>' + searchResult[i].date +
|
|
106
|
-
'</td></tr></tbody></table></a></li>'
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
$('#search-result').append(
|
|
111
|
-
'<li class="result-item"><a href="' +
|
|
112
|
-
searchResult[i].url +
|
|
113
|
-
'"><table><thead><tr><th><svg class="ico-folder"></svg></th><th>' + highlighted_path +
|
|
114
|
-
'</th></tr></thead></table></a></li>'
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
function highlightKeyword(txt, keyword) {
|
|
121
|
-
var index = txt.toLowerCase().lastIndexOf(keyword);
|
|
122
|
-
|
|
123
|
-
if (index >= 0) {
|
|
124
|
-
out = txt.substring(0, index) +
|
|
125
|
-
"<span class='highlight'>" +
|
|
126
|
-
txt.substring(index, index+keyword.length) +
|
|
127
|
-
"</span>" +
|
|
128
|
-
txt.substring(index + keyword.length);
|
|
129
|
-
return out;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return txt;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
{% if page_type == "post" %}
|
|
136
|
-
displayRelatedPosts(posts);
|
|
137
|
-
{% endif %}
|
|
138
|
-
|
|
139
|
-
function displayRelatedPosts(pages){
|
|
140
|
-
const refBox = document.getElementById('related-box');
|
|
141
|
-
|
|
142
|
-
if (!refBox) return;
|
|
143
|
-
|
|
144
|
-
var relatedPosts = [];
|
|
145
|
-
var currPost = pages.find(obj => {return obj.url === location.pathname});
|
|
146
|
-
|
|
147
|
-
let currTags = currPost.tags.split(', ');
|
|
148
|
-
let currCategory = currPost.path.split(' > ').pop();
|
|
149
|
-
|
|
150
|
-
for (var i = 0; i < pages.length; i++) {
|
|
151
|
-
let page = pages[i];
|
|
152
|
-
|
|
153
|
-
if (page.type === 'category') continue;
|
|
154
|
-
|
|
155
|
-
if (page.title === currPost.title) continue;
|
|
156
|
-
|
|
157
|
-
let tags = page.tags.split(', ');
|
|
158
|
-
let category = page.path.split(' > ').pop();
|
|
159
|
-
let correlationScore = 0;
|
|
160
|
-
|
|
161
|
-
for (var j = 0; j < currTags.length; j++){
|
|
162
|
-
if (tags.indexOf(currTags[j]) != -1) correlationScore += 1;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (category === currCategory) correlationScore += 1;
|
|
166
|
-
|
|
167
|
-
if (correlationScore == 0) continue;
|
|
168
|
-
|
|
169
|
-
relatedPosts.push({
|
|
170
|
-
'title': page.title,
|
|
171
|
-
'date': page.date,
|
|
172
|
-
'category': category,
|
|
173
|
-
'url': page.url,
|
|
174
|
-
'thumbnail': page.image,
|
|
175
|
-
'score': correlationScore
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
relatedPosts.sort(function (a, b) {
|
|
180
|
-
if(a.hasOwnProperty('score')){
|
|
181
|
-
return b.score - a.score;
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
if (relatedPosts.length == 0){
|
|
186
|
-
$('#related-box').hide();
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
for (var i = 0; i < Math.min(relatedPosts.length, 6); i++){
|
|
191
|
-
let post = relatedPosts[i];
|
|
192
|
-
let date = '-';
|
|
193
|
-
let category = 'No category';
|
|
194
|
-
|
|
195
|
-
if (post.date !== '1900-01-01'){
|
|
196
|
-
date = new Date(post.date);
|
|
197
|
-
date = date.toLocaleString('en-US', {day: 'numeric', month:'long', year:'numeric'});
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
if (post.category !== '') category = post.category;
|
|
201
|
-
|
|
202
|
-
if (post.thumbnail === ''){
|
|
203
|
-
post.thumbnail = "/assets/img/thumbnail/empty.jpg";
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
$('#related-posts').append(
|
|
207
|
-
'<li class="related-item"><a href="' + post.url +
|
|
208
|
-
'"><img src="' + post.thumbnail +
|
|
209
|
-
'"/><p class="category">' + category +
|
|
210
|
-
'</p><p class="title">' + post.title +
|
|
211
|
-
'</p><p class="date">' + date +
|
|
212
|
-
'</p></a></li>'
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
*/
|
|
217
44
|
</script>
|
data/_includes/sidebar.html
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
{%- assign page_tree = page.path | remove_first: "_pages/" | split: "/" -%}
|
|
2
|
-
{%- assign page_level = page_tree.size -%}
|
|
3
|
-
{% if page_tree.last == "index.md" %}
|
|
4
|
-
{%- assign page_type = "category" -%}
|
|
5
|
-
{% else %}
|
|
6
|
-
{%- assign page_type = "post" -%}
|
|
7
|
-
{% endif %}
|
|
8
1
|
<div class="sidebar sidebar-left">
|
|
9
2
|
<div class="side-banner">
|
|
10
3
|
<h1 class="site-name">
|
data/_sass/darkmode.scss
CHANGED
data/_sass/navigation.scss
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
padding-left: 1.125rem;
|
|
21
21
|
background: #eee;
|
|
22
22
|
|
|
23
|
-
transition: max-height .5s, opacity .
|
|
23
|
+
transition: max-height .5s ease-in-out, opacity .3s;
|
|
24
24
|
opacity: 0;
|
|
25
25
|
max-height: 0;
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
> .nav-list {
|
|
34
34
|
opacity: 1;
|
|
35
|
-
max-height:
|
|
35
|
+
max-height: 768px;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
data/_sass/post.scss
CHANGED
|
@@ -110,13 +110,16 @@
|
|
|
110
110
|
svg { margin-right: 4px; }
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.
|
|
114
|
-
|
|
115
|
-
.tag-box {
|
|
113
|
+
.tag-box {
|
|
114
|
+
margin: 1rem;
|
|
116
115
|
display: inline-block;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.tag {
|
|
119
|
+
float: left;
|
|
117
120
|
position: relative;
|
|
118
|
-
margin:
|
|
119
|
-
padding: 0
|
|
121
|
+
margin-left: 24px;
|
|
122
|
+
padding:0 10px 0 12px;
|
|
120
123
|
line-height: 1.5rem;
|
|
121
124
|
color: #fff !important;
|
|
122
125
|
font-size: 1rem;
|
|
@@ -189,8 +192,8 @@ main {
|
|
|
189
192
|
* { margin: auto; }
|
|
190
193
|
|
|
191
194
|
h1, h2, h3 {
|
|
192
|
-
margin-
|
|
193
|
-
|
|
195
|
+
margin-top: 3rem;
|
|
196
|
+
margin-bottom: 1rem;
|
|
194
197
|
}
|
|
195
198
|
|
|
196
199
|
h1, .sh1 { font-size: 1.75rem; }
|
|
@@ -229,11 +232,19 @@ main {
|
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
234
|
|
|
232
|
-
p, ul,
|
|
235
|
+
p, ul, table, div { margin-bottom: 3rem; }
|
|
236
|
+
|
|
237
|
+
p + div,
|
|
238
|
+
p + pre,
|
|
239
|
+
p + blockquote,
|
|
240
|
+
div + div,
|
|
241
|
+
div + blockquote {
|
|
242
|
+
margin-top: -2rem;
|
|
243
|
+
}
|
|
233
244
|
|
|
234
245
|
ul { padding-left: 2rem; }
|
|
235
246
|
|
|
236
|
-
li > ul { margin
|
|
247
|
+
li > ul { margin: 0; }
|
|
237
248
|
|
|
238
249
|
code {
|
|
239
250
|
margin: 0 2px;
|
|
@@ -377,7 +388,7 @@ main {
|
|
|
377
388
|
hr {
|
|
378
389
|
border: 0;
|
|
379
390
|
height: 2px;
|
|
380
|
-
margin
|
|
391
|
+
margin: 1rem 0;
|
|
381
392
|
background: burlywood;
|
|
382
393
|
}
|
|
383
394
|
|
|
@@ -550,16 +561,19 @@ main {
|
|
|
550
561
|
svg { margin-right: 8px; }
|
|
551
562
|
}
|
|
552
563
|
|
|
553
|
-
.tags { margin: 1rem 3rem; }
|
|
554
|
-
|
|
555
564
|
.tag-box {
|
|
556
|
-
margin:
|
|
557
|
-
|
|
565
|
+
margin: 3rem;
|
|
566
|
+
margin-top: 1rem;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.tag {
|
|
570
|
+
margin-left: 32px;
|
|
571
|
+
padding:0 14px 0 16px;
|
|
558
572
|
line-height: 2rem;
|
|
559
573
|
font-size: 1.125rem;
|
|
560
574
|
|
|
561
575
|
&:before {
|
|
562
|
-
left: -
|
|
576
|
+
left: -16px;
|
|
563
577
|
border-width: 16px 16px 16px 0;
|
|
564
578
|
}
|
|
565
579
|
|
|
@@ -574,25 +588,20 @@ main {
|
|
|
574
588
|
padding-top: 0;
|
|
575
589
|
font-size: 1.125rem;
|
|
576
590
|
|
|
577
|
-
h1, h2, h3, hr { margin-bottom: -2.25rem; }
|
|
578
|
-
|
|
579
591
|
h1, .sh1 {
|
|
580
592
|
font-size: 2.25rem;
|
|
581
|
-
|
|
593
|
+
margin-top: 5rem;
|
|
582
594
|
}
|
|
583
595
|
|
|
584
596
|
h2, .sh2 {
|
|
585
597
|
font-size: 1.75rem;
|
|
586
|
-
|
|
598
|
+
margin-top: 4rem;
|
|
587
599
|
}
|
|
588
600
|
|
|
589
601
|
h3, .sh3 {
|
|
590
602
|
font-size: 1.375rem;
|
|
591
|
-
padding-top: 3rem;
|
|
592
603
|
}
|
|
593
604
|
|
|
594
|
-
p, ul, hr, table { margin-top: 3rem; }
|
|
595
|
-
|
|
596
605
|
table {
|
|
597
606
|
tbody td, thead th { padding: 1rem; }
|
|
598
607
|
}
|
data/_sass/search.scss
CHANGED
data/assets/img/favicon.webp
CHANGED
|
Binary file
|
data/assets/js/post.js
CHANGED
|
@@ -76,15 +76,11 @@ document.addEventListener('DOMContentLoaded', function(){
|
|
|
76
76
|
const giscus_category = $('meta[name="giscus_category"]').attr("content");
|
|
77
77
|
const giscus_categoryId = $('meta[name="giscus_categoryId"]').attr("content");
|
|
78
78
|
|
|
79
|
-
console.log(giscus_repo);
|
|
80
|
-
|
|
81
79
|
if (giscus_repo !== undefined) {
|
|
82
80
|
if (currentTheme === 'dark'){
|
|
83
81
|
giscusTheme = "noborder_gray";
|
|
84
82
|
}
|
|
85
83
|
|
|
86
|
-
console.log("what?");
|
|
87
|
-
|
|
88
84
|
let giscusAttributes = {
|
|
89
85
|
"src": "https://giscus.app/client.js",
|
|
90
86
|
"data-repo": giscus_repo,
|
|
@@ -103,8 +99,6 @@ document.addEventListener('DOMContentLoaded', function(){
|
|
|
103
99
|
let giscusScript = document.createElement("script");
|
|
104
100
|
Object.entries(giscusAttributes).forEach(([key, value]) => giscusScript.setAttribute(key, value));
|
|
105
101
|
document.body.appendChild(giscusScript);
|
|
106
|
-
|
|
107
|
-
console.log("what??");
|
|
108
102
|
}
|
|
109
103
|
|
|
110
104
|
// Giscus IMetadataMessage event handler
|
|
@@ -127,7 +121,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
|
|
127
121
|
// Tag EventListener
|
|
128
122
|
const searchPage = document.querySelector("#search");
|
|
129
123
|
|
|
130
|
-
document.querySelectorAll('.tag-box').forEach(function(tagButton){
|
|
124
|
+
document.querySelectorAll('.tag-box .tag').forEach(function(tagButton){
|
|
131
125
|
tagButton.addEventListener('click', function() {
|
|
132
126
|
const contentID = tagButton.getAttribute('contentID');
|
|
133
127
|
searchPage.classList.add('active');
|
metadata
CHANGED
|
@@ -1,29 +1,63 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-satellite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yankos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.9'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '5.0'
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '3.9'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '5.0'
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: kramdown-parser-gfm
|
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: 1.1.0
|
|
40
|
+
type: :runtime
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 1.1.0
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: webrick
|
|
15
49
|
requirement: !ruby/object:Gem::Requirement
|
|
16
50
|
requirements:
|
|
17
51
|
- - "~>"
|
|
18
52
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
53
|
+
version: 1.7.0
|
|
20
54
|
type: :runtime
|
|
21
55
|
prerelease: false
|
|
22
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
57
|
requirements:
|
|
24
58
|
- - "~>"
|
|
25
59
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
60
|
+
version: 1.7.0
|
|
27
61
|
- !ruby/object:Gem::Dependency
|
|
28
62
|
name: jekyll-feed
|
|
29
63
|
requirement: !ruby/object:Gem::Requirement
|