forked from syslog-ng/syslog-ng.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some site search enhancement syslog-ng#15 (syslog-ng#20)
- restored original lunr search algorithm - added search help tooltip and page - search string is now preserved between page reloads - excluded not wanted pages from search results - tooltip is getting hidden automatically now on window focus lost as well Solves: syslog-ng#15 Signed-off-by: Hofi <hofione@gmail.com>
- Loading branch information
Showing
16 changed files
with
447 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
{% assign lang = site.locale | slice: 0,2 | default: "en" %} | ||
{% comment %} | ||
<!-- {% assign lang = site.locale | slice: 0,2 | default: "en" %} | ||
NOTE: currently only EN is supported | ||
{% case lang %} | ||
{% when "gr" %} | ||
{% assign lang = "gr" %} | ||
{% else %} | ||
{% assign lang = "en" %} | ||
{% endcase %} | ||
{% endcase %} --> | ||
{% endcomment %} | ||
{% assign lang = "en" %} | ||
<script src="{{ '/assets/js/lunr/lunr.min.js' | relative_url }}"></script> | ||
<script src="{{ '/assets/js/lunr/lunr-store.js' | relative_url }}"></script> | ||
<script src="{{ '/assets/js/lunr/lunr-' | append: lang | append: '.js' | relative_url }}"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.