jekyll-theme-simplix 0.1.1 → 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: 2c7a59917dc63ef1bed697f4c15d6707e727073c80aec0a46f6879dd220111a1
4
- data.tar.gz: dae5536d6035f67546136f12ffe1fc52d602bdffc8dd5eeba120fec2313c4cd7
3
+ metadata.gz: 27db881f44f7469cb213680c98a59e09ac7f1d178e272d9eb8fd3b9bed096274
4
+ data.tar.gz: 249d985eab9df442e81e16805f2c423025d82b6134cd3365c6ee6d7bb93d8504
5
5
  SHA512:
6
- metadata.gz: 61f8f7b96db67efd20020b2ebf3ff574eeaf50b4ce8b3606a371631cd50fc362514601eb9d94cb9c86e9d800e5d27b27475f0484396de85721bc6836cf602020
7
- data.tar.gz: 8cf8d948c812075b068479e25737a0d43999831f2dea87a018d6d62fe8c1049d96bb27076f88173ed91d4bd4ae1939669d768402ee9e8ce8e5c215c14014d909
6
+ metadata.gz: 6214c3c9b61d4be170387e18409d7327db629a5d3feedb7be7ebd663a54b0feae168884142c0820e026a07c4608575aecdd2201f66680d81b3bc132559d07c8e
7
+ data.tar.gz: db78aff388b7fa8345cc316dab0cc265d6a1355d3101f461df8852e335dc0bc9df7542e4f2f80a5cb22bc7c0c01e46591cea7437513c2e5506327a8b71b5e0f4
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,126 @@
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
+ ## Credits
115
+
116
+ - Fonts: [Google Fonts](https://fonts.google.com) and their corresponding creators
117
+ - Icons: [Phosphor Icons](https://phosphoricons.com)
118
+ - Extensions: [Jekyll Spaceship](https://github.com/jeffreytse/jekyll-spaceship)
119
+
120
+ ## Support
121
+
122
+ If you found a feature functioning incorrectly or have a suggestion, feel free to open an issue in this repository.
123
+
124
+ ## License
125
+
126
+ 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>&nbsp;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>
@@ -0,0 +1,44 @@
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 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
+ }
21
+
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
+ }
32
+
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 %}
38
+ {% endif %}
39
+ {% endif %}
40
+
41
+ {% for src in layout.src %}
42
+ <script type="text/javascript" src="{{ src }}"></script>
43
+ {% endfor %}
44
+ <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>&nbsp;<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 %}&nbsp;{{ 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,6 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <p>Here are posts which belong to the {{ page.type }} <b>{{ page.title | strip_html }}</b>.</p>
6
+ {% include list-post.html posts=page.posts %}
@@ -0,0 +1,36 @@
1
+ ---
2
+ src:
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
+ ---
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>
@@ -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 %}
@@ -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 %}
@@ -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,120 @@
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: 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(min($thumb-width, $thumb-height) / -2);
66
+ border-radius: calc(min($thumb-width, $thumb-height) / 2);
67
+ cursor: pointer;
68
+ }
69
+
70
+ .abcjs-midi-clock {
71
+ font-family: monospace;
72
+ }
73
+
74
+ @keyframes spin {
75
+ from {
76
+ rotate: 0deg;
77
+ }
78
+
79
+ to {
80
+ rotate: 360deg;
81
+ }
82
+ }
83
+ }
84
+
85
+ @media print {
86
+ display: none;
87
+ }
88
+ }
89
+
90
+ @mixin abcjs-light {
91
+ .synth .abcjs-inline-audio {
92
+ .abcjs-btn {
93
+ color: #5b5859;
94
+ }
95
+
96
+ .abcjs-midi-progress-background {
97
+ background: linear-gradient(180deg, transparent $track-bg-start, #737071 $track-bg-start, #737071 $track-bg-end, transparent $track-bg-end);
98
+ }
99
+
100
+ .abcjs-midi-progress-indicator {
101
+ background: #f94449;
102
+ }
103
+ }
104
+ }
105
+
106
+ @mixin abcjs-dark {
107
+ .synth .abcjs-inline-audio {
108
+ .abcjs-btn {
109
+ color: white;
110
+ }
111
+
112
+ .abcjs-midi-progress-background {
113
+ background: linear-gradient(180deg, transparent $track-bg-start, #f0f7fa $track-bg-start, #f0f7fa $track-bg-end, transparent $track-bg-end);
114
+ }
115
+
116
+ .abcjs-midi-progress-indicator {
117
+ background: #1e90ff;
118
+ }
119
+ }
120
+ }