I was wondering if anyone could tell me if it is possible to somehow comment out shortcodes in markdown content…
For example I have the following shortcode ->
{{% HOVER_POPUP %}} "visible text" "This is my content with markdown **inside of it** hope it helps..." {{% /HOVER_POPUP %}}
But…I have not yet actually made the shortcode. Is there a way I can comment out the whole thing in my markdown file so that hugo doesn’t crack a bananna and stop building the site?
…or alternatievly, is there a way to force hugo to build the page even if its got an error? (such as the markdown file not existing?)
Try {{/* at the begging of the shortcode and */}} at the end of the shortcode. On phone, so can’t test if this is the syntax for commenting out Golang’s templating curlies, but hopefully my memory serves…
Sorry for the delay, and thank you kindly for all your helps…
I am still struggling to get this to work. I gather there is no definitive guide to commenting anywhere?
I can comment out content etc, had no problem with that…but I am writing content before my shortcodes exist, and want to be able to write shortcodes in, but comment them out…
I think I am going crazy, because I have tried so many things;
Starting from scratch now; I have tried the following; All of which fail…
The “shortcode comment” syntax was added by me as a way to add shortcode examples to the documentation (i.e. preventing them to be processed as shortcodes).
Thanks guys for all your help…and going the extra mile…
I find that syntax is hard on the eyes to say the very least…
I’m still having problems in some places, but perhaps its just my inexperience with shortcodes as well…I dont have anymore time to sink into it…I think I will just write my shortcodes first as the best course of action
I think though, my current situation is that I am currently mocking content…not sure that’s a viable solution…well it is, I suppose, just not the best one…
The last thing you want when mocking content is to be messing with other things…(e.g. at the moment Im working on a work around to a work around, and I have no idea what I was actually thinking when I got to the work around) :)…its a horrible situation… haha
Just would be nice to have a way where one can comment a whole bunch of stuff in markdown files and have it completly ignored…I can’t see that there is, without a fine grained comb…