File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ <h1 style="color: #666; font-weight: bold" class="post-title section-header">{{
17
17
< p class ="bg-warning "
18
18
style ="margin-top:15px; padding: 10px; ">
19
19
Note: A newer revision of this blogpost for < b > apiman 1.2.x</ b > can be found < a href ="
20
+ {% strip %}
20
21
{% for post in site.posts %}
21
22
{% assign postName = post.path | find_post_by_path %}
22
23
{% if postName == page.newUrl %}
23
24
{{ site.url }}{{ site.baseurl }}{{ post.url }}
24
25
{% endif %}
25
26
{% endfor %}
27
+ {% endstrip %}
26
28
"> here</ a > . This version was written for < b > apiman 1.1.x</ b > .
27
29
</ p >
28
30
{% endif %}
Original file line number Diff line number Diff line change
1
+ #https://github.com/aucor/jekyll-plugins/blob/master/LICENCE
2
+ # Replaces multiple newlines and whitespace
3
+ # between them with one newline
4
+
5
+ module Jekyll
6
+ class StripTag < Liquid ::Block
7
+
8
+ def render ( context )
9
+ super . gsub /\n \s *\n / , "\n "
10
+ end
11
+
12
+ end
13
+ end
14
+
15
+ Liquid ::Template . register_tag ( 'strip' , Jekyll ::StripTag )
You can’t perform that action at this time.
0 commit comments