Show "Live Reload Enabled/Disabled" in latest terminal output

It would handy if Hugo showed the state of Live Reload in the latest terminal output, or even just when Live Reload is enabled. I learned the hard way that accidentally pushing your site live when Live Reload is enabled cripples your website. But without knowing the current state in the latest terminal output, you either have to…

  • Remember whether it’s enabled or not
  • Scroll up through terminal to have a look
  • Use Ctrl + C to stop the server and then restart it making sure that --disableLiveReload is run.

Or maybe I’m I’m just missing something?

So I thought instead of this…

0 of 4 drafts rendered
0 future content 
10 pages created 
0 featured created
in 97 ms
Change detected, rebuilding site

This might be benefitial…

0 of 4 drafts rendered
0 future content 
10 pages created 
0 featured created
in 97 ms
Change detected, rebuilding site
Live Reload Enabled

It could be a constant showing whichever state is active, Live Reload Enabled or Live Reload Disabled, or it could just show when Live Reload Enabled is true?

This is a good idea. Just show when it’s enabled sounds good to me. A pull request is welcome.

On a side note: I’m a strong believer in water-tight separation between dev and prod deployment scripts, so I cannot say this is a problem for me.

Agree. Would welcome the PR.