/
githubmirror
/
hugo
Обзор
Документация
Войти
/
githubmirror
/
hugo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testscripts/server/server__delete_static_file_mount.txt
32 строки
567 B
Bjørn Erik Pedersen
Fix server errors when deleting static files or directories
08 авг 2026, 19:08
08 авг 2026, 19:08
a808f6e
Код
Авторство
О чём код?
# Test the hugo server command when removing a file mounted into static. # See issue 15174. hugo server & waitServer rm myfiles/robots.txt sleep 2 stopServer ! stderr . -- hugo.toml -- title = "Hugo Server Test" baseURL = "https://example.org/" disableKinds = ["taxonomy", "term", "sitemap"] [[module.mounts]] source = "content" target = "content" [[module.mounts]] source = "layouts" target = "layouts" [[module.mounts]] source = "myfiles/robots.txt" target = "static/robots.txt" -- layouts/all.html -- All. -- content/p1.md -- -- myfiles/robots.txt -- robots