eueung / hugo-casper-two

Port of Casper 2.x to Hugo
MIT License
141 stars 116 forks source link

Syntax highlighting #20

Open emoro opened 5 years ago

emoro commented 5 years ago

Hi Love the theme! Thanks. I've been trying to change the syntax highlighting in the R code chunks, but no luck. I have modified the head.html file to include

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" />

(note the "github" instead of the "default"), but it isn't working.

Any idea why?

ceessay commented 5 years ago

I have the same issue. @emoro did you find a solution?

rafatrace commented 5 years ago

@ceessay @emoro If you are sill looking for the solution, i have something that worked for me. What I did was:

Everything should be ok, just restart hugo server and check again. This worked for me, but I'm not 100% sure about this trick.

ceessay commented 5 years ago

Thank @rafaelsnts. It's working!

emoro commented 5 years ago

Thanks @rafaelsnts, it worked!!

rguske commented 5 years ago

Nice work @rafaelsnts Thx a lot!