You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
595 B
26 lines
595 B
|
|
|
|
def get_hugo_config_content():
|
|
content = """
|
|
baseURL = 'http://example.org/'
|
|
languageCode = 'en-us'
|
|
title = 'My New Hugo Site'
|
|
|
|
[module]
|
|
[[module.imports]]
|
|
path = "github.com/colinwilson/lotusdocs"
|
|
disable = false
|
|
[[module.imports]]
|
|
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
|
|
disable = false
|
|
"""
|
|
return content
|
|
|
|
# Get TOML file content
|
|
toml_content = get_hugo_config_content()
|
|
|
|
# Write the content in a hugo.toml file
|
|
with open('hugo.toml', 'w') as file:
|
|
file.write(toml_content)
|
|
|
|
print("File hugo.toml generated with success.")
|