niri 1.5 → 1.7
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 +1 -1
- data/_config.yml +2 -1
- data/_includes/footer.html +1 -3
- data/_includes/head.html +4 -16
- data/_includes/navigation.html +10 -2
- data/_layouts/default.html +3 -3
- data/_layouts/page.html +3 -3
- data/_layouts/post.html +3 -3
- data/assets/css/main.css +69 -0
- data/assets/js/darklight-mode.js +36 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80f48fd626d783e9e81d2bdede1d12ea4dc1bea6d179c1ac988a5f796d18cbaf
|
4
|
+
data.tar.gz: f419f256bd577596cb56bf4aa922b49ca7544fbe532020e03793c2178544f6e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30b032c04ab6f97590402f8636a808b3e925c06bb9fd3ac763e24c6bed1d78475e390b61647f9317c714826f77a33512337cc601ed88225deb9ac05f6c88c67a
|
7
|
+
data.tar.gz: 64af8e8b8aa390202ca882916894d599ba9188610e5fb6f09d5458f3012b3ce8efd4db0ceef0caf3fc64ca48182c9bdf0adb279c133751b350774e67a0051e83
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ Create file 'projects.markdown' to use page Projects.
|
|
46
46
|
|
47
47
|
## Contributing
|
48
48
|
|
49
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
49
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Rokhimin/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
50
|
|
51
51
|
## Development
|
52
52
|
|
data/_config.yml
CHANGED
data/_includes/footer.html
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<footer class="footer has-background-black-ter">
|
1
|
+
<footer class="footer">
|
4
2
|
<div class="content has-text-centered">
|
5
3
|
<p>Theme <a href="https://github.com/rokhimin/jekyll-niri"><font color="#fff">Niri</font></a> [/code] by {{ site.title }} ©{{ site.time | date: '%Y' }}
|
6
4
|
</p>
|
data/_includes/head.html
CHANGED
@@ -4,22 +4,10 @@
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
5
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
6
6
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
7
|
-
<link rel="stylesheet" href="/assets/css/bulma-1.0.2.css"/>
|
7
|
+
<link rel="stylesheet" href="{{ site.files }}/assets/css/bulma-1.0.2.css"/>
|
8
|
+
<link rel="stylesheet" href="{{ site.files }}/assets/css/main.css"/>
|
9
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
8
10
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
9
11
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
|
10
|
-
|
11
|
-
<style>
|
12
|
-
/* Chrome, Safari */
|
13
|
-
::-webkit-scrollbar {
|
14
|
-
width: 15px;
|
15
|
-
height: 15px;
|
16
|
-
}
|
17
|
-
::-webkit-scrollbar-track-piece {
|
18
|
-
background-color: #222222;
|
19
|
-
}
|
20
|
-
::-webkit-scrollbar-thumb:vertical {
|
21
|
-
height: 30px;
|
22
|
-
background-color: #000;
|
23
|
-
}
|
24
|
-
</style>
|
12
|
+
|
25
13
|
</head>
|
data/_includes/navigation.html
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
-
<nav class="navbar
|
1
|
+
<nav class="navbar" role="navigation" aria-label="main navigation">
|
2
2
|
<div class="navbar-brand">
|
3
3
|
<a class="navbar-item" href="/">
|
4
4
|
<img src="{{ site.logo }}" style="width:100%;"></img>
|
5
5
|
</a>
|
6
6
|
</div>
|
7
|
-
<div class="navbar-menu
|
7
|
+
<div class="navbar-menu is-active">
|
8
8
|
<div class="navbar-end">
|
9
|
+
|
10
|
+
<div class="navbar-item">
|
11
|
+
<button class="button is-link is-small" id="toggle-button"><i id="theme-icon" class="fas fa-moon"></i></button>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
|
15
|
+
<script type="text/javascript" src="{{ site.files }}/assets/js/darklight-mode.js"></script>
|
16
|
+
|
9
17
|
<a class="navbar-item {% if page.url == '/' %}is-active{% endif %}" href="{{ '/' | prepend: site.baseurl }}">
|
10
18
|
Home
|
11
19
|
</a>
|
data/_layouts/default.html
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html
|
2
|
+
<html>
|
3
3
|
{% include head.html %}
|
4
4
|
<body>
|
5
5
|
{% include navigation.html %}
|
6
6
|
|
7
|
-
<div class="hero
|
7
|
+
<div class="hero is-fullheight">
|
8
8
|
<div class="hero-body">
|
9
9
|
<div class="container">
|
10
10
|
<div class="columns is-centered">
|
11
11
|
<div class="column is-one-two">
|
12
|
-
<div action="" class="box
|
12
|
+
<div action="" class="box">
|
13
13
|
|
14
14
|
<div class="field">
|
15
15
|
<div class="content">
|
data/_layouts/page.html
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html
|
2
|
+
<html>
|
3
3
|
{% include head.html %}
|
4
4
|
<body>
|
5
5
|
{% include navigation.html %}
|
6
6
|
|
7
|
-
<div class="hero
|
7
|
+
<div class="hero is-fullheight">
|
8
8
|
<div class="hero-body">
|
9
9
|
<div class="container">
|
10
10
|
<div class="columns is-centered">
|
11
11
|
<div class="column is-one-two">
|
12
|
-
<div action="" class="box
|
12
|
+
<div action="" class="box">
|
13
13
|
|
14
14
|
<div class="field">
|
15
15
|
<div class="content">
|
data/_layouts/post.html
CHANGED
data/assets/css/main.css
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
|
2
|
+
:root {
|
3
|
+
--text-color: rgb(255, 255, 255);
|
4
|
+
}
|
5
|
+
|
6
|
+
html.is-dark {
|
7
|
+
--text-color: rgb(138, 138, 138);
|
8
|
+
}
|
9
|
+
|
10
|
+
body {
|
11
|
+
color: var(--text-color);
|
12
|
+
}
|
13
|
+
|
14
|
+
.title, .subtitle, .content, h1, h2, h3, h4, h5, h6, ul, li, hr {
|
15
|
+
color: var(--text-color);
|
16
|
+
}
|
17
|
+
|
18
|
+
code {
|
19
|
+
color: #3b43b1;
|
20
|
+
}
|
21
|
+
|
22
|
+
pre {
|
23
|
+
color: #ff9306;
|
24
|
+
}
|
25
|
+
|
26
|
+
html.is-dark {
|
27
|
+
background-color: #2a2a2a;
|
28
|
+
color: white;
|
29
|
+
}
|
30
|
+
|
31
|
+
html.is-dark .hero {
|
32
|
+
background-color: #63615f;
|
33
|
+
color: white;
|
34
|
+
}
|
35
|
+
|
36
|
+
html.is-dark .navbar {
|
37
|
+
background-color: #63615f;
|
38
|
+
color: white;
|
39
|
+
}
|
40
|
+
|
41
|
+
html.is-dark .navbar-menu {
|
42
|
+
background-color: #63615f;
|
43
|
+
color: white;
|
44
|
+
}
|
45
|
+
|
46
|
+
html.is-dark .footer {
|
47
|
+
background-color: #5c5a58;
|
48
|
+
color: white;
|
49
|
+
}
|
50
|
+
|
51
|
+
html.is-dark .box {
|
52
|
+
background-color: #413e3e;
|
53
|
+
color: white;
|
54
|
+
}
|
55
|
+
|
56
|
+
html.is-dark .notification {
|
57
|
+
background-color: #333333;
|
58
|
+
color: white;
|
59
|
+
}
|
60
|
+
|
61
|
+
html.is-dark .button {
|
62
|
+
background-color: #444444;
|
63
|
+
color: white;
|
64
|
+
}
|
65
|
+
|
66
|
+
html.is-dark .title,
|
67
|
+
html.is-dark .subtitle {
|
68
|
+
color: white;
|
69
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
document.addEventListener("DOMContentLoaded", function () {
|
2
|
+
const toggleButton = document.getElementById("toggle-button");
|
3
|
+
const themeIcon = document.getElementById("theme-icon");
|
4
|
+
const currentTheme = localStorage.getItem("theme");
|
5
|
+
|
6
|
+
// Light Mode sebagai default (Dark Mode hanya aktif jika sebelumnya dipilih)
|
7
|
+
if (currentTheme === "dark") {
|
8
|
+
document.documentElement.classList.add("is-dark");
|
9
|
+
} else {
|
10
|
+
document.documentElement.classList.remove("is-dark");
|
11
|
+
localStorage.setItem("theme", "light"); // Pastikan default tersimpan
|
12
|
+
}
|
13
|
+
|
14
|
+
function updateIcon() {
|
15
|
+
if (document.documentElement.classList.contains("is-dark")) {
|
16
|
+
themeIcon.classList.replace("fa-moon", "fa-sun");
|
17
|
+
} else {
|
18
|
+
themeIcon.classList.replace("fa-sun", "fa-moon");
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
// Perbarui ikon sesuai mode awal
|
23
|
+
updateIcon();
|
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
|
+
}
|
33
|
+
|
34
|
+
updateIcon();
|
35
|
+
});
|
36
|
+
});
|
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: '1.
|
4
|
+
version: '1.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rokhimin Wahid
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-27 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: jekyll
|
@@ -40,6 +40,8 @@ files:
|
|
40
40
|
- _layouts/page.html
|
41
41
|
- _layouts/post.html
|
42
42
|
- assets/css/bulma-1.0.2.css
|
43
|
+
- assets/css/main.css
|
44
|
+
- assets/js/darklight-mode.js
|
43
45
|
homepage: https://github.com/rokhimin/Niri
|
44
46
|
licenses:
|
45
47
|
- MIT
|