jekyll-theme-semantic2 0.0.9 → 0.0.10

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: 9b5569f33a9648bc0f7a172e9f1a4bcac315b0af0c162d40af9cba6e1b34cfb1
4
- data.tar.gz: 26a3df823d0c2db968a9207286d01f16c8da00812b9c059c4376a79546d532ad
3
+ metadata.gz: 57deaccf631b9048c4137660b1e004b8bd01b46cbab82c17c89cf8ed9ccf73fe
4
+ data.tar.gz: 3ada62e3329a83574d1e5b55c956a1036a722998a4521f0156460b80ebcffa9a
5
5
  SHA512:
6
- metadata.gz: f5e542009e1ceb738f0f0856a3a9f0d9bc9dff26d91f85e19ba470c745d8c5908fedd09067b83388680f0eaa9255ac644118e2f52cfda1572a83b0a9968811c4
7
- data.tar.gz: 8ede16892eafe2273bccf24d335b8b6a29d1a5ac64f723414456d60dea41b6c4fbd506a0dbfbcea4befdba1e5b5f465e230cc14eec562ce318108ed72c90b7a5
6
+ metadata.gz: 979eaf8847bc5fbf4340135044ae4087ff35abe5df7b44782db19145c52fa46d3474520573ffc61e4863327cfcc8bed3faa2fd8353c6995a3f1b505f083a4806
7
+ data.tar.gz: e33e66e71f7421323c496764a933f3537cc3c469d3b1b93fbd02bc15847123c3833f6adf021f0c7e172d8d9483c95085fd70eed4420a3942a52c1f1febfd7554
data/_includes/post.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <div class="ui basic vertical segment" itemprop="articleBody">
5
5
  {% if page.type == "home" and site.excerpts %}
6
6
  {{ include.post.excerpt | markdownify }}
7
- <p><a href="{{ post.url }}">Read more&hellip;</a></p>
7
+ <p><a href="{{ include.post.url | relative_url }}">Read more&hellip;</a></p>
8
8
  {% else %}
9
9
  {{ include.post.content | markdownify }}
10
10
  {% endif %}
@@ -2,11 +2,11 @@ module Jekyll
2
2
  module CategoryFilter
3
3
  def category_url(category)
4
4
  site = @context.registers[:site]
5
- if site.config['categories_dir']
6
- "#{site.config['url']}/#{site.config['baseurl']}/#{site.config['categories_dir']}/#{category.tr(' ', '-')}/"
5
+ if site.config["categories_dir"]
6
+ "#{site.config["url"]}/#{site.config["baseurl"]}/#{site.config["categories_dir"]}/#{category.tr(" ", "-")}/"
7
7
  else
8
- "#{site.config['url']}/#{site.config['baseurl']}/categories/#{category.tr(' ', '-')}/"
9
- end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
8
+ "#{site.config["url"]}/#{site.config["baseurl"]}/categories/#{category.tr(" ", "-")}/"
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? "//" : "/" }
10
10
  end
11
11
  end
12
12
  end
@@ -4,12 +4,12 @@ module Jekyll
4
4
  @site = site
5
5
  @base = base
6
6
  @dir = dir
7
- @name = 'index.html'
7
+ @name = "index.html"
8
8
 
9
- self.process(@name)
10
- self.read_yaml(File.join(base, '_layouts'), 'category.html')
11
- self.data['category'] = category
12
- self.data['title'] = "Posts in &#8220;#{category.capitalize}&#8221;"
9
+ process(@name)
10
+ read_yaml(File.join(base, "_layouts"), "category.html")
11
+ data["category"] = category
12
+ data["title"] = "Posts in &#8220;#{category.capitalize}&#8221;"
13
13
  end
14
14
  end
15
15
 
@@ -17,9 +17,12 @@ module Jekyll
17
17
  safe true
18
18
 
19
19
  def generate(site)
20
- if site.layouts.key?('category')
21
- dir = site.config['categories_dir'] || 'categories'
22
- site.categories.keys.each { |category| site.pages << CategoryPage.new(site, site.source, File.join(dir, category.tr(' ', '-')), category) }
20
+ if site.layouts.key?("category")
21
+ dir = site.config["categories_dir"] || "categories"
22
+ site.categories.keys.each do |category|
23
+ page = CategoryPage.new(site, site.source, File.join(dir, category.tr(" ", "-")), category)
24
+ site.pages << page
25
+ end
23
26
  end
24
27
  end
25
28
  end
@@ -2,11 +2,11 @@ module Jekyll
2
2
  module TagFilter
3
3
  def tag_url(tag)
4
4
  site = @context.registers[:site]
5
- if site.config['tags_dir']
6
- "#{site.config['url']}/#{site.config['baseurl']}/#{site.config['tags_dir']}/#{tag.tr(' ', '-')}/"
5
+ if site.config["tags_dir"]
6
+ "#{site.config["url"]}/#{site.config["baseurl"]}/#{site.config["tags_dir"]}/#{tag.tr(" ", "-")}/"
7
7
  else
8
- "#{site.config['url']}/#{site.config['baseurl']}/tags/#{tag.tr(' ', '-')}/"
9
- end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
8
+ "#{site.config["url"]}/#{site.config["baseurl"]}/tags/#{tag.tr(" ", "-")}/"
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? "//" : "/" }
10
10
  end
11
11
  end
12
12
  end
@@ -4,12 +4,12 @@ module Jekyll
4
4
  @site = site
5
5
  @base = base
6
6
  @dir = dir
7
- @name = 'index.html'
7
+ @name = "index.html"
8
8
 
9
- self.process(@name)
10
- self.read_yaml(File.join(base, '_layouts'), 'tag.html')
11
- self.data['tag'] = tag
12
- self.data['title'] = "Posts tagged with &#8220;#{tag}&#8221;"
9
+ process(@name)
10
+ read_yaml(File.join(base, "_layouts"), "tag.html")
11
+ data["tag"] = tag
12
+ data["title"] = "Posts tagged with &#8220;#{tag}&#8221;"
13
13
  end
14
14
  end
15
15
 
@@ -17,9 +17,12 @@ module Jekyll
17
17
  safe true
18
18
 
19
19
  def generate(site)
20
- if site.layouts.key?('tag')
21
- dir = site.config['tags_dir'] || 'tags'
22
- site.tags.keys.each { |tag| site.pages << TagPage.new(site, site.source, File.join(dir, tag.tr(' ', '-')), tag) }
20
+ if site.layouts.key?("tag")
21
+ dir = site.config["tags_dir"] || "tags"
22
+ site.tags.keys.each do |tag|
23
+ page = TagPage.new(site, site.source, File.join(dir, tag.tr(" ", "-")), tag)
24
+ site.pages << page
25
+ end
23
26
  end
24
27
  end
25
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-semantic2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon de C Valle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-30 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '2.3'
20
20
  type: :development
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: '2.1'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.0.3
141
+ rubygems_version: 3.0.3.1
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: A Semantic UI -based Jekyll theme.