digitalcraftsman / hugo-material-docs

Port of Martin Donath's mkdocs-material theme to Hugo
MIT License
706 stars 186 forks source link

syntax highligh with yaml #62

Closed pablodav closed 7 years ago

pablodav commented 7 years ago

Hello,

I'm not able to syntax highlight to yaml files.

When I add


# comment
var: code

It doesn't hightligh correctly.

I have tried with highligh.js loaded into ./layouts/partials/header.include.html as explained in http://gohugo.io/extras/highlighting/, but could get pretty highlighted

Also I couldn't undertand howto change the style for syntax highligh on this theme.

Thanks a lot for this theme, is pretty and clear.

pablodav commented 7 years ago

seems that I did it in incorrect way, seems that the correct way is to use custom_js https://github.com/digitalcraftsman/hugo-material-docs/blob/master/exampleSite/config.toml#L28