xiaoheiAh/hugo-theme-pure

Add support for choosing syntax highlighting languages.

udit-001 opened this issue · 4 comments

I was wondering about how should we implement this?

@udit-001
Just do this PR work.And add corresponding params in config.yml.

No I was wondering, that do we need post wise options as well?

like the site wide config it would be:
hightlightjs: enable: true langs: ["python", "javascript"]

and for post, the config would be:
syntax : ["python", "javascript"]

it's too detailed so that i don't think it's useful.Just give a wide config: langs:["python","javascript"]

@xiaoheiAh I created a PR, for this #39, please check out!