jekyll-planningwikiplugins 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-planningwikiplugins.rb +8 -5
- data/lib/jekyll/planningwikiplugins/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5a1cb867d8e07c9bea65589aff11169b9adcce582f8e91698cce365551174a2
|
4
|
+
data.tar.gz: 9980da038161eec0d7ee03902f84c6313f07cd80dbfb09d0e0ea2f8d3e3991b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ae1360c79cc55e0247f82954fb6b3513122e9284d5960a980d17a6c2f8cec5bdf65e0ccdd5329f46f55890350ef002fe7216b1f2bbd86d19d594d399f870e5
|
7
|
+
data.tar.gz: 91e09f37cf16db308e0e97528e5e9421c048aced965c104df12fcccb923f23903a59c7223129e6622148c99f037e0a3511ee065083360a63dccb0a378b3bcefa
|
@@ -52,12 +52,15 @@ module Jekyll
|
|
52
52
|
class CitePaperTag < Liquid::Tag
|
53
53
|
def initialize(tag_name, text, tokens)
|
54
54
|
super
|
55
|
-
|
56
|
-
@paper = text.split(' ')[1]
|
55
|
+
|
57
56
|
if text.split(' ').length > 2
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
@text = text.split(' ')[0..-2].join("")
|
58
|
+
@paper = text.split(' ')[-2]
|
59
|
+
@pageno = text.split(' ')[-1]
|
60
|
+
else
|
61
|
+
@text = text.split(' ')[0]
|
62
|
+
@paper = text.split(' ')[1]
|
63
|
+
@pageno = 1
|
61
64
|
end
|
62
65
|
end
|
63
66
|
|