sobekyll 0.1.0 → 0.1.3

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: 0d2c9fdc7e75421ef824211386bc24a24e5064b07d3182b12e2a36043120f7d1
4
- data.tar.gz: cdf3e1cd0bed77d9276804f320cc270f3057ec24a55e2c62240542a1ecf81ccb
3
+ metadata.gz: 876acf82c66e5643c7f3d724cd1d502800ac6d2adc32eaacdc6fe7b9dbc6d802
4
+ data.tar.gz: 5fa98fbed67fe8759b8daa02d97d12e1208bb0cd60d8db98e2c49975fefe06a3
5
5
  SHA512:
6
- metadata.gz: 648e9433d9c272d536d3de967a370561d9909640138f55dc95853d245238a6fcc2e10af26632015795d02fd5499a60c2384a772723ec1c610ec36a19c1f3eed2
7
- data.tar.gz: 350a31093d7ab42191ca517d115f851a27979a968306ede3835f2ce3ccce54a5bc7324017bd55fbe7d016639bceb408927c80f6a1c90bc8c3d533c3245ac0dc0
6
+ metadata.gz: bb0c4e9f29a6136613dbd40b341d660c0d64e1cd4ae681ecbb1b0b1532e50bf2b0515313f0cbd3df00208fe9d571ad62977c0c0c68a395dd34e128e8678509a4
7
+ data.tar.gz: 0e7bc7b66a8751fd2ba2d368f30b59b24fd3ea2eb5f076dbf860ccbd05c3c8960026d10fa0012b80a3361626e7273747f5196fe9f17125ac1e949ad83dff51a5
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ /site
2
+ Gemfile.lock
3
+ sobekyll-*.*.*.gem
4
+ **/*.DS_Store
data/Gemfile CHANGED
@@ -1,8 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "jekyll", "~> 4.3.0" # 指定 Jekyll 的版本
3
+ gem "jekyll", "~> 3.10.0" # 指定 Jekyll 的版本
4
4
  gem "webrick", "~> 1.7" # 解决 Jekyll serve 在某些环境下的依赖问题
5
5
  gem 'rouge'
6
6
  gem "jekyll-paginate"
7
-
8
- gem "sobekyll", path: "."
@@ -12,7 +12,7 @@
12
12
  </svg>
13
13
  </s-icon>
14
14
  <small> {{ post.date | date: "%B %d, %Y" }} </small>
15
- {% if post.tags %}
15
+ {% if post.tags and post.tags.size > 0 %}
16
16
  <s-icon style="width: 20px; height: 20px; margin-left: 8px;">
17
17
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
18
18
  <path
@@ -25,7 +25,7 @@
25
25
  {% endfor %}
26
26
  {% endif %}
27
27
 
28
- {% if post.categories %}
28
+ {% if post.categories and post.categories.size > 0 %}
29
29
  <s-icon style="width: 20px; height: 20px; margin-left: 8px;">
30
30
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
31
31
  <path d="m260-520 220-360 220 360H260ZM700-80q-75 0-127.5-52.5T520-260q0-75 52.5-127.5T700-440q75 0 127.5 52.5T880-260q0 75-52.5 127.5T700-80Zm-580-20v-320h320v320H120Zm580-60q42 0 71-29t29-71q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Zm-500-20h160v-160H200v160Zm202-420h156l-78-126-78 126Zm78 0ZM360-340Zm340 80Z"></path>
@@ -0,0 +1,38 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <ul style="list-style: none; padding: 0; margin: 0; flex: 1;">
5
+ {% for post in paginator.posts %}
6
+ {% include post-item.html post=post %}
7
+ {% endfor %}
8
+ </ul>
9
+
10
+ <div class="pagination">
11
+ {% if paginator.previous_page %}
12
+ <s-icon-button>
13
+ <s-icon type="chevron_left" onclick="window.open('{{ paginator.previous_page_path }}', '_self')"></s-icon>
14
+ </s-icon-button>
15
+ {% endif %}
16
+
17
+ <div class="pagination-indexing">
18
+ {% for page in (1..paginator.total_pages) %}
19
+ {% assign page_link = paginator.base_path | append: '/' %}
20
+ {% if page != 1 %}
21
+ {% assign page_link = page_link | append: 'page' | append: page %}
22
+ {% endif %}
23
+ {% if page == paginator.page %}
24
+ <span style="margin: 8px; font-weight: bolder;">{{ page }}</span>
25
+ {% else %}
26
+ <s-ripple style="border-radius: 4px;" onclick="window.open('{{ page_link }}', '_self')">
27
+ <span style="margin: 8px;">{{ page }}</span>
28
+ </s-ripple>
29
+ {% endif %}
30
+ {% endfor %}
31
+ </div>
32
+
33
+ {% if paginator.next_page %}
34
+ <s-icon-button>
35
+ <s-icon type="chevron_right" onclick="window.open('{{ paginator.next_page_path }}', '_self')"></s-icon>
36
+ </s-icon-button>
37
+ {% endif %}
38
+ </div>
data/_layouts/post.html CHANGED
@@ -19,7 +19,7 @@ layout: default
19
19
  </div>
20
20
 
21
21
  <p class="post-meta">
22
- {% if page.tags %}
22
+ {% if page.tags and post.tags.size > 0 %}
23
23
  <s-icon style="width: 20px; height: 20px;">
24
24
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
25
25
  <path
@@ -33,7 +33,7 @@ layout: default
33
33
  <space style="margin-right: 8px;"></space>
34
34
  {% endif %}
35
35
 
36
- {% if page.categories %}
36
+ {% if page.categories and post.categories.size > 0 %}
37
37
  <s-icon style="width: 20px; height: 20px;">
38
38
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
39
39
  <path
data/assets/css/style.css CHANGED
@@ -96,4 +96,6 @@ article {
96
96
  padding-left: 8px;
97
97
  padding-right: 8px;
98
98
  margin-bottom: 8px;
99
+ margin-inline-start: 0px;
100
+ margin-inline-end: 0px;
99
101
  }
data/index.html CHANGED
@@ -1,38 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
- <ul style="list-style: none; padding: 0; margin: 0; flex: 1;">
5
- {% for post in paginator.posts %}
6
- {% include post-item.html post=post %}
7
- {% endfor %}
8
- </ul>
9
-
10
- <div class="pagination">
11
- {% if paginator.previous_page %}
12
- <s-icon-button>
13
- <s-icon type="chevron_left" onclick="window.open('{{ paginator.previous_page_path }}', '_self')"></s-icon>
14
- </s-icon-button>
15
- {% endif %}
16
-
17
- <div class="pagination-indexing">
18
- {% for page in (1..paginator.total_pages) %}
19
- {% assign page_link = paginator.base_path | append: '/' %}
20
- {% if page != 1 %}
21
- {% assign page_link = page_link | append: 'page' | append: page %}
22
- {% endif %}
23
- {% if page == paginator.page %}
24
- <span style="margin: 8px; font-weight: bolder;">{{ page }}</span>
25
- {% else %}
26
- <s-ripple style="border-radius: 4px;" onclick="window.open('{{ page_link }}', '_self')">
27
- <span style="margin: 8px;">{{ page }}</span>
28
- </s-ripple>
29
- {% endif %}
30
- {% endfor %}
31
- </div>
32
-
33
- {% if paginator.next_page %}
34
- <s-icon-button>
35
- <s-icon type="chevron_right" onclick="window.open('{{ paginator.next_page_path }}', '_self')"></s-icon>
36
- </s-icon-button>
37
- {% endif %}
38
- </div>
data/pack.sh ADDED
@@ -0,0 +1 @@
1
+ gem build sobekyll.gemspec
data/publish.sh ADDED
@@ -0,0 +1 @@
1
+ gem push sobekyll-0.1.1.gem
data/sobekyll.gemspec ADDED
@@ -0,0 +1,15 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "sobekyll" # 你的主题名称
3
+ s.version = "0.1.3" # 版本号
4
+ s.summary = "A material design style Jekyll theme based on Sober." # 简短描述
5
+ s.description = "A material design style Jekyll theme based on Sober." # 详细描述
6
+ s.authors = ["boybeak"]
7
+ s.email = "boybeak@gmail.com"
8
+ s.license = "MIT"
9
+ s.files = `git ls-files`.split("\n").reject do |file|
10
+ file.start_with?("_site/") || file.start_with?("_posts/") || file == "Gemfile.lock"
11
+ end
12
+ s.homepage = "https://github.com/boybeak/sobekyll"
13
+ s.required_ruby_version = ">= 2.5.0"
14
+ s.add_runtime_dependency "jekyll", "~> 3.10.0"
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sobekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - boybeak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,32 +16,37 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: 3.10.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: 3.10.0
27
27
  description: A material design style Jekyll theme based on Sober.
28
28
  email: boybeak@gmail.com
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
+ - ".gitignore"
33
34
  - Gemfile
34
35
  - LICENSE
35
36
  - README.md
36
37
  - _config.yml
37
38
  - _includes/post-item.html
38
39
  - _layouts/default.html
40
+ - _layouts/home.html
39
41
  - _layouts/post.html
40
42
  - _sass/_base.scss
41
43
  - assets/css/rouge-github-auto.css
42
44
  - assets/css/style.css
43
45
  - assets/js/sobekyll.js
44
46
  - index.html
47
+ - pack.sh
48
+ - publish.sh
49
+ - sobekyll.gemspec
45
50
  homepage: https://github.com/boybeak/sobekyll
46
51
  licenses:
47
52
  - MIT