Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matcornic/hugo-theme-learn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorozobi <13084362+ozobi@users.noreply.github.com>2019-03-19 18:33:54 +0300
committerMatthew Taylor <matalo33@users.noreply.github.com>2019-04-02 00:31:07 +0300
commit18212e67599813e4f97ecc66ebf3f8b32f54a0b5 (patch)
treeae28fbf65f80d946e6bcfefecc96b53936cba36f /static
parenta296946748fc556d58cc081c16f36fdac3550fd6 (diff)
Update search.js
fixed indent
Diffstat (limited to 'static')
-rw-r--r--static/js/search.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/static/js/search.js b/static/js/search.js
index 79a15e1..d7b893e 100644
--- a/static/js/search.js
+++ b/static/js/search.js
@@ -17,25 +17,25 @@ function initLunr() {
// Set up lunrjs by declaring the fields we use
// Also provide their boost level for the ranking
lunrIndex = lunr(function() {
- this.ref("uri");
- this.field('title', {
- boost: 15
- });
- this.field('tags', {
- boost: 10
- });
- this.field("content", {
- boost: 5
- });
+ this.ref("uri");
+ this.field('title', {
+ boost: 15
+ });
+ this.field('tags', {
+ boost: 10
+ });
+ this.field("content", {
+ boost: 5
+ });
- this.pipeline.remove(lunr.stemmer);
- this.searchPipeline.remove(lunr.stemmer);
+ this.pipeline.remove(lunr.stemmer);
+ this.searchPipeline.remove(lunr.stemmer);
- // Feed lunr with each file and let lunr actually index them
- pagesIndex.forEach(function(page) {
- this.add(page);
- }, this);
- })
+ // Feed lunr with each file and let lunr actually index them
+ pagesIndex.forEach(function(page) {
+ this.add(page);
+ }, this);
+ })
})
.fail(function(jqxhr, textStatus, error) {
var err = textStatus + ", " + error;