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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f66a1a88c41d3132f1d3424523c45ff9cde8df43cc2d15385ea40438a139304
4
- data.tar.gz: a7f8548aa6b8da4f61e30ad6524647d9d7a36c8ac31931cc8b961fd5e5a462c1
3
+ metadata.gz: a0ab1bf9c291d23a9d571463a6741b65eeb796497ae5af84f8b36984059889c3
4
+ data.tar.gz: 9ff1462ee5b5f4ea8fa5d68dddbd2e456ee928df7d12b0a823d969a6567c3eae
5
5
  SHA512:
6
- metadata.gz: 2eda45a01a0516b4866f74da2b77d5a81fad16fdac1bb03e92a80460d2c5a6c2498a617ede53ac5bfbed4c1425269c7a49c1fa13a3745572c6eb0cf1ddc16900
7
- data.tar.gz: 666b56ffe2afe3126118e5f58755c3670ad1ac3fd1108427f120d4540dcdb2d717e84a2f061bbeb886fcac51b27a2ace48cd404656f37d08c4461db00091b86f
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
- ![](https://i.ibb.co.com/sdVSmQ5x/niri-logo.png)
3
- # Niri
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
- ## Misc
43
+ ## Setup
44
44
 
45
- Create file 'projects.markdown' to use page Projects.
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/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.
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
@@ -1,11 +1,11 @@
1
1
  <footer class="footer">
2
2
  <div class="content has-text-centered">
3
- <p>Theme <a href="https://github.com/rokhimin/jekyll-niri"><font color="#fff">Niri</font></a> [/code] by {{ site.title }} &copy;{{ site.time | date: '%Y' }}
3
+ <p>{{ site.footer }} &copy;{{ site.time | date: '%Y' }}
4
4
  </p>
5
5
  <p>
6
- {% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}"><font color="#fff">Twitter</font></a>{% endif %}
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 }}"><font color="#fff">Github</font></a>{% endif %}
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
- <h2 class="" id="{{ this_year }}-ref">{{this_year}}</h2>
9
+ <h3 class="" id="{{ this_year }}-ref">{{this_year}}</h3>
10
10
  <ul class="">
11
11
  {% endif %}
12
- <li class="">
13
- <h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
14
- <p>{{ post.date | date: "%b %-d, %Y" }}</p>
15
- </li>
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
- <h2 class="" id="{{ next_year }}-ref">{{next_year}}</h2>
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(255, 255, 255);
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: #63615f;
46
+ background-color: #161616;
46
47
  color: white;
47
48
  }
48
49
 
49
50
  html.is-dark .navbar {
50
- background-color: #63615f;
51
+ background-color: #161616;
51
52
  color: white;
52
53
  }
53
54
 
54
55
  html.is-dark .navbar-menu {
55
- background-color: #63615f;
56
+ background-color: #161616;
56
57
  color: white;
57
58
  }
58
59
 
59
60
  html.is-dark .footer {
60
- background-color: #5c5a58;
61
+ background-color: #202020;
61
62
  color: white;
62
63
  }
63
64
 
64
65
  html.is-dark .box {
65
- background-color: #413e3e;
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
+
@@ -1,36 +1,38 @@
1
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");
2
+ const toggleButton = document.getElementById("toggle-button");
3
+ const themeIcon = document.getElementById("theme-icon");
4
+ const currentTheme = localStorage.getItem("theme");
5
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
- }
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
- 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
- }
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
- // 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
- }
24
+ // Perbarui ikon sesuai mode awal
25
+ updateIcon();
33
26
 
34
- updateIcon();
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: '1.8'
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-02-27 00:00:00.000000000 Z
10
+ date: 2025-03-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: jekyll