niri 1.4 → 1.6
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 +62 -62
- data/_config.yml +9 -9
- data/_includes/footer.html +12 -14
- data/_includes/head.html +13 -25
- data/_includes/navigation.html +30 -22
- data/_layouts/default.html +29 -29
- data/_layouts/home.html +24 -24
- data/_layouts/page.html +29 -29
- data/_layouts/post.html +7 -7
- data/assets/css/bulma-1.0.2.css +3 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6f53809d751bac8eb355d62016924f66847689be4a57fce5cc09b8e2888a92f
|
4
|
+
data.tar.gz: 68fad13105090d3673f00a80e52b4377f558a53cb6432207e243972724fa2778
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6643fce07b97720a2ca2341353ea66e0c833892086063539b7cd5fdf5569081f960626c4e66d16e99db62c1b80b66fb16720216ebf1e7200db1bc35654d55ce9
|
7
|
+
data.tar.gz: d89cc69638e6ae8e061c1b04d6078a4f9ae97844ebb1e381e06c04a715b8ee819d94d6b319ee13162aac4a1b87d6586a55533b687e15b191c9862e480ed6789b
|
data/README.md
CHANGED
@@ -1,62 +1,62 @@
|
|
1
|
-
|
2
|
-

|
3
|
-
# Niri
|
4
|
-
Theme for jekyll using Bulma.
|
5
|
-
|
6
|
-
Live Demo : https://rokhimin.github.io/jekyll-niri
|
7
|
-
|
8
|
-
## Installation Jekyll
|
9
|
-
|
10
|
-
$ gem install jekyll
|
11
|
-
|
12
|
-
|
13
|
-
create first app
|
14
|
-
|
15
|
-
$ jekyll new yournameapp
|
16
|
-
|
17
|
-
|
18
|
-
## Installation Theme
|
19
|
-
|
20
|
-
Installation theme Niri to your jekyll app
|
21
|
-
|
22
|
-
Add this line to your Jekyll site's `Gemfile`:
|
23
|
-
|
24
|
-
```ruby
|
25
|
-
gem "niri"
|
26
|
-
```
|
27
|
-
|
28
|
-
And add this line to your Jekyll site's `_config.yml`:
|
29
|
-
|
30
|
-
```yaml
|
31
|
-
theme: niri
|
32
|
-
```
|
33
|
-
|
34
|
-
And then execute:
|
35
|
-
|
36
|
-
$ bundle
|
37
|
-
|
38
|
-
|
39
|
-
Run jekyll:
|
40
|
-
|
41
|
-
$ bundle exec jekyll s
|
42
|
-
|
43
|
-
## Misc
|
44
|
-
|
45
|
-
Create file 'projects.markdown' to use page Projects.
|
46
|
-
|
47
|
-
## Contributing
|
48
|
-
|
49
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
50
|
-
|
51
|
-
## Development
|
52
|
-
|
53
|
-
To set up your environment to develop this theme, run `bundle install`.
|
54
|
-
|
55
|
-
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
56
|
-
|
57
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
58
|
-
To add a custom directory to your theme-gem, please edit the regexp in `niri.gemspec` accordingly.
|
59
|
-
|
60
|
-
## License
|
61
|
-
|
62
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
1
|
+
|
2
|
+

