This commit is contained in:
xugaoyi 2020-12-15 23:35:43 +08:00
parent efa8a58e14
commit dc71b181f0
4 changed files with 19 additions and 2 deletions

View File

@ -6,4 +6,4 @@ set -e
# 百度链接推送 # 百度链接推送
curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=https://xugaoyi.com&token=T5PEAzhGaPNbjQ2X" curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=https://xugaoyi.com&token=T5PEAzhGaPNbjQ2X"
rm -rf urls.txt # 灭迹 rm -rf urls.txt # 删除文件

View File

@ -27,6 +27,8 @@ git push -f $githubUrl master:gh-pages # 推送到github
# deploy to coding # deploy to coding
echo 'www.xugaoyi.com\nxugaoyi.com' > CNAME # 自定义域名 echo 'www.xugaoyi.com\nxugaoyi.com' > CNAME # 自定义域名
echo 'google.com, pub-7828333725993554, DIRECT, f08c47fec0942fa0' > ads.txt # 谷歌广告相关文件
if [ -z "$CODING_TOKEN" ]; then # -z 字符串 长度为0则为true$CODING_TOKEN来自于github仓库`Settings/Secrets`设置的私密环境变量 if [ -z "$CODING_TOKEN" ]; then # -z 字符串 长度为0则为true$CODING_TOKEN来自于github仓库`Settings/Secrets`设置的私密环境变量
codingUrl=git@e.coding.net:xgy/xgy.git codingUrl=git@e.coding.net:xgy/xgy.git
else else
@ -37,4 +39,4 @@ git commit -m "${msg}"
git push -f $codingUrl master # 推送到coding git push -f $codingUrl master # 推送到coding
cd - # 退回开始所在目录 cd - # 退回开始所在目录
rm -rf docs/.vuepress/dist rm -rf docs/.vuepress/dist

View File

@ -58,6 +58,7 @@ body {
} }
``` ```
<!-- 广告 -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" <ins class="adsbygoogle"
style="display:block; text-align:center;" style="display:block; text-align:center;"

View File

@ -51,6 +51,20 @@ web前端小学生
🎉🎉✨与我 <a :href="qqUrl">联系↑</a> 获取前端 [学习资源](https://github.com/xugaoyi/blog-gitalk-comment/wiki/Front-end-Study) 🎉🎉✨与我 <a :href="qqUrl">联系↑</a> 获取前端 [学习资源](https://github.com/xugaoyi/blog-gitalk-comment/wiki/Front-end-Study)
<!-- 广告 -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 横向自适应长方块 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7828333725993554"
data-ad-slot="7774950020"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script> <script>
export default { export default {
data(){ data(){