jekyll-zeta 0.3.5.1 → 0.3.5.3

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: b0866cf0f374051ec71423e9a7559e1fa32eb229d0cf946853a9a74e874cc015
4
- data.tar.gz: 9f160f677da92daa8985d4a8b7be21daa3d8e2746c47da8b38d51053d9b02681
3
+ metadata.gz: b6a50510d78c133db937f81499c2cfb2eacba5a383e33f0a90be8ba8663d5697
4
+ data.tar.gz: 11d985f74e6fca7711ce02e268fe9958ee8654597d4432b807b8141c50faf255
5
5
  SHA512:
6
- metadata.gz: '090baebca0ace56664a5843329b8af025c14f5f3c62b29abc055a9a21364b3cccce8b8794a4d4f863d87c9da98a0cfb4f9bd249625fc730da0fb18f18308ca24'
7
- data.tar.gz: 9be4673e1ffa7aeeb7b22eb9e113e4820457721d6b246f87d6b31c89ecf0c6f066489f4915c67259f3dec8b1994ba7ed14543848250bd47b39555e256248bf6b
6
+ metadata.gz: 82c3025b5bdea9113a1dafdedeed30f3e80d0fb40efc814b86454441ea08762cb26bea145c8abdf72de453dd9612246f0c7b2bfa5e9dfb3581d0816f3a5fc4dd
7
+ data.tar.gz: 3d51075e87da550c3867c3f1c52c72c36adcef705b75e0513047796ed19780544b76d66fcb6757c0a2e765cebfc17b104589d38e3d81eeb74215556f93a55238
data/_config.yml CHANGED
@@ -33,6 +33,7 @@ theme_config:
33
33
  show_more_text: 'show more ...'
34
34
  next_page_title: "next"
35
35
  previous_page_title: "previous"
36
+ lock_path: "assets/image/lock1.png"
36
37
  menu:
37
38
  - title: Home
38
39
  url: /
@@ -8,6 +8,7 @@
8
8
  {% assign archive_date_titleformat = site.theme_config.archive_title_date_format | default: "%m-%d" %}
9
9
 
10
10
  {% assign yCounter = 0 %}
11
+ {% assign lock_path = site.theme_config.lock_path %}
11
12
  <ul class="postlistul">
12
13
  {%- for post in posts limit: include.limit -%}
13
14
  {% assign ymCur = post.date | date: archive_date_format %}
@@ -27,8 +28,21 @@
27
28
  {% assign ymPre = ymCur %}
28
29
 
29
30
  <li class="postlistli">
31
+ {% if lock_path.size > 0 %}
32
+ {%- assign encid = "" | get_encrypt_id:post | default: "" -%}
33
+ {% if encid.size > 1 %}
34
+ <div >
35
+ <a href="{{ post.url | relative_url }} ">{{ post.title }}</a>
36
+ <img style="width:12px;height:12px;display: inline;margin-left: 5px;" src="{{ lock_path | relative_url}}">
37
+ </div>
38
+ {% else %}
30
39
  <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
31
- <date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date>
40
+ {% endif %}
41
+ {% else %}
42
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
43
+ {%endif%}
44
+ <date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date>
45
+
32
46
  </li>
33
47
 
34
48
  {%- endfor -%}
@@ -11,10 +11,26 @@
11
11
  {%-endif-%}
12
12
 
13
13
  {%- if posts.size > 0 -%}
14
+ {% assign lock_path = site.theme_config.lock_path %}
14
15
  <ul class="postlistul">
15
16
  {%- for post in posts limit: include.limit -%}
16
17
  <li class="postlistli">
17
- <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
18
+ {% if lock_path.size > 0 %}
19
+ {%- assign encid = "" | get_encrypt_id:post | default: "" -%}
20
+ {% if encid.size > 1 %}
21
+ <div >
22
+ <a href="{{ post.url | relative_url }} ">{{ post.title }}</a>
23
+ <img style="width:12px;height:12px;display: inline;margin-left: 5px;" src="{{ lock_path | relative_url}}">
24
+ </div>
25
+ {% else %}
26
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
27
+ {% endif %}
28
+
29
+ {%else%}
30
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
31
+ {% endif %}
32
+
33
+
18
34
  <date>{{- post.date | date: site.theme_config.date_format -}}</date>
19
35
  </li>
20
36
  {%- endfor -%}
data/_layouts/post.html CHANGED
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
-
5
- <article>
6
4
  {% assign titlelen = page.title.size %}
7
5
  {% if titlelen > 0 %}
8
6
  <h2>{{ page.title }}</h2>
@@ -11,8 +9,9 @@ layout: default
11
9
  {% for tag in page.tags %}
12
10
  {% capture tag_name %}{{ tag }}{% endcapture %}
13
11
  <a href="{{ site.baseurl }}/tags/{{ tag_name }}.html"><text><nobr>#{{ tag_name }}</nobr></text>&nbsp;</a>
14
- {% endfor %}</span>
15
-
12
+ {% endfor %}
13
+
14
+ <article>
16
15
  {%- assign encid = "" | get_encrypt_id:page -%}
17
16
  {%- if encid == '' -%}
18
17
  {{ content }}
@@ -1,18 +1,12 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <ariticle>
5
- <h2>Tag: {{ page.tag }}</h2>
6
4
 
7
- <ul class="postlistul">
8
- {% for post in site.tags[page.tag] %}
9
- <li class="postlistli">
10
- <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
11
- <date>{{- post.date | date: site.theme_config.date_format -}}</date>
12
- </li>
13
- {% endfor %}
5
+ <h2>Tag: {{ page.tag }}</h2>
6
+ {% assign posts = site.tags[page.tag] %}
7
+ {%
8
+ include post_list.html
9
+ collection = posts
10
+ -%}
14
11
 
15
-
16
- </ul>
17
- </ariticle>
18
-
12
+
@@ -2,6 +2,10 @@ li {
2
2
  padding: 0.2rem;
3
3
  }
4
4
 
5
+ article{
6
+ line-height: 1.4;
7
+ }
8
+
5
9
  .w {
6
10
  margin: auto;
7
11
  max-width: 640px;
Binary file
Binary file
Binary file
Binary file
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.5.1
4
+ version: 0.3.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2022-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.6.0
55
- description:
55
+ description:
56
56
  email:
57
57
  - r
58
58
  executables: []
@@ -84,13 +84,17 @@ files:
84
84
  - _layouts/tags.html
85
85
  - _sass/jekyll-zeta.scss
86
86
  - assets/css/main.scss
87
+ - assets/image/lock1.png
88
+ - assets/image/lock2.png
89
+ - assets/image/lock3.png
90
+ - assets/image/lock4.png
87
91
  - assets/js/mouse_coords.js
88
92
  - index.html
89
93
  homepage: https://github.com/vitock/jekyll-zeta
90
94
  licenses:
91
95
  - GPL
92
96
  metadata: {}
93
- post_install_message:
97
+ post_install_message:
94
98
  rdoc_options: []
95
99
  require_paths:
96
100
  - lib
@@ -105,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
109
  - !ruby/object:Gem::Version
106
110
  version: '0'
107
111
  requirements: []
108
- rubygems_version: 3.2.15
109
- signing_key:
112
+ rubygems_version: 3.0.3.1
113
+ signing_key:
110
114
  specification_version: 4
111
115
  summary: A clean fast, minimalist Jekyll theme.
112
116
  test_files: []