|
3
|
+
# Niri
|
4
|
+
Theme for jekyll using Bulma.
|
5
|
+
|
6
|
+
Live Demo : https://rokhimin.github.io/jekyll-niri
|
7
|
+
|
8
|
+
## Installation Jekyll
|
9
|
+
|
10
|
+
$ gem install jekyll
|
11
|
+
|
12
|
+
|
13
|
+
create first app
|
14
|
+
|
15
|
+
$ jekyll new yournameapp
|
16
|
+
|
17
|
+
|
18
|
+
## Installation Theme
|
19
|
+
|
20
|
+
Installation theme Niri to your jekyll app
|
21
|
+
|
22
|
+
Add this line to your Jekyll site's `Gemfile`:
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
gem "niri"
|
26
|
+
```
|
27
|
+
|
28
|
+
And add this line to your Jekyll site's `_config.yml`:
|
29
|
+
|
30
|
+
```yaml
|
31
|
+
theme: niri
|
32
|
+
```
|
33
|
+
|
34
|
+
And then execute:
|
35
|
+
|
36
|
+
$ bundle
|
37
|
+
|
38
|
+
|
39
|
+
Run jekyll:
|
40
|
+
|
41
|
+
$ bundle exec jekyll s
|
42
|
+
|
43
|
+
## Misc
|
44
|
+
|
45
|
+
Create file 'projects.markdown' to use page Projects.
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
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
|
+
|
51
|
+
## Development
|
52
|
+
|
53
|
+
To set up your environment to develop this theme, run `bundle install`.
|
54
|
+
|
55
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
56
|
+
|
57
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
58
|
+
To add a custom directory to your theme-gem, please edit the regexp in `niri.gemspec` accordingly.
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
title: Niri
|
2
|
-
email: rokhim.whd@gmail.com
|
3
|
-
description: Niri Jekyll Theme Blog using Bulma
|
4
|
-
baseurl: ""
|
5
|
-
url: ""
|
6
|
-
twitter_username: rokhiminwahid
|
7
|
-
github_username: rokhimin
|
8
|
-
|
9
|
-
|
1
|
+
title: Niri
|
2
|
+
email: rokhim.whd@gmail.com
|
3
|
+
description: Niri Jekyll Theme Blog using Bulma
|
4
|
+
baseurl: ""
|
5
|
+
url: ""
|
6
|
+
twitter_username: rokhiminwahid
|
7
|
+
github_username: rokhimin
|
8
|
+
logo: https://i.ibb.co.com/sdVSmQ5x/niri-logo.png
|
9
|
+
files: "/jekyll-niri"
|
data/_includes/footer.html
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
<p>
|
6
|
-
|
7
|
-
|
8
|
-
{% if site.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</footer>
|
14
|
-
|
1
|
+
<footer class="footer">
|
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 }} ©{{ site.time | date: '%Y' }}
|
4
|
+
</p>
|
5
|
+
<p>
|
6
|
+
{% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}"><font color="#fff">Twitter</font></a>{% endif %}
|
7
|
+
|
|
8
|
+
{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}"><font color="#fff">Github</font></a>{% endif %}
|
9
|
+
</p>
|
10
|
+
</div>
|
11
|
+
</footer>
|
12
|
+
|
data/_includes/head.html
CHANGED
@@ -1,25 +1,13 @@
|
|
1
|
-
<head>
|
2
|
-
<meta 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
|
-
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
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="
|
8
|
-
<link rel="
|
9
|
-
<link rel="
|
10
|
-
|
11
|
-
<
|
12
|
-
|
13
|
-
|
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>
|
25
|
-
</head>
|
1
|
+
<head>
|
2
|
+
<meta 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
|
+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
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="{{ 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">
|
10
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
11
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
|
12
|
+
|
13
|
+
</head>
|
data/_includes/navigation.html
CHANGED
@@ -1,22 +1,30 @@
|
|
1
|
-
<nav class="navbar
|
2
|
-
<div class="navbar-brand">
|
3
|
-
<a class="navbar-item" href="/">
|
4
|
-
<img src="{{ site.logo }}" style="width:100%;"></img>
|
5
|
-
</a>
|
6
|
-
</div>
|
7
|
-
<div class="navbar-menu
|
8
|
-
<div class="navbar-end">
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<a class="navbar-item {% if page.url == '/
|
18
|
-
|
19
|
-
</a>
|
20
|
-
|
21
|
-
|
22
|
-
|
1
|
+
<nav class="navbar" role="navigation" aria-label="main navigation">
|
2
|
+
<div class="navbar-brand">
|
3
|
+
<a class="navbar-item" href="/">
|
4
|
+
<img src="{{ site.logo }}" style="width:100%;"></img>
|
5
|
+
</a>
|
6
|
+
</div>
|
7
|
+
<div class="navbar-menu is-active">
|
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
|
+
|
17
|
+
<a class="navbar-item {% if page.url == '/' %}is-active{% endif %}" href="{{ '/' | prepend: site.baseurl }}">
|
18
|
+
Home
|
19
|
+
</a>
|
20
|
+
|
21
|
+
<a class="navbar-item {% if page.url == '/projects/' %}is-active{% endif %}" href="{{ '/projects/' | prepend: site.baseurl }}">
|
22
|
+
Project
|
23
|
+
</a>
|
24
|
+
|
25
|
+
<a class="navbar-item {% if page.url == '/about/' %}is-active{% endif %}" href="{{ '/about/' | prepend: site.baseurl }}">
|
26
|
+
About
|
27
|
+
</a>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</nav>
|
data/_layouts/default.html
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html
|
3
|
-
{% include head.html %}
|
4
|
-
<body>
|
5
|
-
{% include navigation.html %}
|
6
|
-
|
7
|
-
<div class="hero
|
8
|
-
<div class="hero-body">
|
9
|
-
<div class="container">
|
10
|
-
<div class="columns is-centered">
|
11
|
-
<div class="column is-one-two">
|
12
|
-
<div action="" class="box
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<div class="content">
|
16
|
-
{{ content }}
|
17
|
-
</div>
|
18
|
-
|
19
|
-
</div>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
{% include footer.html %}
|
29
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
{% include head.html %}
|
4
|
+
<body>
|
5
|
+
{% include navigation.html %}
|
6
|
+
|
7
|
+
<div class="hero is-fullheight">
|
8
|
+
<div class="hero-body">
|
9
|
+
<div class="container">
|
10
|
+
<div class="columns is-centered">
|
11
|
+
<div class="column is-one-two">
|
12
|
+
<div action="" class="box">
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<div class="content">
|
16
|
+
{{ content }}
|
17
|
+
</div>
|
18
|
+
|
19
|
+
</div>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
{% include footer.html %}
|
29
|
+
</body>
|
30
30
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{% for post in site.posts %}
|
5
|
-
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
6
|
-
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
7
|
-
|
8
|
-
{% if forloop.first %}
|
9
|
-
<h2 class="" id="{{ this_year }}-ref">{{this_year}}</h2>
|
10
|
-
<ul class="">
|
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>
|
16
|
-
{% if forloop.last %}
|
17
|
-
</ul>
|
18
|
-
{% else %}
|
19
|
-
{% if this_year != next_year %}
|
20
|
-
</ul>
|
21
|
-
<h2 class="" id="{{ next_year }}-ref">{{next_year}}</h2>
|
22
|
-
<ul class="">
|
23
|
-
{% endif %}
|
24
|
-
{% endif %}
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
{% for post in site.posts %}
|
5
|
+
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
6
|
+
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
7
|
+
|
8
|
+
{% if forloop.first %}
|
9
|
+
<h2 class="" id="{{ this_year }}-ref">{{this_year}}</h2>
|
10
|
+
<ul class="">
|
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>
|
16
|
+
{% if forloop.last %}
|
17
|
+
</ul>
|
18
|
+
{% else %}
|
19
|
+
{% if this_year != next_year %}
|
20
|
+
</ul>
|
21
|
+
<h2 class="" id="{{ next_year }}-ref">{{next_year}}</h2>
|
22
|
+
<ul class="">
|
23
|
+
{% endif %}
|
24
|
+
{% endif %}
|
25
25
|
{% endfor %}
|
data/_layouts/page.html
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html
|
3
|
-
{% include head.html %}
|
4
|
-
<body>
|
5
|
-
{% include navigation.html %}
|
6
|
-
|
7
|
-
<div class="hero
|
8
|
-
<div class="hero-body">
|
9
|
-
<div class="container">
|
10
|
-
<div class="columns is-centered">
|
11
|
-
<div class="column is-one-two">
|
12
|
-
<div action="" class="box
|
13
|
-
|
14
|
-
<div class="field">
|
15
|
-
<div class="content">
|
16
|
-
{{ content }}
|
17
|
-
</div>
|
18
|
-
|
19
|
-
</div>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
{% include footer.html %}
|
29
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
{% include head.html %}
|
4
|
+
<body>
|
5
|
+
{% include navigation.html %}
|
6
|
+
|
7
|
+
<div class="hero is-fullheight">
|
8
|
+
<div class="hero-body">
|
9
|
+
<div class="container">
|
10
|
+
<div class="columns is-centered">
|
11
|
+
<div class="column is-one-two">
|
12
|
+
<div action="" class="box">
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<div class="content">
|
16
|
+
{{ content }}
|
17
|
+
</div>
|
18
|
+
|
19
|
+
</div>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
{% include footer.html %}
|
29
|
+
</body>
|
30
30
|
</html>
|
data/_layouts/post.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
<h1>{{ page.title }}</h1>
|
5
|
-
<p>{{ page.date }}</p>
|
6
|
-
<
|
7
|
-
{{ content }}
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<h1>{{ page.title }}</h1>
|
5
|
+
<p>{{ page.date }}</p>
|
6
|
+
<hr>
|
7
|
+
{{ content }}
|