Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

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

Open
Zujiry opened this issue Jul 12, 2017 · 1 comment
Open

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

Zujiry opened this issue Jul 12, 2017 · 1 comment

Comments

@Zujiry
Copy link

Zujiry commented Jul 12, 2017

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!

@justinrummel
Copy link

Here were my comments on MM mmistakes/minimal-mistakes#588

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants