Skip to content

Commit 8a46286

Browse files
committed
Resume the trending tags on search results.
for mobile views
1 parent 8db0e2d commit 8a46286

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_includes/search-results.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
<div id="search-result-wrapper" class="d-flex justify-content-center unloaded">
99
<div class="col-12 col-xl-11 post-content">
1010
<div id="search-hints">
11-
<h4 class="text-muted">{{ site.data.label.panel.trending_tags }}</h4>
11+
<h4 class="text-muted mb-4">{{ site.data.label.panel.trending_tags }}</h4>
1212
{% include trending-tags.html %}
13+
{% for tag in trending_tags %}
14+
{% capture url %}/tags/{{ tag | downcase | url_encode }}/{% endcapture %}
15+
<a class="post-tag" href="{{ url | relative_url }}">{{ tag | replace: '-', ' ' }}</a>
16+
{% endfor %}
17+
</div>
1318
</div>
1419
<div id="search-results" class="d-flex flex-wrap justify-content-center text-muted mt-3"></div>
1520
</div>

0 commit comments

Comments
 (0)