No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Humphrey Drummond 7246bb1e5f Migrate module path from github.com to codeberg.org
Codeberg is the primary source; GitHub is a mirror.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:04:35 +00:00
cmd/hugo-golunr Migrate module path from github.com to codeberg.org 2026-03-26 23:04:35 +00:00
internal/post successfully swapped frontmatter library 2025-01-19 15:07:35 +00:00
.gitignore Added word set mode 2025-01-19 14:41:26 +00:00
go.mod Migrate module path from github.com to codeberg.org 2026-03-26 23:04:35 +00:00
go.sum adding task release and install 2026-01-16 16:27:40 +00:00
README.md Migrate module path from github.com to codeberg.org 2026-03-26 23:04:35 +00:00
task-plus.yml Add task-plus.yml for migration 2026-03-09 17:21:44 +00:00
Taskfile.yaml adding task release and install 2026-01-16 16:27:40 +00:00

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

go install codeberg.org/hum3/hugo-golunr@latest

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.
Documentation https://h3-hugo-golunr.statichost.page/
Source (Codeberg) https://codeberg.org/hum3/hugo-golunr
Mirror (GitHub) https://github.com/drummonds/hugo-golunr