jekyll-zeta 0.3.2 → 0.3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -81
- data/_includes/home.html +3 -1
- data/_includes/paginate.html +3 -5
- data/_layouts/archive.html +3 -4
- data/_layouts/page.html +3 -3
- data/_layouts/paginate.html +0 -1
- data/_layouts/post.html +7 -5
- data/_layouts/tags.html +4 -1
- data/assets/css/main.css +2 -1
- 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: ea2f141d1553289130e1111f6c1e64a2c5fb1ebbf3c337f12b93aa7a24d9f52c
|
4
|
+
data.tar.gz: bb1f7c3414ed1e1b455be532c26311d29ccdc9dac3be44a7fceac0ef7553765d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0474dc3d0a3c027bc1e15db36ab896ed3fae5b2973d29576e7df54141533195c4835f7a75c7fd15e1f446fde777576e0d9a1686541caf37a4805e4db50b23746
|
7
|
+
data.tar.gz: 4022cc3519820b0fa04238fed53d9cabea31dd254274b649ef63c602ebf56adacdcc162ea65ce2ff5e83eeafa8c29dc5d28d71bcdd1dfe8b46205543dafeea1b
|
data/README.md
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
<img src="https://raw.githubusercontent.com/riggraz/no-style-please/master/logo.png" width="64" align="left" />A (nearly) no-CSS, fast, minimalist [Jekyll](https://jekyllrb.com/) theme.
|
4
|
-
Inspired by [elly's site](http://tilde.town/~elly/) [riggraz](https://riggraz.dev/)
|
5
|
-
|
6
|
-
<h3 align="center"><a href="https://vitock.github.io/no-style-please">Try the demo out!</a></h3>
|
7
|
-
|
8
|
-
<img src="https://raw.githubusercontent.com/riggraz/no-style-please/master/_screenshots/featured-image.png" />
|
1
|
+
# jekyll-zeta
|
9
2
|
|
3
|
+
![](preview.png)
|
4
|
+
|
10
5
|
## Features
|
11
6
|
|
12
|
-
|
7
|
+
|
8
|
+
+ paginate support
|
13
9
|
+ tags support
|
14
10
|
+ mathjax , inluce_code post_link support, include support, link to other post
|
15
11
|
+ encrytion support. Only those who know the password can view the article
|
@@ -83,13 +79,13 @@ NOTE: if you are using Jekyll with GitHub Pages, see the [GitHub Pages installat
|
|
83
79
|
Then, to style your blog with this theme, add this line to your Jekyll site's `Gemfile`:
|
84
80
|
|
85
81
|
```ruby
|
86
|
-
gem "
|
82
|
+
gem "jekyll-zeta"
|
87
83
|
```
|
88
84
|
|
89
85
|
And add this line to your Jekyll site's `_config.yml`:
|
90
86
|
|
91
87
|
```yaml
|
92
|
-
theme:
|
88
|
+
theme: jekyll-zeta
|
93
89
|
```
|
94
90
|
|
95
91
|
And then execute:
|
@@ -98,27 +94,29 @@ And then execute:
|
|
98
94
|
|
99
95
|
Or install it yourself as:
|
100
96
|
|
101
|
-
$ gem install
|
97
|
+
$ gem install jekyll-zeta
|
102
98
|
|
103
99
|
### Customize the menu
|
104
100
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
-
|
113
|
-
|
114
|
-
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
101
|
+
|
102
|
+
edit the `theme_config > menu` in _config.yml .
|
103
|
+
|
104
|
+
here bellow is the default value
|
105
|
+
``` yml
|
106
|
+
theme_config:
|
107
|
+
menu:
|
108
|
+
- title: Home
|
109
|
+
url: /
|
110
|
+
- title: Achive
|
111
|
+
url: /archive.html
|
112
|
+
- title: Tags
|
113
|
+
url: /tags.html
|
114
|
+
- title: About
|
115
|
+
url: /about.html
|
116
|
+
```
|
117
|
+
|
118
|
+
|
119
|
+
### Show all tags
|
122
120
|
create a `tags.md` with content below
|
123
121
|
``` yml
|
124
122
|
---
|
@@ -134,55 +132,4 @@ add a entry in the _data/menu.yml
|
|
134
132
|
url: tags
|
135
133
|
```
|
136
134
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
### Create archive pages
|
141
|
-
|
142
|
-
A so-called archive page is a page that shows a list of posts (see [this](https://riggraz.dev/no-style-please/all-posts) for an example). You can create an archive page by creating a page and putting the following frontmatter:
|
143
|
-
|
144
|
-
```
|
145
|
-
---
|
146
|
-
layout: archive
|
147
|
-
title: The title of the page here
|
148
|
-
which_category: name-of-category
|
149
|
-
---
|
150
|
-
```
|
151
|
-
|
152
|
-
`which_category` is optional: if you don't put it, then all posts of the blog will be listed; on the other hand, if you specify a category, only posts of that category will be shown.
|
153
|
-
|
154
|
-
This feature is particularly useful if used together with the `show_more` attribute in the menu. For example, if you want to limit the number of posts shown in the home page to 5 but add a link to view them all, then you can create an archive page using the method showed above and link to it using the `show_more_url` attribute in `menu.yml`. See [this example](https://github.com/riggraz/no-style-please/blob/master/_data/menu.yml) if you're in doubt.
|
155
|
-
|
156
|
-
### Customize the index page
|
157
|
-
|
158
|
-
The `index.md` page should use layout `home`, which is the layout that displays the menu. If you want to have some content after the menu, you can just add that content in the `index.md` file, and it will automatically show under the menu.
|
159
|
-
|
160
|
-
Another thing you can do to customize the index page is show the description of your blog between the title and the menu. To do this, just edit `_config.yml` and change `theme_config.show_description` to `true`.
|
161
|
-
|
162
|
-
### Pro tips
|
163
|
-
|
164
|
-
#### Dark mode for images
|
165
|
-
|
166
|
-
This theme provides dark mode by inverting all colors of light mode throught the CSS `invert()` function. This approach would also invert the color of all images, but, since this is not the behaviour one would expect, images are not inverted by default.
|
167
|
-
|
168
|
-
However, if you would like to force the color inversion on a specific image you can do so by applying `class="ioda"` to that image ("ioda" stands for "invert on dark appearance"). See the image in the [overview post](https://github.com/riggraz/no-style-please/blob/master/_posts/2020-07-07-overview-post.md) for an example of this approach. Note that color inversion will take place only when the theme has dark appearance!
|
169
|
-
|
170
|
-
For example, if you have a black and white image it could make sense to invert it in dark mode. On the other hand, a colorful image will probably look bad if inverted.
|
171
|
-
|
172
|
-
## Contributing
|
173
|
-
|
174
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/riggraz/no-style-please. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
175
|
-
|
176
|
-
## Development
|
177
|
-
|
178
|
-
To set up your environment to develop this theme, run `bundle install`.
|
179
|
-
|
180
|
-
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.
|
181
|
-
|
182
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
183
|
-
To add a custom directory to your theme-gem, please edit the regexp in `no-style-please.gemspec` accordingly.
|
184
|
-
|
185
|
-
## License
|
186
|
-
|
187
|
-
The theme is available as open source under the terms of the [GPL License](./LICENSE.txt).
|
188
|
-
|
135
|
+
|
data/_includes/home.html
CHANGED
data/_includes/paginate.html
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
|
1
|
+
{% assign titlelen = page.title.size %}
|
2
|
+
{% if titlelen > 0 %}
|
2
3
|
<h2>{{ page.title }}</h2>
|
3
|
-
|
4
|
+
{% endif %}
|
4
5
|
{%-assign nextPage = site.paginate_path | replace: ':num', '2' -%}
|
5
|
-
|
6
6
|
{%
|
7
7
|
include archive_list.html
|
8
8
|
collection=paginator.posts
|
9
9
|
limit=site.paginate
|
10
10
|
-%}
|
11
11
|
|
12
|
-
|
13
|
-
|
14
12
|
{{ content }}
|
15
13
|
|
16
14
|
|
data/_layouts/archive.html
CHANGED
data/_layouts/page.html
CHANGED
data/_layouts/paginate.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -2,18 +2,20 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
+
|
5
6
|
|
6
7
|
<article>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
{% assign titlelen = page.title.size %}
|
9
|
+
{% if titlelen > 0 %}
|
10
|
+
<h2>{{ page.title }}</h2>
|
11
|
+
{% endif %}
|
12
|
+
<time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time>
|
11
13
|
{% for tag in page.tags %}
|
12
14
|
{% capture tag_name %}{{ tag }}{% endcapture %}
|
13
15
|
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
14
16
|
{% endfor %}</span>
|
15
17
|
|
16
|
-
{%-
|
18
|
+
{%- assign encid = "" | get_encrypt_id:page -%}
|
17
19
|
{%- if encid == '' -%}
|
18
20
|
{{ content }}
|
19
21
|
{% else %}
|
data/_layouts/tags.html
CHANGED
data/assets/css/main.css
CHANGED
@@ -5,7 +5,7 @@ li{
|
|
5
5
|
.w {
|
6
6
|
margin: auto;
|
7
7
|
max-width: 640px;
|
8
|
-
padding:
|
8
|
+
padding:0 2rem;
|
9
9
|
}
|
10
10
|
|
11
11
|
code.highlighter-rouge{
|
@@ -81,6 +81,7 @@ li{
|
|
81
81
|
.navli{
|
82
82
|
list-style-type:none;
|
83
83
|
margin-right: 1rem;
|
84
|
+
font-size: 1.135rem;
|
84
85
|
}
|
85
86
|
.postlistul{
|
86
87
|
padding: 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-zeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.2
|
4
|
+
version: 0.3.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|