Can't configure highlight

To reproduce:

  1. hugo new site my-blog --format yaml
  2. Switch current dir to my-blog, execute hugo new theme my-theme
  3. Copy files in themes/my-theme to site root, mv themes/my-theme/* .
  4. Delete copied hugo.toml
  5. Edit hugo.yaml in project root, add the following lines
markup:
  highlight:
    style: github
  1. Add a post containing a simple code fence.
  2. Run hugo server
  3. The highlighting style is still monokai, not github.

Not only style property, changing other highlight properties will not take effect too.

I am unable to reproduce the problem as described.

I ran hugo server this morning without modifying hugo.yaml, code highlighting style changed to github. It worked, but I don’t know why. Sorry to bother you.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.