jekyll-theme-simplix 0.1.0 → 0.2.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/404.md +9 -0
- data/LICENSE +121 -0
- data/README.md +129 -0
- data/_includes/footer.html +1 -0
- data/_includes/head.html +40 -0
- data/_includes/list-group.html +8 -0
- data/_includes/list-post.html +36 -0
- data/_includes/ui.html +22 -0
- data/_layouts/archive.html +6 -0
- data/_layouts/default.html +36 -0
- data/_layouts/home.html +21 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +52 -0
- data/_sass/abcjs.scss +116 -0
- data/_sass/main.scss +767 -0
- data/_sass/rouge.scss +168 -0
- data/_sass/theme.scss +197 -0
- data/assets/script.js +201 -0
- data/assets/style.scss +19 -0
- data/posts.html +23 -0
- metadata +22 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f1340c7ca473b278862c191616d3c6698d01e27ebf4975e897edde889d2fe29
|
|
4
|
+
data.tar.gz: 27381987b07bce2b8ca6c4c7c32304e25fd342c00a282a13b377102851bb93ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f68a731621f74173218db39ecc9c8bf11d3c9242127a63b1405d173baf13930e684f723dc5e947609bb4a31b21390b959db4fa351ca8ff395b8aad78ae3c3948
|
|
7
|
+
data.tar.gz: 06c4fb6355ab5e5415a1974a7ad7bb3cffca06f3ec1b01dc921a544bec1d6caced603dbb8ff3f42b3cda52ab4facf05b28c975306fe18e3371f58bfe16893c1b
|
data/404.md
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Creative Commons Legal Code
|
|
2
|
+
|
|
3
|
+
CC0 1.0 Universal
|
|
4
|
+
|
|
5
|
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
6
|
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
7
|
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
8
|
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
9
|
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
10
|
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
11
|
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
12
|
+
HEREUNDER.
|
|
13
|
+
|
|
14
|
+
Statement of Purpose
|
|
15
|
+
|
|
16
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
17
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
18
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
19
|
+
authorship and/or a database (each, a "Work").
|
|
20
|
+
|
|
21
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
|
22
|
+
the purpose of contributing to a commons of creative, cultural and
|
|
23
|
+
scientific works ("Commons") that the public can reliably and without fear
|
|
24
|
+
of later claims of infringement build upon, modify, incorporate in other
|
|
25
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
26
|
+
and for any purposes, including without limitation commercial purposes.
|
|
27
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
|
28
|
+
culture and the further production of creative, cultural and scientific
|
|
29
|
+
works, or to gain reputation or greater distribution for their Work in
|
|
30
|
+
part through the use and efforts of others.
|
|
31
|
+
|
|
32
|
+
For these and/or other purposes and motivations, and without any
|
|
33
|
+
expectation of additional consideration or compensation, the person
|
|
34
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
35
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
36
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
37
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
38
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
39
|
+
|
|
40
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
41
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
42
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
|
43
|
+
limited to, the following:
|
|
44
|
+
|
|
45
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
|
46
|
+
communicate, and translate a Work;
|
|
47
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
48
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
|
49
|
+
likeness depicted in a Work;
|
|
50
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
51
|
+
subject to the limitations in paragraph 4(a), below;
|
|
52
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
53
|
+
in a Work;
|
|
54
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
55
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
56
|
+
protection of databases, and under any national implementation
|
|
57
|
+
thereof, including any amended or successor version of such
|
|
58
|
+
directive); and
|
|
59
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
|
60
|
+
world based on applicable law or treaty, and any national
|
|
61
|
+
implementations thereof.
|
|
62
|
+
|
|
63
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
64
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
65
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
66
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
67
|
+
of action, whether now known or unknown (including existing as well as
|
|
68
|
+
future claims and causes of action), in the Work (i) in all territories
|
|
69
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
70
|
+
treaty (including future time extensions), (iii) in any current or future
|
|
71
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
72
|
+
including without limitation commercial, advertising or promotional
|
|
73
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
74
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
|
75
|
+
successors, fully intending that such Waiver shall not be subject to
|
|
76
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
|
77
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
78
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
|
79
|
+
|
|
80
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
81
|
+
be judged legally invalid or ineffective under applicable law, then the
|
|
82
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
|
83
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
|
84
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
85
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
86
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
87
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
88
|
+
maximum duration provided by applicable law or treaty (including future
|
|
89
|
+
time extensions), (iii) in any current or future medium and for any number
|
|
90
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
|
91
|
+
limitation commercial, advertising or promotional purposes (the
|
|
92
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
|
93
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
|
94
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
|
95
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
96
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
|
97
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
|
98
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
|
99
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
|
100
|
+
express Statement of Purpose.
|
|
101
|
+
|
|
102
|
+
4. Limitations and Disclaimers.
|
|
103
|
+
|
|
104
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
105
|
+
surrendered, licensed or otherwise affected by this document.
|
|
106
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
|
107
|
+
warranties of any kind concerning the Work, express, implied,
|
|
108
|
+
statutory or otherwise, including without limitation warranties of
|
|
109
|
+
title, merchantability, fitness for a particular purpose, non
|
|
110
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
|
111
|
+
the present or absence of errors, whether or not discoverable, all to
|
|
112
|
+
the greatest extent permissible under applicable law.
|
|
113
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
114
|
+
that may apply to the Work or any use thereof, including without
|
|
115
|
+
limitation any person's Copyright and Related Rights in the Work.
|
|
116
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
117
|
+
consents, permissions or other rights required for any use of the
|
|
118
|
+
Work.
|
|
119
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
120
|
+
party to this document and has no duty or obligation with respect to
|
|
121
|
+
this CC0 or use of the Work.
|
data/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Simplix
|
|
2
|
+
|
|
3
|
+
👋 Hi, there! This is my first Jekyll theme. It consists of simple layouts and available in both dark and light mode.
|
|
4
|
+
|
|
5
|
+
## Supported features
|
|
6
|
+
|
|
7
|
+
Besides styling basic HTML elements and code syntax highlighting, this theme also has many more features:
|
|
8
|
+
|
|
9
|
+
- Dark theme support
|
|
10
|
+
- Mobile-friendly layout
|
|
11
|
+
- Emphasize blockquote based on their alert type
|
|
12
|
+
- Code preview for HTML/ Markdown/ [ABCJS](https://www.abcjs.net)/ [Mermaid](https://mermaid.js.org)/ [PlantUML](https://plantuml.com) code
|
|
13
|
+
- Support for complex table and third-party media
|
|
14
|
+
- Math expression support using [KaTeX](https://katex.org)
|
|
15
|
+
- Compatibility on IE11 (although no one asked 🐧)
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
<details>
|
|
20
|
+
<summary>Install as a gem-based theme</summary>
|
|
21
|
+
<ol>
|
|
22
|
+
<li>
|
|
23
|
+
<p>Add this line to your site's `Gemfile`:</p>
|
|
24
|
+
<pre><code>gem "jekyll-theme-simplix"</span></code></pre>
|
|
25
|
+
</li>
|
|
26
|
+
<li>
|
|
27
|
+
<p>Then add this line to your site's `_config.yml`:</p>
|
|
28
|
+
<pre><code>theme: jekyll-theme-simplix</code></pre>
|
|
29
|
+
</li>
|
|
30
|
+
<li>
|
|
31
|
+
<p>Run this command to install missing dependencies:</p>
|
|
32
|
+
<pre><code>bundle install</code></pre>
|
|
33
|
+
</li>
|
|
34
|
+
</ol>
|
|
35
|
+
</details>
|
|
36
|
+
|
|
37
|
+
<details>
|
|
38
|
+
<summary>Install as a remote theme</summary>
|
|
39
|
+
<ol>
|
|
40
|
+
<li>
|
|
41
|
+
<p>Add this line to your site's `Gemfile` (make sure to remove/comment the line of the first step in the gem-based option):</p>
|
|
42
|
+
<pre><code>gem "jekyll-remote-theme"</code></pre>
|
|
43
|
+
</li>
|
|
44
|
+
<li>
|
|
45
|
+
<p>Then add these options in `_config.yml`:</p>
|
|
46
|
+
<pre><code>remote_theme: lithier94675/jekyll-theme-simplix
|
|
47
|
+
|
|
48
|
+
plugins:
|
|
49
|
+
\- jekyll-remote-theme</code></pre>
|
|
50
|
+
</li>
|
|
51
|
+
<li>
|
|
52
|
+
<p>Run this command and you are ready to go!</p>
|
|
53
|
+
<pre><code>bundle install</code></pre>
|
|
54
|
+
</li>
|
|
55
|
+
</ol>
|
|
56
|
+
</details>
|
|
57
|
+
|
|
58
|
+
<details>
|
|
59
|
+
<summary>Install by copying files (not recommended)</summary>
|
|
60
|
+
<ul>
|
|
61
|
+
<li>Simply clone this repository or copy some/ all of its files into your site folder. You should update them manually as these files don't rely on RubyGems or Git system.</li>
|
|
62
|
+
</ul>
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
## Customization
|
|
66
|
+
|
|
67
|
+
To change specific color based on page layout (`home` or `post`) and page theme (light or dark), add these lines to your `_config.yml`:
|
|
68
|
+
|
|
69
|
+
```yml
|
|
70
|
+
title_bg:
|
|
71
|
+
home:
|
|
72
|
+
- aliceblue # This is index [0] representing light theme
|
|
73
|
+
- purple # This is for dark theme
|
|
74
|
+
post:
|
|
75
|
+
- white # These values can be any valid CSS background expression
|
|
76
|
+
- magenta # Make sure to use values compatible for most browsers
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Or add these lines to the front matter of specific pages:
|
|
80
|
+
|
|
81
|
+
```yml
|
|
82
|
+
title_bg_light: lightblue
|
|
83
|
+
title_bg_dark: maroon
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
You can also make the background cover the whole page, too! Add this line to the front matter of any pages you want or `_config.yml`:
|
|
87
|
+
|
|
88
|
+
```yml
|
|
89
|
+
title_bg_fill: true # or any value other than falsy
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
To add your own links to the navigation menu, add these lines to your `_config.yml`:
|
|
93
|
+
|
|
94
|
+
```yml
|
|
95
|
+
navigation:
|
|
96
|
+
- title: Posts
|
|
97
|
+
url: /posts
|
|
98
|
+
icon: article # Use icon names from Phosphor Icons
|
|
99
|
+
- title: About
|
|
100
|
+
url: # ...
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Demo
|
|
104
|
+
|
|
105
|
+
To check out all supported features of this project, please take a look at [the demo](https://lithier94675.github.io/jekyll-theme-simplix).
|
|
106
|
+
|
|
107
|
+
> [!NOTE]
|
|
108
|
+
> For mobile users who have to use DevTools without a computer, please use [Eruda](https://eruda.liriliri.io) by setting `JEKYLL_ENV=development` or add this line to `_config.yml`:
|
|
109
|
+
>
|
|
110
|
+
> ```yml
|
|
111
|
+
> debug: true
|
|
112
|
+
> ```
|
|
113
|
+
|
|
114
|
+
> [!WARNING]
|
|
115
|
+
> This theme is not intended to be an customizable template for beginners.
|
|
116
|
+
|
|
117
|
+
## Credits
|
|
118
|
+
|
|
119
|
+
- Fonts: [Google Fonts](https://fonts.google.com) and their corresponding creators
|
|
120
|
+
- Icons: [Phosphor Icons](https://phosphoricons.com)
|
|
121
|
+
- Extensions: [Jekyll Spaceship](https://github.com/jeffreytse/jekyll-spaceship)
|
|
122
|
+
|
|
123
|
+
## Support
|
|
124
|
+
|
|
125
|
+
If you found a feature functioning incorrectly or have a suggestion, feel free to open an issue in this repository.
|
|
126
|
+
|
|
127
|
+
## License
|
|
128
|
+
|
|
129
|
+
This project is licensed under **Creative Commons 1.0 License**. See [LICENSE](./LICENSE) for more information.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<footer><i class="ph ph-paint-brush"></i> Theme by <a href="https://github.com/lithier94675">lithier94675</a><br>View on <a href="https://github.com/lithier94675/jekyll-theme-simplix">GitHub</a></footer>
|
data/_includes/head.html
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<meta charset="utf-8">
|
|
2
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
+
<meta name="IE_RM_OFF" content="true">
|
|
6
|
+
|
|
7
|
+
<title>{{ page.title | default: site.title | default: 'Untitled' }}</title>
|
|
8
|
+
<link rel="icon" href="{{ page.icon | default: site.favicon | default: '/favicon.ico' | relative_url }}">
|
|
9
|
+
{% assign desc = page.description | default: site.description %}
|
|
10
|
+
{% if page.path != '404.html' and desc %}<meta name="description" content="{{ desc }}">{% endif %}
|
|
11
|
+
|
|
12
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
|
|
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
|
+
}
|
|
20
|
+
|
|
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
|
+
}
|
|
31
|
+
|
|
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>
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% endif %}
|
|
38
|
+
|
|
39
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/combine/{% for src in layout.src %}{{ src }}{% unless forloop.last %},{% endunless %}{% endfor %}"></script>
|
|
40
|
+
<script type="text/javascript" src="{{ '/assets/script.js' | relative_url }}" defer></script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<ul>
|
|
2
|
+
{% for group in include.group %}
|
|
3
|
+
<li>
|
|
4
|
+
<i class="ph ph-{{ include.icon | default: 'book' }}"></i>
|
|
5
|
+
<a href="{{ include.dir | prepend: '/' | append: '/' | relative_url }}{{ group[0] | slugify: 'ascii' }}">{{ group[0] }}</a> <span>{{ group[1].size }} post{% if group[1].size > 1 %}s{% endif %}</span></p>
|
|
6
|
+
</li>
|
|
7
|
+
{% endfor %}
|
|
8
|
+
</ul>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<style type="text/css">
|
|
2
|
+
ul {
|
|
3
|
+
list-style: none;
|
|
4
|
+
padding-left: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
ul li {
|
|
8
|
+
display: flex;
|
|
9
|
+
margin-bottom: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
ul li i {
|
|
13
|
+
font-size: 1.6em;
|
|
14
|
+
margin-right: 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ul li p {
|
|
18
|
+
margin: 4px 0 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ul li span {
|
|
22
|
+
color: #777;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
|
|
26
|
+
<ul>
|
|
27
|
+
{% for post in include.posts %}
|
|
28
|
+
<li>
|
|
29
|
+
<i class="ph ph-file"></i>
|
|
30
|
+
<div>
|
|
31
|
+
<a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
|
|
32
|
+
<p><span>{{ post.date | date_to_string }} </span>{{ post.content | strip_html | truncate: 67 }}</p>
|
|
33
|
+
</div>
|
|
34
|
+
</li>
|
|
35
|
+
{% endfor %}
|
|
36
|
+
</ul>
|
data/_includes/ui.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{% assign nav = site.navigation | default: site.data.navigation %}
|
|
2
|
+
<nav{% if nav %} class="nav__multi"{% endif %}>
|
|
3
|
+
<div class="nav__toggle">
|
|
4
|
+
<button title="Toggle navigation menu" aria-label="Toggle navigation menu"><i class="ph ph-list"></i> Menu</button>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="nav__links">
|
|
7
|
+
{% for link in nav %}
|
|
8
|
+
<a href="{{ link.url | relative_url }}"{% if link.icon %}><i class="ph ph-{{ link.icon }}"></i>{% else %} class="nav__links__no-icon">{% endif %} {{ link.title | strip_html | truncate: 32 }}</a>
|
|
9
|
+
{% else %}
|
|
10
|
+
<a href="{{ '/' | relative_url }}"><i class="ph ph-house"></i> Home</a>
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</div>
|
|
13
|
+
</nav>
|
|
14
|
+
|
|
15
|
+
<button class="btn__theme-toggle" title="Switch between dark/ light theme">
|
|
16
|
+
<span class="btn__theme-toggle-light"><i class="ph ph-sun"></i><span>Light</span></span>
|
|
17
|
+
<span class="btn__theme-toggle-dark"><span>Dark</span><i class="ph ph-moon"></i></span>
|
|
18
|
+
</button>
|
|
19
|
+
|
|
20
|
+
<div class="btn__scroll-up">
|
|
21
|
+
<button onclick="window.scrollTo(0, 0)"><i class="ph ph-arrow-up"></i> Scroll to top</button>
|
|
22
|
+
</div>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
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
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<!DOCTYPE html>
|
|
14
|
+
<html lang="{{ page.lang | default: site.lang | default: 'en-US' }}">
|
|
15
|
+
|
|
16
|
+
<head>
|
|
17
|
+
{% include head.html %}
|
|
18
|
+
{% if jekyll.environment == 'development' or site.debug %}
|
|
19
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/eruda"></script>
|
|
20
|
+
<script type="text/javascript">!document.documentMode && eruda.init()</script>
|
|
21
|
+
{% endif %}
|
|
22
|
+
</head>
|
|
23
|
+
|
|
24
|
+
{% assign len = page.content | strip | size %}
|
|
25
|
+
{% if len == 0 %}
|
|
26
|
+
{% assign class = class | default: '' | append: 'main__empty-content ' %}
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% if page.title_bg_fill or site.title_bg_fill %}
|
|
29
|
+
{% assign class = class | default: '' | append: 'main__bg-fill ' %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
<body{% if class %} class="{{ class | strip }}"{% endif %}>
|
|
32
|
+
{% include ui.html %}
|
|
33
|
+
{{ content }}
|
|
34
|
+
</body>
|
|
35
|
+
|
|
36
|
+
</html>
|
data/_layouts/home.html
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title_bg_light: 'linear-gradient(118deg, #1b86f7 0%, #3be8ff 62%, white 100%)'
|
|
4
|
+
title_bg_dark: 'linear-gradient(125deg, #0f0212 0%, #4b0f69 74%, #600c8a 100%)'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<header class="home__header" role="banner">
|
|
8
|
+
<div class="text">
|
|
9
|
+
<h1>{{ page.title | default: site.title | strip_html | default: 'Put an awesome title here' }}</h1>
|
|
10
|
+
<h2>{{ page.description | default: site.description | strip_html | default: 'Description goes here' }}</h2>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="btn__scroll-down">
|
|
13
|
+
<button onclick="window.scrollTo(0, document.querySelector('.home__content').getBoundingClientRect().top - 48)"><i class="ph ph-caret-down"></i> Skip to content</button>
|
|
14
|
+
</div>
|
|
15
|
+
</header>
|
|
16
|
+
|
|
17
|
+
<div class="home__content" role="main">
|
|
18
|
+
{{ content }}
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
{% include footer.html %}
|
data/_layouts/page.html
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<header class="page__header{% unless page.title and page.description %} page__header-blank{% endunless %}">
|
|
6
|
+
<h1>{{ page.title }}</h1>
|
|
7
|
+
<p>{{ page.description }}</p>
|
|
8
|
+
</header>
|
|
9
|
+
|
|
10
|
+
<div class="page__content" role="main">
|
|
11
|
+
{{ content }}
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
{% include footer.html %}
|
data/_layouts/post.html
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
title_bg_light: 'linear-gradient(118deg, #5776de 0%, #f6bbfc 67%, white 100%)'
|
|
4
|
+
title_bg_dark: 'linear-gradient(104deg, #1a094d 0%, #074b8f 70%, #0081de 100%)'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<header class="post__header" role="banner">
|
|
8
|
+
<div class="text">
|
|
9
|
+
<h1>{{ page.title | strip_html | default: 'Untitled post' }}</h1>
|
|
10
|
+
<p>{{ page.description | strip_html }}</p>
|
|
11
|
+
</div>
|
|
12
|
+
{% if page.date or page.author %}
|
|
13
|
+
<p>posted{% if page.date %} on {{ page.date | date_to_string }}{% endif %}{% if page.author %} by {{ page.author | strip_html }}{% endif %}</p>
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% if page.tags.size > 0 %}
|
|
16
|
+
<p>Tags: {% for tag in page.tags %}{% if site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'tags' %}<a href="{{ tag | slugify: 'ascii' | prepend: '/tag/' | relative_url }}">{{ tag }}</a>{% else %}{{ tag }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% if page.categories.size > 0 %}
|
|
19
|
+
<p>Categories: {% for category in page.categories %}{% if site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'categories' %}<a href="{{ category | slugify: 'ascii' | prepend: '/category/' | relative_url }}">{{ category }}</a>{% else %}{{ category }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
|
|
20
|
+
{% endif %}
|
|
21
|
+
</header>
|
|
22
|
+
|
|
23
|
+
<div class="post__content" role="main">
|
|
24
|
+
{{ content }}
|
|
25
|
+
{% if page.id %}
|
|
26
|
+
{% assign len = page.content | strip | size %}
|
|
27
|
+
{% if len > 0 %}<hr>{% endif %}
|
|
28
|
+
<div class="post__switch">
|
|
29
|
+
<div class="post__switch-left">
|
|
30
|
+
{% if page.previous %}
|
|
31
|
+
<i class="ph ph-arrow-left"></i>
|
|
32
|
+
<div class="text">
|
|
33
|
+
<span>Older</span>
|
|
34
|
+
<a href="{{ page.previous.url | relative_url }}">{{ page.previous.title | strip_html }}</a>
|
|
35
|
+
</div>
|
|
36
|
+
{% endif %}
|
|
37
|
+
</div>
|
|
38
|
+
<div class="post__switch-right">
|
|
39
|
+
{% if page.next %}
|
|
40
|
+
<i class="ph ph-arrow-right"></i>
|
|
41
|
+
<div class="text">
|
|
42
|
+
<span>Newer</span>
|
|
43
|
+
<a href="{{ page.next.url | relative_url }}">{{ page.next.title | strip_html }}</a>
|
|
44
|
+
</div>
|
|
45
|
+
{% endif %}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
{% endif %}
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
{% include footer.html %}
|
data/_sass/abcjs.scss
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.abcjs-css-warning {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
$thumb-width: 16px;
|
|
6
|
+
$thumb-height: 16px;
|
|
7
|
+
$track-height: 28px;
|
|
8
|
+
$track-bg-height: 4px;
|
|
9
|
+
$track-bg-start: max(0%, min(50% * (1 - $track-bg-height / $track-height), 50%));
|
|
10
|
+
$track-bg-end: max(50%, min(50% * (1 + $track-bg-height / $track-height), 100%));
|
|
11
|
+
|
|
12
|
+
.synth {
|
|
13
|
+
margin: 8px 16px 0;
|
|
14
|
+
|
|
15
|
+
.abcjs-inline-audio {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
column-gap: 4px;
|
|
19
|
+
|
|
20
|
+
.abcjs-btn {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 28px;
|
|
23
|
+
height: 28px;
|
|
24
|
+
background: none;
|
|
25
|
+
border: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
font: 20px Phosphor !important;
|
|
28
|
+
line-height: 1;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
&.abcjs-midi-start {
|
|
32
|
+
&::before {
|
|
33
|
+
content: "\e3d0";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.abcjs-loading {
|
|
37
|
+
&::before {
|
|
38
|
+
content: "\e66c";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
animation: abcjs-spin 1s linear infinite;
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.abcjs-pushed::before {
|
|
46
|
+
content: "\e39e";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.abcjs-midi-progress-background {
|
|
52
|
+
flex-grow: 1;
|
|
53
|
+
height: $track-height;
|
|
54
|
+
margin: 0 $thumb-width;
|
|
55
|
+
padding: 0;
|
|
56
|
+
border: 0;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.abcjs-midi-progress-indicator {
|
|
61
|
+
display: block;
|
|
62
|
+
position: relative;
|
|
63
|
+
width: $thumb-width;
|
|
64
|
+
height: $thumb-height;
|
|
65
|
+
margin-left: calc($thumb-width / -0.5);
|
|
66
|
+
border-radius: calc(min($thumb-width, $thumb-height) / 2);
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes abcjs-spin {
|
|
71
|
+
from {
|
|
72
|
+
rotate: 0deg;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
to {
|
|
76
|
+
rotate: 360deg;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media print {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@mixin abcjs-light {
|
|
87
|
+
.synth .abcjs-inline-audio {
|
|
88
|
+
.abcjs-btn {
|
|
89
|
+
color: #5b5859;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.abcjs-midi-progress-background {
|
|
93
|
+
background: linear-gradient(180deg, transparent $track-bg-start, #737071 $track-bg-start, #737071 $track-bg-end, transparent $track-bg-end);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.abcjs-midi-progress-indicator {
|
|
97
|
+
background: #f94449;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@mixin abcjs-dark {
|
|
103
|
+
.synth .abcjs-inline-audio {
|
|
104
|
+
.abcjs-btn {
|
|
105
|
+
color: white;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.abcjs-midi-progress-background {
|
|
109
|
+
background: linear-gradient(180deg, transparent $track-bg-start, #f0f7fa $track-bg-start, #f0f7fa $track-bg-end, transparent $track-bg-end);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.abcjs-midi-progress-indicator {
|
|
113
|
+
background: #1e90ff;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|