When using Hugo, if you don’t want your drafts published, don’t pass the -D flag. (And don’t forget to rm -r the public/ directory first.) The bigger lesson here is: if you’re gonna cargo-cult commands, watch out for side effects.