How can I add custom scripts in index.html's head part in Docusaurus V2?

后端 未结 3 704
渐次进展
渐次进展 2021-02-14 14:51

We are making a website with Docusaurus V2.

In Docusaurus V1, there is a scripts setting in siteConfig.js to cusutimize html\'s head content. B

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-14 15:26

    i am also developing a blog which is based on docusaurus.
    and it provides the functionality to add script in head tag.
    follow below steps :
    1. Open siteConfig.js
    2. // Add custom scripts here that would be placed in tags.
    scripts: ['https://buttons.github.io/buttons.js'],

提交回复
热议问题