Sign in

Install javascript library

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3318
    Avatar photo[anonymous]

    Hi. I want to know if it is possible to add an external JavaScript library. I have added highlight.js in the header but it doesn’t work. Am I doing something wrong or are the external libraries not working?

    I’d like to buy your latest template for my blog, but I need the code to look better (similar to VSCode).

    #3322
    Avatar photoBob

    It is, have a look at the implementation of the prism library https://getpublii.com/docs/highlight-your-code-syntax-with-prism-js.html

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3324
    Avatar photo[anonymous]

    Thank you very much Bob! Sorry for not consulting the documentation first.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Install javascript library’ is closed to new replies.