Skip to content

Compile a Hugo static website as a gopher site.

Notifications You must be signed in to change notification settings

judges119/hugogopher

Repository files navigation

Hugo Gopher

This is a highly-opinionated tool that takes an existing Hugo project and compiles it as a Gopher site.

Directions

  1. Install Node.js, I think this requires at least Node 10.
  2. Run node index.js [DIRECTORY] where [DIRECTORY] is the location of the content directory of your Hugo site.
  3. Copy the newly created gopher/ directory to the root of your gopher namespace.

Opinions And Limitations

  • It only understands JSON front matter right now. I might add YAML/TOML later. On the plus side, you can convert all your existing content with hugo convertToJsSON.
  • It uses the gophermap index file format used by PyGopherd
  • It only works with Markdown files
  • It outputs them as text files, the gophermap directories will reference them as plain text too.
  • It names your posts after the slug property in your post front matter
  • It creates directories for year/month/day and puts your posts in there.

About

Compile a Hugo static website as a gopher site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published