jekyll-lunr-js-search icon indicating copy to clipboard operation
jekyll-lunr-js-search copied to clipboard

Integrating jekyll-lunr-js-search into minimal-mistakes-theme

Open Zujiry opened this issue 8 years ago • 1 comments

Hello,

so I know this is very specific but the search does not seem to work properly in the minimal-mistakes theme (https://github.com/mmistakes/minimal-mistakes).

When I follow step 1a), there is not one js file created. Could that have something to do with the folder structure of mm? It stores the js files in /assets/js. I already tried to change the folder to /assets/js in the _config.yml but that does not seem to help.

It seems in mm the jquery files are safed a bit different, so I put the files like this:

/assets/js |

  • _main.js
  • main.min.js
  • lunr.min.js
  • search.js
  • search.min.js
  • plugins|
    • jquery.lunr.search.js

But no index.json file is created.

I also saw this in the package.json file: scripts": { "uglify": "uglifyjs assets/js/vendor/jquery/jquery-1.12.4.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/_main.js -c -m -o assets/js/main.min.js", "add-banner": "node banner.js", "watch:js": "onchange "assets/js/**/*.js" -e "assets/js/main.min.js" -- npm run build:js", "build:js": "npm run uglify && npm run add-banner" },

I am not very much into javascript so I do not see what has to be done here. Very sorry to ask this here and thanks!

Zujiry avatar Jul 12 '17 09:07 Zujiry

Here were my comments on MM https://github.com/mmistakes/minimal-mistakes/issues/588

justinrummel avatar Aug 08 '17 16:08 justinrummel