Wow, this was a surprise. Especially as I can’t find any errors in logs or --logLevel, build or anything.
I have a working website for a Buddhist practice community. It employs numerous shortcodes. It builds and serves locally, and publishes without error. Here is an example of one of the pages, with three audio files reference using an {{ < audio > }} code.
I began building out a parallel project based on this one. It uses the same almost everything. I have been building and publishing without issue, the latest push/build about two hours ago. And here is the associated page on the new site. The Audio shortcode is fine.
I created a new .md content file in the old site and published it. All good. I copied and pasted that file into my en-us directory, renamed it, and ran a build. It worked fine. There was a little formatting in my file that I didn’t like, so I used markdown > to blockquote a portion of the text. That also was fine, but wasn’t an attractive solution. So I used another shortcode I have all over the place, {{ < indent > }} to push in an indented < span >. This would have been a nested shortcode… but already used this way in numerous other locations.
Somewhere in this or the next build, there was a problem constructing the site. No error, but the Audio HTML no longer appeared. Looking further, I found that NO SHORTCODES were being resolved at all, anywhere! I looked at the published files in my docs folder – BLANK where the shortcodes would have resolved. What the heck!
I have tried the following, in order of increasing frustration and/or panic. None of them have corrected the issue:
- Removed the shortcode – guess something didn’t like it.
- Reverted the file to original via git.
- Removed the file altogether. The site and content is now identical to where I successfully built one hour earlier.
- Reverted to a GIT release from yesterday … expression has changed from WTH to WTF?
- Restarted vscode.
- Rebooted the machine.
- Created new git repo from the (successful!) build this morning … WTF? => WTF?!
- Looked at the Hugo site for troubleshooting, running log @ debug
… ran template metrics, and the shortcodes are appearing…?
… ran the audit command on my (public) /docs folder, which resulted in a bunch of lines but nothing I could identify as an issue:
HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true hugo && grep -inorE “<–header raw HTML omitted -->|ZgotmplZ|[i18n]|()|(<nil>)|hahahugo” docs/ | less
The WTF??!! here is that I am running a common executable on both web sites, and a new clone of the existing, built and functioning repo, in a separate folder, ALSO does not load the shortcodes. The original site continues to build and present fine, both locally and on the server.
Gentlepeople, where in tarnation do I go from here? IS there anything else I can test?
Fedora Linux 40, intel Core i7, 32GB RAM, 256GB SSD, all resources plentiful.
VS Code 1.91.0
Not using a theme
Did not post a particular shortcode, since ALL of them are failing, for this repo only