Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riesinger/hugo-golunr
A hugo-lunr alternative written in go
https://github.com/riesinger/hugo-golunr
go golang hugo lunr
Last synced: 16 days ago
JSON representation
A hugo-lunr alternative written in go
- Host: GitHub
- URL: https://github.com/riesinger/hugo-golunr
- Owner: riesinger
- Created: 2017-06-30T08:56:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-29T17:22:32.000Z (over 2 years ago)
- Last Synced: 2024-10-14T18:41:34.903Z (25 days ago)
- Topics: go, golang, hugo, lunr
- Language: Go
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - riesinger/hugo-golunr - A hugo-lunr alternative written in go (golang)
README
# `hugo-golunr`, a golang alternative to [hugo-lunr](https://www.npmjs.com/package/hugo-lunr)
As you probably don't like installing node, npm and a ton of packages into your CI, which generates
a static hugo page, I created this golang implementation of `hugo-lunr`. It generates a lunrjs
search index from the current working directory.## Installing
`go install github.com/riesinger/hugo-golunr@latest`
## Usage
```sh
cd /path/to/your/site
hugo-golunr
```Pretty easy, huh? After running `hugo-golunr`, you'll see a `search_index.json` file in your
`./static` directory. Just load that in your theme.