- Netlify site name: eloquent-jennings-266aef
- Site DNS: https://blog.wimwauters.com
I built a static site through Hugo. Site looks different through Netlify as compared to running it locally. A specific example is syntax highlighting for YAML. In the code I do the following:
```yaml --- - name: Getting started hosts: iosxe gather_facts: no tasks: - name: GATHERING FACTS ios_facts: gather_subset: hardware ```
So I’m “tagging” my snippet as a YAML snippet.
When I run hugo locally:
As a new user I can only add one image in my post here, so please have a look at the first snippet on this page to see how it looks like when it’s deployed through Netlify.
To have the syntax highlighting, I have added in the config.toml file the following (as per the Hugo documentation):
pygmentsCodefences = true pygmentsStyle = "arduino"
So I would indeed expect the Netlify hugo build command to look at that setting and apply it. But it looks like this is not happening (only for yaml as it seems)
The strange thing with all this, is that the syntax highlighting works for Python code (both locally and via Netlify).
Is this something YAML specific? Am I not setting it correctly?