readFile'd content only visible from hugo server or local builds

I have a project I’m trying to use Hugo with ( with a custom shortcode, include-json:

{{ printf "```json\n%s\n```" (readFile (.Get 0)) | markdownify }}

When I use hugo or hugo server, the page appears correctly:


hugo server: (new user image limit)

However, when Travis builds it, the JSON files are not properly included: (new user image limit)

I don’t get any relevant-sounding warnings, either…

This is definitely highlighting-related – after disabling highlighting, the JSON shows up. pygmentize is in the PATH, though: