mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
80e60847fb
Closes #14944
23 lines
445 B
Plaintext
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"
|