While playing around and studying features I sometimes make very bad mistakes…
cause by:
- typos
- missing knowledge
- try strange things
Would you like to have issues for these cases?
Some examples for hugo.toml
baseURL = "https://example.com/"
defaultContentLanguage = "en"
title = "Module Mounts"
disableKinds = ['RSS', 'sitemap', 'taxonomy', 'term']
[module]
[[module.mounts]]
source = "content"
target = "content"
Example 1
[[module.mounts]]
source = "."
target = "content"
hugo
at least buildshugo server
endless loop
Example 2
[[module.mounts]]
source = "/" # UNIX
source = "c:/" # Windows
target = "content"
-
Ubuntu (WSL Ubuntu on Windows 11)
hugo
panichugo server
panic
-
Windows 11
hugo
fails with Access denied on first file sound where user has no rightshugo server
fails with Access denied on first file sound where user has no rights
Example 3
[[params]]
hugo
panichugo server
panic