hugo-theme-cleanwhite icon indicating copy to clipboard operation
hugo-theme-cleanwhite copied to clipboard

I have to run `npm run algolia` at every new post or edit?

Open giuliomagnifico opened this issue 7 months ago • 2 comments

Hello and thanks for this great theme, I'm setting up it.

But I have one question about the algolia searche, like the tile says: I have to re-run the npm run algolia when I update the website?

If yes, there's a way to keep it always running, and is it correct? I mean like create a .service file like this (sorry I'm not familiar with npm):

[Unit]
Description=Run algolia
After=network.target

[Service]
WorkingDirectory=/my-site/
ExecStart=/usr/bin/npm run algolia
Restart=always
User=root
Environment=ALGOLIA_INDEX_NAME=my-index

[Install]
WantedBy=multi-user.target

thanks!

giuliomagnifico avatar Jul 19 '24 20:07 giuliomagnifico