How to inject js/css in rendered pages from Hexo plugin

What is the best way from a Hexo plugin,

  • to inject a script tag before the closing tag of a rendered page?
  • to include a css stylsheet into the of the rendered page?

Thanks



Read more here: https://stackoverflow.com/questions/60350687/how-to-inject-js-css-in-rendered-pages-from-hexo-plugin

Content Attribution

This content was originally published by Laurent Kempé at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: