Sometime I have pages or posts that I don’t want showing up in the frontend. So my way to fix this, is to keep them as drafts, run hugo localy with --buildDrafts and then scp it to the server.
Was just wondering if there is a better way of doing this that didn’t involve messing too much with the listings (since I have several of them in different places of the theme).
At first glance it sounds like you are using drafts as intended. Could you rephrase your question? Is there something about keeping posts as drafts that is confusing or creating extra work for you?
Also, what is the “frontend” in your context? I ask, because for Hugo I imagine that is the public site generated, but you are using --buildDrafts, and that seems to counter what you are trying to do.