Drafts showing in hugo live even after removing public/ directory after setting draft:true

Why?

  • I set draft:true for all the blog posts.
  • Then, I rm -rf public/
  • I am self hosting in my own linux server(I can’t test using localhost:1313 because the IP address of my server is 192.168.1.4)
  • I am tunneling through cloudflare to redirect public IP to my laptop’s IP.
  • Any guidance?

Looks like a cahing problem either on ur browser or in the chain.

You could specify ur locals server as baseURL on commandline to skip redirection.

Maybe more details on your operations will help.

How and on which machine you generate the pages.
How do you publish that to your server
How do you serve the pages from public

1 Like