Skip to content

A hugo-lunr alternative written in go

Notifications You must be signed in to change notification settings

drummonds/hugo-golunr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hugo-golunr, a golang alternative to 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

The original is here: go get github.com/arial7/hugo-golunr

Usage

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.

Tidying

I have moved the code to a standard format for a command line format and added a mod.ls

Change History

V1.1.0 2023-05-29

  • Fixing index.md being resolved as ../ instead of ../

V1.0.0 2023-03-31

  • Breaking change change location to be relative so can reuse json with local build as well as remote.

About

A hugo-lunr alternative written in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%