Skip to content

Fix inconsistent "Watching for changes in [path]" output with hugo server #1721

@anthonyfok

Description

@anthonyfok

The printed watched paths look kind of weird when --source is a relative directory. For example:

foka@debian:~/git/hugo$ hugo server -s docs
0 draft content
0 future content
166 pages created
0 paginator pages created
41 tags created
0 groups created
in 409 ms
Watching for changes in docs/docs/{..}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
foka@debian:~/git/hugo$ cd docs
foka@debian:~/git/hugo/docs$ hugo server 
0 draft content
0 future content
166 pages created
0 paginator pages created
41 tags created
0 groups created
in 425 ms
Watching for changes in /home/foka/git/hugo/docs/{data,content,layouts,static}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions