matcornic/hugo-theme-learn

Using hugo's native syntax highlighting

Open

#371 opened on 2020年2月10日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)HTML (1,575 stars) (1,427 forks)batch import
featurehelp wanted

説明

Dear,

Now we can activate Hugo's native syntax highlighting rather using highlight.js Hugo color my code before highlight.js render it, then highlight.js do again. I did this with Hugo 0.63.0

I disabled it by replacing static/js/highlight.min.js as

function EmptyHljs() {};
EmptyHljs.prototype.initHighlightingOnLoad = function(){};

But it looks weird, isn't it?

Thanks.

コントリビューターガイド