Skip to content

Commit 3708fdf

Browse files
committed
add support for a tag 'answers_tag' to search
for #11 leaving open to document before closing the issue.
1 parent 9c906e7 commit 3708fdf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

_includes/questions.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
{% if page.answers_tag %}
2+
{% assign askbot_tag = page.answers_tag %}
3+
{% else %}
4+
{% assign askbot_tag = page.title | downcase %}
5+
{% endif %}
6+
17
<section class="questions post-content">
2-
<h3>Questions tagged with `<kbd>{{ page.title | downcase }}</kbd>`</h3>
8+
<h3>Questions tagged with `<kbd>{{ askbot_tag }}</kbd>`</h3>
39
<div id='result' class="question"></div>
410
</section>
511

@@ -19,7 +25,7 @@ <h3>Questions tagged with `<kbd>{{ page.title | downcase }}</kbd>`</h3>
1925
})();
2026
jQuery(function() {
2127
jQuery.getFeed({
22-
url: 'http://answers.ros.org/feeds/rss/?tags={{ page.title | downcase }}',
28+
url: 'http://answers.ros.org/feeds/rss/?tags={{ askbot_tag }}',
2329
success: function(feed) {
2430

2531
jQuery('#result').append('<h2>'

0 commit comments

Comments
 (0)