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.

25 lines
595 B

  1. def get_hugo_config_content():
  2. content = """
  3. baseURL = 'http://example.org/'
  4. languageCode = 'en-us'
  5. title = 'My New Hugo Site'
  6. [module]
  7. [[module.imports]]
  8. path = "github.com/colinwilson/lotusdocs"
  9. disable = false
  10. [[module.imports]]
  11. path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
  12. disable = false
  13. """
  14. return content
  15. # Get TOML file content
  16. toml_content = get_hugo_config_content()
  17. # Write the content in a hugo.toml file
  18. with open('hugo.toml', 'w') as file:
  19. file.write(toml_content)
  20. print("File hugo.toml generated with success.")