Hugo安装测试(未完待续)
文章目录
#安装教程如下
hugo new site blog
cd blog/themes/
#参考阳明博客直接复制主题
git clone https://github.com/cnych/qikqiak.com.git
cp -dprf qikqiak.com/themes/beautifulhugo .
cp qikqiak.com/config.toml ../
cd ..
#修改配置文件
vim config.toml
baseURL = "https://www.1nth.com/" #自己网站名称
googleAnalytics = "UA-154483127-1" #google流量分析
sed -i "s/UA-69668147-3/UA-154483127-1/g" beautifulhugo/layouts/partials/footer.html
#发布
cd blog/public/
git init
git remote add origin git@github.com:21ki/21ki.github.io.git
git add -A
git commit -m "first commit"
git push -u origin master
#日常发布
git add -A
git commit -m "update"
git push -u origin master
#google analytics流量插件地址如下
https://analytics.google.com/
#google adsense 广告插件学习中
https://www.google.com/adsense/new/u/0/pub-2427629508597494/home
<script data-ad-client="ca-pub-2427629508597494" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
文章作者 🐳Myki
上次更新 2019-12-12