Hugo Ananke highlight.pack.js


I'm building the site using the Hugo Ananke theme. I'm looking to highlight the R code using the highlight.js library. The theme does not support this automatically.

I tried to follow these instructions to no avail. Has anyone using this theme succeeded?

I managed to solve it. Below the solution:

Add the code below at the top of the page-header.html file:

<link href="//" rel="stylesheet">
<script src="//"></script>
<script src="//"></script>
hljs.configure({languages: []});

change default to the style of your choice and r change to the language of interest.

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