markdown_extension 0.1.7 → 0.1.8

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: b376e1ac02eebca5b99b6baa165b64506440b424340e10a537372355d5e44255
4
- data.tar.gz: 239b364368c6daaa07076ec97963fd5d1f324a5c8344e7231d1e6890a7709f8c
3
+ metadata.gz: a8d4001e3e40c922319a6d0b2c00be6df4eea2b74b5b5b20a750bf035464e3c7
4
+ data.tar.gz: 1d43328253be594468dfcb53df1c7ce363915e9b8782f179c3f2c128044b3ec0
5
5
  SHA512:
6
- metadata.gz: c669e10efe4737eef8edf1d8e8622cf3864391a79e7cb3cd2271927b45d9034713233fd8db296c11a8951137bf5df9ab5409867178f99c1a3c85a37fe1dfc3bf
7
- data.tar.gz: e38652c2bca74950b7dcb298768dd02fca03f824fa26882c448e4a1065c1c8b1f0210c1c65d477058169593c3fde9493e6bc75365c5f7a90532dbd63340301d2
6
+ metadata.gz: c60591d3bbd5c50f4b7428493aefce4dc0357bc7d50d97c3eabc092020894199ab66312f83c5db9f212ed339b9603ae3dce3e418e20ed1fdf13176faa522115e
7
+ data.tar.gz: b95b64b1e930bf987d224cf023d3ff3d2749177cd8328678d2fa88fb7401339798bb35fd54b21a7dc9006a404323e617050482dd37fb79f64b7ebde598f66939
@@ -18,7 +18,7 @@ module MarkdownExtension
18
18
  @meta = mds[1]
19
19
  @markdown = mds[2..-1].join("---\n")
20
20
  end
21
- @path = file.gsub(site.config.src+lang+"/","").gsub(".md","")
21
+ @path = file.gsub(site.pages_path+lang.to_s+"/","").gsub(".md","")
22
22
  @item_name = file.split("/")[-1].gsub(".md","")
23
23
  @ctime = File::ctime(file)
24
24
  @mtime = File::mtime(file)
@@ -83,6 +83,7 @@ module MarkdownExtension
83
83
  end
84
84
 
85
85
  def meta_html
86
+ return nil unless @meta
86
87
  meta_data = Tomlrb.parse(@meta)
87
88
  html = ""
88
89
  meta_data.each do |title, values|
@@ -1,3 +1,3 @@
1
1
  module MarkdownExtension
2
- Version = '0.1.7'
2
+ Version = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhuang Biaowei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb