Meekdai / Gmeek

Gmeek is a Blog All in Github
https://meekdai.github.io
MIT License
1.74k stars 250 forks source link

如何添加AdSense #197

Open huawuhen opened 3 weeks ago

huawuhen commented 3 weeks ago

1、config添加如下:

 "style":"<style>#postBody{font-size:20px}</style>",
    "script":"<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0117452261760390"   crossorigin="anonymous"></script>",

2、但是构建报错这行。

Meekdai commented 3 weeks ago
"script":"<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0117452261760390"   crossorigin="anonymous"></script>",

双引号内部需要使用单引号