jekyll-url-metadata 1.0.1 → 1.0.2

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: a3048e805f8d9c5aebcec7168ade03463791061b48eca4819656d9954b3a08e5
4
- data.tar.gz: a62831160686205005734c3c4ded035627fda472f316778e9065f414c28f15c0
3
+ metadata.gz: 7cc9f88ea850dad060ca2bc836bdd131eef66684aa373048cdabd8246c16953d
4
+ data.tar.gz: 8b93797dc82baa3a114ea8243dde0bc9489cb085d8dc62510a2ffd583433a019
5
5
  SHA512:
6
- metadata.gz: 8591ced4c0ba81dd04a28f84a45b2f1342b5117f020b3591d88ed98b471261d4ba77e1df7e31d9d97b8d3cb4aa4b24a397ec12eceebfa2ffacdf0673dcdd505a
7
- data.tar.gz: e4102af544b8d0ad4a83b58ab641563e83b658639d9fbe85bc2a185449d3b5409f09bca434ab95ec88d37a77c5f325510e6d81e8e85ca00d9979edce6900b126
6
+ metadata.gz: 15857ed5557ecb5fc3026561be968f64d98f4b39b55a9b3234b2c956b58b3434c570da016de87756911ce3d2d8c1ead5a525aacceff4c5810d60afaf9819d5ed
7
+ data.tar.gz: 7213d51daac4c4037a279c07f818cafdfdfa60a31fac4c324e91ed643905cae1b86202bc29cce86dc355404e4b16ab8904e7d3e35bfb484b014d77f3284ab8d8
@@ -56,9 +56,9 @@ module Jekyll
56
56
 
57
57
  hash = Hash.new
58
58
 
59
- # add <title> tag's value to the hash
60
- doc.search("title").each do | title |
61
- next if title.content == ""
59
+ # add first <title> tag's value to the hash
60
+ doc.search("head title").each do | title |
61
+ break if exists(hash["title"])
62
62
  hash["title"] = title.content
63
63
  end
64
64
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module URLMetadata
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end # module Jekyll
5
5
  end # module URLMetadata
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-url-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gourav Khunger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll