Make sure you have a valid config file set up. You can create a sample config by running:
nuch --config
This will put a default configuration file in your XDG config directory (usually ~/.config/nuch/config.toml).
[working]
files = "Documents/writings"
images = "Documents/writings/images"
[[collection]]
name = "writing"
files = "your-site/content"
images = "your-site/public/images"
[[collection]]
name = "blogs"
files = "your-site/content/blogs"
# images omitted — optional
IMPORTANT
All paths are relative to your home directory.
Make sure to adjust the paths according to your project structure.
The working directories specified in the config file must contain valid Markdown files or images.
workingPoints to where your unpublished files are located.
filesPoints to the directory where your unpublished Markdown files are located.
example: Documents/writings
imagesPoints to the directory where your unpublished images that are used in the post are located.
example: Documents/writings/images
collectionYou should define each collection corresponing to the content collections defined in your content.config.ts file. Each collection must have a unique name.
nameThe name of the collection as defined in your content.config.ts file.
example: content or blogs
filesPoints to the directory that you defined as the content's collection in your content.config.ts file.
example: your-site/content or your-site/content/blog
imagesPoints to the directory where your images will be copied when publishing the post. This directory must be inside the public/ directory of your site.
example: your-site/public/images or your-site/public/blog-images
NOTE
Theimagesfield is optional. If omitted, NUCH will not copy any images when publishing.