This is a highly-opinionated tool that takes an existing Hugo project and compiles it as a Gopher site.
- Install Node.js, I think this requires at least Node 10.
- Run
node index.js [DIRECTORY]
where[DIRECTORY]
is the location of thecontent
directory of your Hugo site. - Copy the newly created
gopher/
directory to the root of your gopher namespace.
- 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.