Skip to content

Commit

Permalink
Search by url and website name (2factorauth#3123)
Browse files Browse the repository at this point in the history
* Adding in the needed keywords for search

* setting Jets to use new keywords field.

* ensure some spacing

* Change CSS selector according to minimum specificity
  • Loading branch information
kenman345 authored and PSGS committed Apr 12, 2018
1 parent c175ae9 commit a2a328c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _includes/row-title.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{%- assign website = include.website -%}
{%- assign img_path = '/img/' | append: include.section | append: '/' | append: website.img -%}
<div class="title">
<div class="keywords" style="display:none;">{{ website.name }}&nbsp;{{ website.url }}</div>
<noscript>
<img src="{{ img_path }}" class="icon" alt="{{ website.name }}">
</noscript>
Expand Down
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var jets = new Jets({
},
// Process searchable elements manually
manualContentHandling: function(tag) {
return $(tag).find('.title > a.name').text();
return $(tag).find('.keywords').text();
}
});

Expand Down

0 comments on commit a2a328c

Please sign in to comment.