jekyll-planningwikiplugins 0.2.5 → 0.2.6
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 +3 -8
- 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: 180ee04ddfa8c233fac13a870afe18b9c433f753050d3445574b640ccfc6473b
|
4
|
+
data.tar.gz: a7da06a5e30bd8078d76642bcb449af69a350682362a3e690eda9e7ee83b4707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 608cece159df59d8c0f637081b45454c19b29b5d68402c98d9d3fdf0de2c20c0f1b24ce618b771c01fb8c2b94ce1ca3a5317fc1e424bdf69e7fc60ed37386102
|
7
|
+
data.tar.gz: bb4bcbf6641654279844e4ce0ae63ce1d769c7e7685b89d13da0c70a66c74fa32952d62df369e853594062c45ddd2cc33c4767d312704cbbb87fda7444ccbf3f
|
@@ -52,17 +52,12 @@ module Jekyll
|
|
52
52
|
class PlannerLinkTag < Liquid::Tag
|
53
53
|
def initialize(tag_name, text, tokens)
|
54
54
|
super
|
55
|
-
@text = text
|
55
|
+
@text = text.split(' ')[0..-2].join(' ')
|
56
|
+
@planner = text.split(' ')[-1]
|
56
57
|
end
|
57
58
|
|
58
59
|
def render(context)
|
59
|
-
|
60
|
-
tags = @text.split(' ')
|
61
|
-
result = "tags: "
|
62
|
-
tags.each do |tag|
|
63
|
-
result = "#{result} <a href=\"/ref/planners/#{tag.downcase}\">#{tag}</a>"
|
64
|
-
end
|
65
|
-
result
|
60
|
+
"<a href=\"/ref/planners/#{@planner.downcase}\">#{@text}</a>"
|
66
61
|
end
|
67
62
|
end
|
68
63
|
class CitePaperTag < Liquid::Tag
|