Files
hugo/testscripts/commands/config.txt
T
2026-05-26 11:50:04 +02:00

23 lines
445 B
Plaintext

# Test the config command.
hugo config -h
stdout 'Display project configuration'
hugo config
stdout 'baseurl = .https://example.com/'
stdout '\[contenttypes\.'
hugo config --format json
stdout '\"baseurl\": \"https://example.com/\",'
hugo config mounts -h
stdout 'Print the configured file mounts'
hugo config mounts
stdout '\"source\": \"content\",'
# Test files
-- hugo.toml --
baseURL="https://example.com/"
title="My New Hugo Project"