ghosthugo

command module
v0.0.0-...-5dfb10e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

README

ghosthugo

Import content from ghost cms

Build

docker build -t ghosthugo .

Config

Place a .env file in your hugo repo with the GHOST_URL and GHOST_KEY values:

GHOST_URL=http://127.0.0.1:3001
GHOST_KEY=deadbeefa20ebee47bafbb714

Additionally, if your base content folder does not follow the content/posts convention, you can override it with the HUGO_CONTENT variable:

HUGO_CONTENT=/content/en/posts

Use

The entrypoint executes ghosthugo, imports the content, and then passes any arguments to the hugo binary in the container. You might want to pass the current folder to let it write into the content/posts folder. Exposing the hugo port can also come handy:

docker run --rm -it -v .:/site -p 1313:1313 ghosthugo server --bind 0.0.0.0 -p 1313

Limitations

Handling of multi-lingual content will not work for now. Ideas/patches are welcome!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL