jekyll-theme-console-bulma 1.0.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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +114 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +7 -0
- data/_includes/google-analytics.html +12 -0
- data/_includes/head.html +11 -0
- data/_includes/header.html +15 -0
- data/_layouts/default.html +21 -0
- data/_layouts/home.html +20 -0
- data/_layouts/page.html +11 -0
- data/_layouts/post.html +18 -0
- data/_sass/jekyll-theme-console-bulma/_base.scss +41 -0
- data/_sass/jekyll-theme-console-bulma/_components.scss +99 -0
- data/_sass/jekyll-theme-console-bulma/_layout.scss +31 -0
- data/_sass/jekyll-theme-console-bulma/_variables.scss +34 -0
- data/_sass/jekyll-theme-console-bulma.scss +4 -0
- data/assets/css/bulma.min.css +0 -0
- data/assets/js/theme-switcher.js +18 -0
- data/assets/main.scss +4 -0
- metadata +117 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 84f4abf448c53a46850b252868e13927b921d5cd7595c08ec94ed7a87b2d83a8
|
|
4
|
+
data.tar.gz: 7231316fac01ee01e1527fa54da985ff556532aa3ba64340aefb8054e5996037
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e687fee6e21a2ca02b769312ad17d7358ba62efdbf2c3ad132599d74523c0eb8d1d8c58bcdcdb33694b401cdf1b2d4258a8b10e180e0fc3ddb50fdec8911ace5
|
|
7
|
+
data.tar.gz: 45cffe83ab761e334172800fc0da9bbef02e8979a614cdaa875f70d65a213bf697daf769aabbfef660fb016de9364ef12adfefc46b0e9fc3273ab0b6ce947b52
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-present JUNL.EE and the jekyll-theme-console-bulma contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# jekyll-theme-console-bulma
|
|
2
|
+
|
|
3
|
+
*Terminal-inspired Jekyll theme. Bulma-powered, retro-styled, hacker-approved.*
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem "jekyll-theme-console-bulma"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And set the theme in your `_config.yml`:
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
theme: jekyll-theme-console-bulma
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then run:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
bundle install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
### Layouts
|
|
30
|
+
|
|
31
|
+
- `default.html` — Base layout. All other layouts inherit from this.
|
|
32
|
+
- `home.html` — Landing page. Renders `index.md` content followed by a post list.
|
|
33
|
+
- `page.html` — Standard page with title and content.
|
|
34
|
+
- `post.html` — Blog post with title, date, optional author, and optional Disqus comments.
|
|
35
|
+
|
|
36
|
+
### Includes
|
|
37
|
+
|
|
38
|
+
- `head.html` — `<head>` block. Loads Bulma CSS, theme styles, and SEO tags.
|
|
39
|
+
- `header.html` — Site title and theme switcher dropdown.
|
|
40
|
+
- `footer.html` — Copyright year and attribution.
|
|
41
|
+
- `disqus_comments.html` — Disqus comment box (optional).
|
|
42
|
+
- `google-analytics.html` — Google Analytics (production only, optional).
|
|
43
|
+
|
|
44
|
+
### Sass
|
|
45
|
+
|
|
46
|
+
- `_sass/jekyll-theme-console-bulma.scss` — Entry point.
|
|
47
|
+
- `_sass/jekyll-theme-console-bulma/_variables.scss` — CSS custom properties for all color themes.
|
|
48
|
+
- `_sass/jekyll-theme-console-bulma/_base.scss` — Body, typography, links, selection.
|
|
49
|
+
- `_sass/jekyll-theme-console-bulma/_layout.scss` — Container, header, footer, responsive breakpoint.
|
|
50
|
+
- `_sass/jekyll-theme-console-bulma/_components.scss` — Bulma overrides, code blocks, site-title.
|
|
51
|
+
|
|
52
|
+
### Assets
|
|
53
|
+
|
|
54
|
+
- `assets/main.scss` — Compiled to `assets/main.css` by Jekyll.
|
|
55
|
+
- `assets/css/bulma.min.css` — Local Bulma CSS (no CDN dependency).
|
|
56
|
+
- `assets/js/theme-switcher.js` — Theme switcher with localStorage persistence.
|
|
57
|
+
|
|
58
|
+
## Configuration
|
|
59
|
+
|
|
60
|
+
Add any of the following to your `_config.yml`:
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
# Site
|
|
64
|
+
title: Your Site Title
|
|
65
|
+
description: Your site description.
|
|
66
|
+
url: https://yoursite.com
|
|
67
|
+
|
|
68
|
+
# Theme switcher default (light, dark, hacker, nord)
|
|
69
|
+
# Users can change this via the dropdown — preference is saved in localStorage
|
|
70
|
+
|
|
71
|
+
# Disqus comments
|
|
72
|
+
disqus:
|
|
73
|
+
shortname: your_disqus_shortname
|
|
74
|
+
|
|
75
|
+
# Google Analytics (production only)
|
|
76
|
+
google_analytics: UA-NNNNNNNN-N
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Color Themes
|
|
80
|
+
|
|
81
|
+
Four palettes are included out of the box, switchable via the dropdown in the header:
|
|
82
|
+
|
|
83
|
+
| Theme | Background | Accent |
|
|
84
|
+
|-------|-----------|--------|
|
|
85
|
+
| Light | `#fff` | `#000` |
|
|
86
|
+
| Dark | `#000` | `#dbdbdb` |
|
|
87
|
+
| Hacker | `#000` | `#00ff00` |
|
|
88
|
+
| Nord | `#2e3440` | `#d8dee9` |
|
|
89
|
+
|
|
90
|
+
To add a custom palette, override `_sass/jekyll-theme-console-bulma/_variables.scss`
|
|
91
|
+
in your site and add a new `[data-theme="your-name"]` block.
|
|
92
|
+
|
|
93
|
+
## Customization
|
|
94
|
+
|
|
95
|
+
Any theme file can be overridden locally. Copy the file you want to change into
|
|
96
|
+
the matching directory in your site root and edit it — Jekyll will use your
|
|
97
|
+
version instead of the gem's.
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
# Example: override just the footer
|
|
101
|
+
cp $(bundle show jekyll-theme-console-bulma)/_includes/footer.html _includes/footer.html
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Contributing
|
|
105
|
+
|
|
106
|
+
Bug reports and pull requests are welcome on GitHub at
|
|
107
|
+
https://github.com/retromatter/jekyll-theme-console-bulma.
|
|
108
|
+
|
|
109
|
+
This project is intended to be a safe, welcoming space for collaboration.
|
|
110
|
+
Contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
111
|
+
|
|
112
|
+
## License
|
|
113
|
+
|
|
114
|
+
The theme is available as open source under the terms of the [MIT License](LICENSE.txt).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{%- if page.comments != false and jekyll.environment == "production" -%}
|
|
2
|
+
|
|
3
|
+
<div id="disqus_thread"></div>
|
|
4
|
+
<script>
|
|
5
|
+
var disqus_config = function () {
|
|
6
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
|
7
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
(function() {
|
|
11
|
+
var d = document, s = d.createElement('script');
|
|
12
|
+
|
|
13
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
|
14
|
+
|
|
15
|
+
s.setAttribute('data-timestamp', +new Date());
|
|
16
|
+
(d.head || d.body).appendChild(s);
|
|
17
|
+
})();
|
|
18
|
+
</script>
|
|
19
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
|
20
|
+
{%- endif -%}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
|
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
6
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
|
7
|
+
|
|
8
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
|
9
|
+
ga('send', 'pageview');
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
data/_includes/head.html
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
<meta charset="utf-8">
|
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
4
|
+
{%- seo -%}
|
|
5
|
+
<link rel="stylesheet" href="{{ '/assets/css/bulma.min.css' | relative_url }}">
|
|
6
|
+
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
|
7
|
+
{%- feed_meta -%}
|
|
8
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
|
9
|
+
{%- include google-analytics.html -%}
|
|
10
|
+
{%- endif -%}
|
|
11
|
+
</head>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<header class="is-flex is-justify-content-space-between is-align-items-center is-flex-wrap-wrap">
|
|
2
|
+
<div>
|
|
3
|
+
<a href="{{ '/' | relative_url }}" class="site-title m-0">~/{{ site.title | escape }}</a>
|
|
4
|
+
</div>
|
|
5
|
+
<div class="mt-2 mt-0-tablet">
|
|
6
|
+
<div class="select is-small">
|
|
7
|
+
<select id="theme-switcher">
|
|
8
|
+
<option value="light">Light</option>
|
|
9
|
+
<option value="dark">Dark</option>
|
|
10
|
+
<option value="hacker">Hacker</option>
|
|
11
|
+
<option value="nord">Nord</option>
|
|
12
|
+
</select>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</header>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: 'en' }}" data-theme="light">
|
|
3
|
+
|
|
4
|
+
{%- include head.html -%}
|
|
5
|
+
|
|
6
|
+
<body>
|
|
7
|
+
<div class="container">
|
|
8
|
+
|
|
9
|
+
{%- include header.html -%}
|
|
10
|
+
|
|
11
|
+
<main>
|
|
12
|
+
{{ content }}
|
|
13
|
+
</main>
|
|
14
|
+
|
|
15
|
+
{%- include footer.html -%}
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
<script src="{{ '/assets/js/theme-switcher.js' | relative_url }}"></script>
|
|
19
|
+
</body>
|
|
20
|
+
|
|
21
|
+
</html>
|
data/_layouts/home.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
{{ content }}
|
|
6
|
+
|
|
7
|
+
{%- if site.posts.size > 0 -%}
|
|
8
|
+
<hr>
|
|
9
|
+
<section class="section px-0 py-5">
|
|
10
|
+
<h2 class="title is-4 mb-5">{{ page.list_title | default: "Posts" }}</h2>
|
|
11
|
+
<ul class="post-list">
|
|
12
|
+
{%- for post in site.posts -%}
|
|
13
|
+
<li>
|
|
14
|
+
<span class="is-size-7">{{ post.date | date: "%b %-d, %Y" }}</span>
|
|
15
|
+
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
|
16
|
+
</li>
|
|
17
|
+
{%- endfor -%}
|
|
18
|
+
</ul>
|
|
19
|
+
</section>
|
|
20
|
+
{%- endif -%}
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<section class="section px-0 py-6">
|
|
6
|
+
<h1 class="title is-2">{{ page.title | escape }}</h1>
|
|
7
|
+
<p class="is-size-7 mb-5">
|
|
8
|
+
{{ page.date | date: "%b %-d, %Y" }}
|
|
9
|
+
{%- if page.author %} · {{ page.author }}{%- endif -%}
|
|
10
|
+
</p>
|
|
11
|
+
<hr>
|
|
12
|
+
<div class="content">
|
|
13
|
+
{{ content }}
|
|
14
|
+
</div>
|
|
15
|
+
{%- if site.disqus.shortname -%}
|
|
16
|
+
{%- include disqus_comments.html -%}
|
|
17
|
+
{%- endif -%}
|
|
18
|
+
</section>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
body {
|
|
2
|
+
background-color: var(--background-color);
|
|
3
|
+
color: var(--text-color);
|
|
4
|
+
font-family: "Source Code Pro", "Courier New", Courier, monospace;
|
|
5
|
+
font-size: 16px;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
transition: background-color 0.3s ease, color 0.3s ease;
|
|
8
|
+
min-height: 100vh;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
h1, h2, h3, h4, h5, h6, .title, .subtitle {
|
|
12
|
+
color: var(--text-color);
|
|
13
|
+
font-family: inherit;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
strong {
|
|
18
|
+
color: var(--text-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
a, .navbar-item, .breadcrumb a {
|
|
22
|
+
color: var(--link-color);
|
|
23
|
+
text-decoration: underline;
|
|
24
|
+
transition: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a:hover, .navbar-item:hover, .breadcrumb a:hover {
|
|
28
|
+
background-color: var(--base-color);
|
|
29
|
+
color: var(--background-color);
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::selection {
|
|
34
|
+
background: var(--selection-background);
|
|
35
|
+
color: var(--selection-text);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
::-moz-selection {
|
|
39
|
+
background: var(--selection-background);
|
|
40
|
+
color: var(--selection-text);
|
|
41
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
hr {
|
|
2
|
+
background-color: transparent;
|
|
3
|
+
border-top: var(--border);
|
|
4
|
+
height: 0;
|
|
5
|
+
margin: 2rem 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.box, .card, .menu {
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
border: var(--border);
|
|
11
|
+
box-shadow: none;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
color: var(--text-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.box a:hover, .card a:hover {
|
|
17
|
+
background-color: var(--base-color);
|
|
18
|
+
color: var(--background-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.select select {
|
|
22
|
+
background-color: var(--background-color);
|
|
23
|
+
border: var(--border);
|
|
24
|
+
color: var(--text-color);
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
border-radius: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.select select:focus,
|
|
30
|
+
.select select:active {
|
|
31
|
+
border-color: var(--text-color);
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.select:not(.is-multiple):not(.is-loading)::after {
|
|
36
|
+
border-color: var(--text-color);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.select select option {
|
|
40
|
+
background-color: var(--background-color);
|
|
41
|
+
color: var(--text-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
pre {
|
|
45
|
+
background-color: var(--background-color);
|
|
46
|
+
border: var(--border);
|
|
47
|
+
color: var(--text-color);
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
code {
|
|
52
|
+
background-color: var(--selection-background);
|
|
53
|
+
color: var(--selection-text);
|
|
54
|
+
border-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.site-title {
|
|
58
|
+
font-weight: bold;
|
|
59
|
+
font-size: 1.25rem;
|
|
60
|
+
text-decoration: none !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.site-title:hover {
|
|
64
|
+
background-color: transparent !important;
|
|
65
|
+
color: var(--text-color) !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.content ul {
|
|
69
|
+
list-style-type: none;
|
|
70
|
+
margin-left: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.content ul li::before {
|
|
74
|
+
content: "- ";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.post-list {
|
|
78
|
+
list-style-type: none;
|
|
79
|
+
margin-left: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.post-list li {
|
|
83
|
+
border: var(--border);
|
|
84
|
+
padding: 0.75rem;
|
|
85
|
+
margin-bottom: 10px;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: flex-start;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.post-list li::before {
|
|
92
|
+
content: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.title strong,
|
|
96
|
+
.subtitle strong,
|
|
97
|
+
.content strong {
|
|
98
|
+
color: inherit;
|
|
99
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 100vh;
|
|
5
|
+
width: 80%;
|
|
6
|
+
min-width: 800px;
|
|
7
|
+
max-width: 1200px;
|
|
8
|
+
margin: 0 auto;
|
|
9
|
+
padding: 1.5rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
main {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media screen and (max-width: 800px) {
|
|
17
|
+
.container {
|
|
18
|
+
width: 100%;
|
|
19
|
+
min-width: unset;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
header {
|
|
24
|
+
margin-top: 1rem;
|
|
25
|
+
margin-bottom: 2rem;
|
|
26
|
+
padding-bottom: 1rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
footer {
|
|
30
|
+
margin-top: auto;
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--base-color: #000;
|
|
3
|
+
--border: dashed 1px rgba(0, 0, 0, 1);
|
|
4
|
+
--selection-background: rgba(0, 0, 0, 0.99);
|
|
5
|
+
--selection-text: #fff;
|
|
6
|
+
--background-color: #fff;
|
|
7
|
+
--text-color: var(--base-color);
|
|
8
|
+
--placeholder-color: var(--base-color);
|
|
9
|
+
--link-color: var(--base-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-theme="dark"] {
|
|
13
|
+
--base-color: #dbdbdb;
|
|
14
|
+
--border: dashed 1px rgba(219, 219, 219, 0.9);
|
|
15
|
+
--selection-background: rgba(219, 219, 219, 0.99);
|
|
16
|
+
--selection-text: #000;
|
|
17
|
+
--background-color: #000;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-theme="hacker"] {
|
|
21
|
+
--base-color: #00ff00;
|
|
22
|
+
--border: dashed 1px rgba(0, 255, 0, 0.9);
|
|
23
|
+
--selection-background: rgba(0, 255, 0, 0.99);
|
|
24
|
+
--selection-text: #000;
|
|
25
|
+
--background-color: #000;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-theme="nord"] {
|
|
29
|
+
--base-color: #d8dee9;
|
|
30
|
+
--border: dashed 1px var(--base-color);
|
|
31
|
+
--selection-background: #e5e9f0;
|
|
32
|
+
--selection-text: #434c5e;
|
|
33
|
+
--background-color: #2e3440;
|
|
34
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
2
|
+
const themeSwitcher = document.getElementById('theme-switcher');
|
|
3
|
+
const htmlElement = document.documentElement;
|
|
4
|
+
|
|
5
|
+
// Load saved theme or default to 'light'
|
|
6
|
+
const savedTheme = localStorage.getItem('bulma-retro-theme') || 'light';
|
|
7
|
+
htmlElement.setAttribute('data-theme', savedTheme);
|
|
8
|
+
|
|
9
|
+
if (themeSwitcher) {
|
|
10
|
+
themeSwitcher.value = savedTheme;
|
|
11
|
+
|
|
12
|
+
themeSwitcher.addEventListener('change', (e) => {
|
|
13
|
+
const newTheme = e.target.value;
|
|
14
|
+
htmlElement.setAttribute('data-theme', newTheme);
|
|
15
|
+
localStorage.setItem('bulma-retro-theme', newTheme);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
data/assets/main.scss
ADDED
metadata
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: jekyll-theme-console-bulma
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- JUNL.EE
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: jekyll
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '4.4'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '4.4'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: jekyll-feed
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0.12'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0.12'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: jekyll-seo-tag
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '2.8'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '2.8'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: bundler
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0'
|
|
61
|
+
type: :development
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0'
|
|
68
|
+
email:
|
|
69
|
+
- hello@junl.ee
|
|
70
|
+
executables: []
|
|
71
|
+
extensions: []
|
|
72
|
+
extra_rdoc_files: []
|
|
73
|
+
files:
|
|
74
|
+
- LICENSE.txt
|
|
75
|
+
- README.md
|
|
76
|
+
- _includes/disqus_comments.html
|
|
77
|
+
- _includes/footer.html
|
|
78
|
+
- _includes/google-analytics.html
|
|
79
|
+
- _includes/head.html
|
|
80
|
+
- _includes/header.html
|
|
81
|
+
- _layouts/default.html
|
|
82
|
+
- _layouts/home.html
|
|
83
|
+
- _layouts/page.html
|
|
84
|
+
- _layouts/post.html
|
|
85
|
+
- _sass/jekyll-theme-console-bulma.scss
|
|
86
|
+
- _sass/jekyll-theme-console-bulma/_base.scss
|
|
87
|
+
- _sass/jekyll-theme-console-bulma/_components.scss
|
|
88
|
+
- _sass/jekyll-theme-console-bulma/_layout.scss
|
|
89
|
+
- _sass/jekyll-theme-console-bulma/_variables.scss
|
|
90
|
+
- assets/css/bulma.min.css
|
|
91
|
+
- assets/js/theme-switcher.js
|
|
92
|
+
- assets/main.scss
|
|
93
|
+
homepage: https://github.com/retromatter/jekyll-theme-console-bulma
|
|
94
|
+
licenses:
|
|
95
|
+
- MIT
|
|
96
|
+
metadata:
|
|
97
|
+
plugin_type: theme
|
|
98
|
+
source_code_uri: https://github.com/retromatter/jekyll-theme-console-bulma
|
|
99
|
+
rubygems_mfa_required: 'true'
|
|
100
|
+
rdoc_options: []
|
|
101
|
+
require_paths:
|
|
102
|
+
- lib
|
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
|
+
requirements:
|
|
105
|
+
- - ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: '3.0'
|
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - ">="
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: '0'
|
|
113
|
+
requirements: []
|
|
114
|
+
rubygems_version: 4.0.7
|
|
115
|
+
specification_version: 4
|
|
116
|
+
summary: Terminal-inspired Jekyll theme. Bulma-powered, retro-styled, hacker-approved.
|
|
117
|
+
test_files: []
|