sobekyll 0.1.0 → 0.1.1

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: 3ae308da243d4e11ec69d0f11d50ea2cccd21492775e9766a377f3f4d34bf63f
4
+ data.tar.gz: '095b6fb5753621ce960dfcce8b6df01aab2977b37824bf1b16b10859e255e14d'
5
5
  SHA512:
6
- metadata.gz: 648e9433d9c272d536d3de967a370561d9909640138f55dc95853d245238a6fcc2e10af26632015795d02fd5499a60c2384a772723ec1c610ec36a19c1f3eed2
7
- data.tar.gz: 350a31093d7ab42191ca517d115f851a27979a968306ede3835f2ce3ccce54a5bc7324017bd55fbe7d016639bceb408927c80f6a1c90bc8c3d533c3245ac0dc0
6
+ metadata.gz: f7b6aa9058a47804c1dd107c62402507d9ec1f0c860c116dcc7c0770ac01df6cb857d7750bc93ecb503320e85486a6bf742409d5fae1329c9dcc5e3acb9a9ee6
7
+ data.tar.gz: b56a922c81afa5a21860bf527a56ed20fed4fd9c9b0a6d13fefab569153fb293146c98296acd87a2010be4b8a8273dcc2619a2ec4ebb9a4004e876c359c551ab
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ /site
2
+ Gemfile.lock
3
+ sobekyll-*.*.*.gem
@@ -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>
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/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.0.gem
data/sobekyll.gemspec ADDED
@@ -0,0 +1,15 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "sobekyll" # 你的主题名称
3
+ s.version = "0.1.1" # 版本号
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", "~> 4.0"
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - boybeak
@@ -30,6 +30,7 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
+ - ".gitignore"
33
34
  - Gemfile
34
35
  - LICENSE
35
36
  - README.md
@@ -42,6 +43,9 @@ files:
42
43
  - assets/css/style.css
43
44
  - assets/js/sobekyll.js
44
45
  - index.html
46
+ - pack.sh
47
+ - publish.sh
48
+ - sobekyll.gemspec
45
49
  homepage: https://github.com/boybeak/sobekyll
46
50
  licenses:
47
51
  - MIT