niri 1.8 → 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/README.md +33 -6
- data/_config.yml +1 -0
- data/_includes/footer.html +3 -3
- data/_layouts/home.html +6 -6
- data/assets/css/main.css +47 -11
- data/assets/js/darklight-mode.js +31 -29
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0ab1bf9c291d23a9d571463a6741b65eeb796497ae5af84f8b36984059889c3
|
4
|
+
data.tar.gz: 9ff1462ee5b5f4ea8fa5d68dddbd2e456ee928df7d12b0a823d969a6567c3eae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a89078a2ac221200ce40cb6da4644617d07b36613ccfadb271c54cdf0ec71bc3c42f12dd52cf6d121d974b6a8f1ffa2135d1cf0668aa45ab303a28b732a3e9e4
|
7
|
+
data.tar.gz: aaf29855476d2a07908252c6232d633ab3c7aaf3fd3c93925d7193c1a21d617f7b36a22aaf5373d0dbf43104121127abd2ba817f28eaacebb3210dcc399cd3ae
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
+
<img src="https://i.ibb.co.com/sdVSmQ5x/niri-logo.png" alt="drawing" width="300"/>
|
1
2
|
|
2
|
-
|
3
|
-
|
4
|
-
Theme for jekyll using Bulma.
|
3
|
+
# About
|
4
|
+
Theme blog for jekyll using Bulma css.
|
5
5
|
|
6
6
|
Live Demo : https://rokhimin.github.io/jekyll-niri
|
7
7
|
|
@@ -40,13 +40,40 @@ Run jekyll:
|
|
40
40
|
|
41
41
|
$ bundle exec jekyll s
|
42
42
|
|
43
|
-
##
|
43
|
+
## Setup
|
44
44
|
|
45
|
-
|
45
|
+
##### copy to _config.yml
|
46
|
+
|
47
|
+
```yaml
|
48
|
+
title: Niri
|
49
|
+
email: youremail@gmail.com
|
50
|
+
description: yourdesc
|
51
|
+
baseurl: ""
|
52
|
+
url: ""
|
53
|
+
footer: Example Theme <a href="https://github.com/rokhimin/jekyll-niri">Niri</a> [/code] by whdzera
|
54
|
+
twitter_username: whdzera
|
55
|
+
github_username: rokhimin
|
56
|
+
logo: niri-logo.png
|
57
|
+
files: ""
|
58
|
+
theme: niri
|
59
|
+
```
|
60
|
+
|
61
|
+
##### Create file 'projects.markdown' in '/' to use page Projects feature
|
62
|
+
|
63
|
+
##### copy to projects.markdown
|
64
|
+
|
65
|
+
```
|
66
|
+
---
|
67
|
+
layout: default
|
68
|
+
title: Projects
|
69
|
+
permalink: /projects/
|
70
|
+
---
|
71
|
+
YOUR PROJECT
|
72
|
+
```
|
46
73
|
|
47
74
|
## Contributing
|
48
75
|
|
49
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
76
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rokhimin/jekyll-niri. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
|
50
77
|
|
51
78
|
## Development
|
52
79
|
|
data/_config.yml
CHANGED
@@ -3,6 +3,7 @@ email: rokhim.whd@gmail.com
|
|
3
3
|
description: Niri Jekyll Theme Blog using Bulma
|
4
4
|
baseurl: ""
|
5
5
|
url: ""
|
6
|
+
footer: Theme <a href="https://github.com/rokhimin/jekyll-niri">Niri</a> [/code] by whdzera
|
6
7
|
twitter_username: rokhiminwahid
|
7
8
|
github_username: rokhimin
|
8
9
|
logo: https://i.ibb.co.com/sdVSmQ5x/niri-logo.png
|
data/_includes/footer.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
<footer class="footer">
|
2
2
|
<div class="content has-text-centered">
|
3
|
-
<p>
|
3
|
+
<p>{{ site.footer }} ©{{ site.time | date: '%Y' }}
|
4
4
|
</p>
|
5
5
|
<p>
|
6
|
-
{% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}"
|
6
|
+
{% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}">Twitter</a>{% endif %}
|
7
7
|
|
|
8
|
-
{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}"
|
8
|
+
{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}">Github</a>{% endif %}
|
9
9
|
</p>
|
10
10
|
</div>
|
11
11
|
</footer>
|
data/_layouts/home.html
CHANGED
@@ -6,19 +6,19 @@ layout: default
|
|
6
6
|
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
7
7
|
|
8
8
|
{% if forloop.first %}
|
9
|
-
<
|
9
|
+
<h3 class="" id="{{ this_year }}-ref">{{this_year}}</h3>
|
10
10
|
<ul class="">
|
11
11
|
{% endif %}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
<div class="box">
|
13
|
+
<h4><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h4>
|
14
|
+
<p>{{ post.date | date: "%b %-d, %Y" }}</p>
|
15
|
+
</div>
|
16
16
|
{% if forloop.last %}
|
17
17
|
</ul>
|
18
18
|
{% else %}
|
19
19
|
{% if this_year != next_year %}
|
20
20
|
</ul>
|
21
|
-
<
|
21
|
+
<h3 class="" id="{{ next_year }}-ref">{{next_year}}</h3>
|
22
22
|
<ul class="">
|
23
23
|
{% endif %}
|
24
24
|
{% endif %}
|
data/assets/css/main.css
CHANGED
@@ -13,9 +13,10 @@
|
|
13
13
|
}
|
14
14
|
|
15
15
|
:root {
|
16
|
-
--text-color: rgb(
|
16
|
+
--text-color: rgb(26, 23, 23);
|
17
17
|
}
|
18
18
|
|
19
|
+
|
19
20
|
html.is-dark {
|
20
21
|
--text-color: rgb(138, 138, 138);
|
21
22
|
}
|
@@ -42,27 +43,27 @@ html.is-dark {
|
|
42
43
|
}
|
43
44
|
|
44
45
|
html.is-dark .hero {
|
45
|
-
background-color: #
|
46
|
+
background-color: #161616;
|
46
47
|
color: white;
|
47
48
|
}
|
48
49
|
|
49
50
|
html.is-dark .navbar {
|
50
|
-
background-color: #
|
51
|
+
background-color: #161616;
|
51
52
|
color: white;
|
52
53
|
}
|
53
54
|
|
54
55
|
html.is-dark .navbar-menu {
|
55
|
-
background-color: #
|
56
|
+
background-color: #161616;
|
56
57
|
color: white;
|
57
58
|
}
|
58
59
|
|
59
60
|
html.is-dark .footer {
|
60
|
-
background-color: #
|
61
|
+
background-color: #202020;
|
61
62
|
color: white;
|
62
63
|
}
|
63
64
|
|
64
65
|
html.is-dark .box {
|
65
|
-
background-color: #
|
66
|
+
background-color: #202020;
|
66
67
|
color: white;
|
67
68
|
}
|
68
69
|
|
@@ -71,12 +72,47 @@ html.is-dark .notification {
|
|
71
72
|
color: white;
|
72
73
|
}
|
73
74
|
|
74
|
-
html.is-dark .button {
|
75
|
-
background-color: #444444;
|
76
|
-
color: white;
|
77
|
-
}
|
78
75
|
|
79
76
|
html.is-dark .title,
|
80
77
|
html.is-dark .subtitle {
|
81
78
|
color: white;
|
82
|
-
}
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
html {
|
85
|
+
background-color: #2a2a2a;
|
86
|
+
color: white;
|
87
|
+
}
|
88
|
+
|
89
|
+
.hero {
|
90
|
+
background-color: #63615f;
|
91
|
+
color: white;
|
92
|
+
}
|
93
|
+
|
94
|
+
.navbar {
|
95
|
+
background-color: #63615f;
|
96
|
+
color: white;
|
97
|
+
}
|
98
|
+
|
99
|
+
.navbar-menu {
|
100
|
+
background-color: #63615f;
|
101
|
+
color: white;
|
102
|
+
}
|
103
|
+
|
104
|
+
.footer {
|
105
|
+
background-color: #6b6865;
|
106
|
+
color: white;
|
107
|
+
}
|
108
|
+
|
109
|
+
.box {
|
110
|
+
background-color: #444343;
|
111
|
+
color: white;
|
112
|
+
}
|
113
|
+
|
114
|
+
.notification {
|
115
|
+
background-color: #333333;
|
116
|
+
color: white;
|
117
|
+
}
|
118
|
+
|
data/assets/js/darklight-mode.js
CHANGED
@@ -1,36 +1,38 @@
|
|
1
1
|
document.addEventListener("DOMContentLoaded", function () {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
const toggleButton = document.getElementById("toggle-button");
|
3
|
+
const themeIcon = document.getElementById("theme-icon");
|
4
|
+
const currentTheme = localStorage.getItem("theme");
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
// Set default theme to Dark Mode
|
7
|
+
if (!currentTheme) {
|
8
|
+
document.documentElement.classList.add("is-dark");
|
9
|
+
localStorage.setItem("theme", "dark");
|
10
|
+
} else if (currentTheme === "dark") {
|
11
|
+
document.documentElement.classList.add("is-dark");
|
12
|
+
} else {
|
13
|
+
document.documentElement.classList.remove("is-dark");
|
14
|
+
}
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
16
|
+
function updateIcon() {
|
17
|
+
if (document.documentElement.classList.contains("is-dark")) {
|
18
|
+
themeIcon.classList.replace("fa-moon", "fa-sun");
|
19
|
+
} else {
|
20
|
+
themeIcon.classList.replace("fa-sun", "fa-moon");
|
20
21
|
}
|
22
|
+
}
|
21
23
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
toggleButton.addEventListener("click", () => {
|
26
|
-
document.documentElement.classList.toggle("is-dark");
|
27
|
-
|
28
|
-
if (document.documentElement.classList.contains("is-dark")) {
|
29
|
-
localStorage.setItem("theme", "dark");
|
30
|
-
} else {
|
31
|
-
localStorage.setItem("theme", "light");
|
32
|
-
}
|
24
|
+
// Perbarui ikon sesuai mode awal
|
25
|
+
updateIcon();
|
33
26
|
|
34
|
-
|
27
|
+
toggleButton.addEventListener("click", () => {
|
28
|
+
requestAnimationFrame(() => {
|
29
|
+
document.documentElement.classList.toggle("is-dark");
|
30
|
+
if (document.documentElement.classList.contains("is-dark")) {
|
31
|
+
localStorage.setItem("theme", "dark");
|
32
|
+
} else {
|
33
|
+
localStorage.setItem("theme", "light");
|
34
|
+
}
|
35
|
+
updateIcon();
|
35
36
|
});
|
36
|
-
});
|
37
|
+
});
|
38
|
+
});
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: niri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '2.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rokhimin Wahid
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-01 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: jekyll
|