Skip to content

Commit 7677e8d

Browse files
committed
fix specs
1 parent b40cc88 commit 7677e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/liquid-rails/filters/misc_filter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def toggle_class_name(class_name, condition)
2525

2626
def default_pagination(paginate)
2727
html = []
28-
html << %(<span class="prev">#{link_to(paginate['previous']['title'], paginate['previous']['url'], rel: 'prev')}</span>) if paginate['previous']
28+
html << %(<span class="prev"><a href="#{paginate['previous']['url']}" rel="prev">#{paginate['previous']['title']}</a></span>) if paginate['previous']
2929

3030
for part in paginate['parts']
3131
if part['is_link']
@@ -37,7 +37,7 @@ def default_pagination(paginate)
3737
end
3838
end
3939

40-
html << %(<span class="next">#{link_to(paginate['next']['title'], paginate['next']['url'], rel: 'next')}</span>) if paginate['next']
40+
html << %(<span class="next"><a href="#{paginate['next']['url']}" rel="next">#{paginate['next']['title']}</a></span>) if paginate['next']
4141
html.join(' ')
4242
end
4343

0 commit comments

Comments
 (0)