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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6205a0c7da13ffe8939eac5300a1ddc53c2f771f4890f2f0e5d03480754756c7
4
- data.tar.gz: 18cf587c2db46bd393399b66df133f68ab9138ed97dee455e503f841ae9d1239
3
+ metadata.gz: ea2f141d1553289130e1111f6c1e64a2c5fb1ebbf3c337f12b93aa7a24d9f52c
4
+ data.tar.gz: bb1f7c3414ed1e1b455be532c26311d29ccdc9dac3be44a7fceac0ef7553765d
5
5
  SHA512:
6
- metadata.gz: 32982d95c9409a4163de87d866b5f3757b1cf16bc1d8a6c7ba4e38c42dc55ded7792e8a8868e5dd18914fac5b5a42937821f1b9993b2d987eb23088e9f91b519
7
- data.tar.gz: c76e7c7603dd1bff0b987a87cfc3a06245dd03fa39cf2d872b581f97238eb7cfa31128c1ce4e4abb2fdbe91cdf78c907ee34a508277ffc9ce7272cbef197cf75
6
+ metadata.gz: 0474dc3d0a3c027bc1e15db36ab896ed3fae5b2973d29576e7df54141533195c4835f7a75c7fd15e1f446fde777576e0d9a1686541caf37a4805e4db50b23746
7
+ data.tar.gz: 4022cc3519820b0fa04238fed53d9cabea31dd254274b649ef63c602ebf56adacdcc162ea65ce2ff5e83eeafa8c29dc5d28d71bcdd1dfe8b46205543dafeea1b
data/README.md CHANGED
@@ -1,15 +1,11 @@
1
- # no style, please!
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
- + ### new
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 "no-style-please2"
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: no-style-please2
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 no-style-please
97
+ $ gem install jekyll-zeta
102
98
 
103
99
  ### Customize the menu
104
100
 
105
- In order to add/edit/delete entries from the main menu, you have to edit the `menu.yml` file inside `_data` folder. Through that file you can define the structure of the menu. Take a look at the default configuration to get an idea of how it works and read on for a more comprehensive explanation.
106
-
107
- The `menu.yml` file accepts the following fields:
108
-
109
- - `entries` define a new unordered list that will contain menu entries
110
- - each entry is marked by a `-` at the beginning of the line
111
- - each entry can have the following attributes:
112
- - `title`, which defines the text to render for this menu entry (**NB: you can also specify HTML!**)
113
- - `url`, which can be used to specify an URL for this entry. If not specified, `title` will be rendered as-is; otherwise `title` will be sorrounded by a link tag pointing to the specified URL. Note that the URL can either be relative or absolute. Also note that you can get the same result by placing an ```<a>``` tag in the `title` field.
114
- - `post_list`, which can be set either to `true` or to an object. If it is true, the entry will have a list of all posts as subentries. This is used to render your post list. If you want to customize which posts to render (e.g. by category), you can add one or more of the following attributes under `post_list`:
115
- - `category`, which can be set to a string. It is used to render a list of posts of the specified category only. If you don't set it, then posts of all categories will be rendered.
116
- - `limit`, which can be set to a number. It specifies the number of posts to show. If not set, all posts will be rendered.
117
- - `show_more`, which can be true. If it is true and if the number of posts to show is greater than the specified `limit`, render a link to another page. To specify the URL and the text of the link, you can set `show_more_url` and `show_more_text` attributes, which are documented below.
118
- - `show_more_url`, which can be a string. It specifies the URL for the show more link. Use only if `show_more` is true. This will usually redirect to a page containing all posts, which you can easily create using an archive page (see [create archive pages](#create-archive-pages) section)
119
- - `show_more_text`, which can be a string. It specifies the text for the show more link. Use only if `show_more` is true.
120
- - `entries`, yes, you can have entries inside entries. In this way you can create nested sublists!
121
- ### Show all tags
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
@@ -1,5 +1,7 @@
1
+ {% assign titlelen = page.title.size %}
2
+ {% if titlelen > 0 %}
1
3
  <h2>{{ page.title }}</h2>
2
-
4
+ {% endif %}
3
5
  {%-assign nextPage = site.paginate_path | replace: ':num', '2' -%}
4
6
 
5
7
  {%
@@ -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
 
@@ -1,11 +1,10 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
-
5
- {%-include back_link.html-%}
6
-
4
+ {% assign titlelen = page.title.size %}
5
+ {% if titlelen > 0 %}
7
6
  <h2>{{ page.title }}</h2>
8
-
7
+ {% endif %}
9
8
 
10
9
  {%-assign posts = site.posts-%}
11
10
  {%- if posts.size > 0 -%}
data/_layouts/page.html CHANGED
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
-
5
- {%-include back_link.html-%}
6
-
4
+ {% assign titlelen = page.title.size %}
5
+ {% if titlelen > 0 %}
7
6
  <h2>{{ page.title }}</h2>
7
+ {% endif %}
8
8
 
9
9
  {{ content }}
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
-
5
4
  {% if paginator.page == 1 %}
6
5
  {% include home.html %}
7
6
  {% else %}
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
- <h2>{{ page.title }}</h2>
10
- <time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time> &nbsp; &nbsp;
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> &nbsp; &nbsp;
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>&nbsp;</a>
14
16
  {% endfor %}</span>
15
17
 
16
- {%- capture encid %}{{ "" | get_encrypt_id:page}}{% endcapture -%}
18
+ {%- assign encid = "" | get_encrypt_id:page -%}
17
19
  {%- if encid == '' -%}
18
20
  {{ content }}
19
21
  {% else %}
data/_layouts/tags.html CHANGED
@@ -3,7 +3,10 @@ layout: default
3
3
  ---
4
4
  {%-include back_link.html -%}
5
5
  <div class="post">
6
- <h2>{{page.title}}</h2>
6
+ {% assign titlelen = page.title.size %}
7
+ {% if titlelen > 0 %}
8
+ <h2>{{ page.title }}</h2>
9
+ {% endif %}
7
10
  <article>
8
11
  {% comment %}
9
12
  sort tags by count
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: 4rem 2rem;
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-21 00:00:00.000000000 Z
11
+ date: 2022-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll