88324498 2019-06-28
工具:Visual Studio Code/MarkdownPad
技术:Hexo+Github
deploy: type: git repository: [email protected]:ZengGuanBao/ZengGuanBao.github.io.git branch: master
或者在vscode中新建文件
npm install hexo-deployer-git --save
最后,在查询了一些资料之后,终于知道,这可能是hexo的缓存的问题,也就是你网站根目录的那个db.json文件,还知道了一点,推荐在发布网站之前,先清除缓存,然后再部署网站。
清除缓存的方法:
使用站内搜索,安装npm i -S hexo-generator-json-content
百度分享不支持Https的解决方案
将static文件夹放在网站的根目录下,并将对应的百度分享代码中,把http://bdimg.share.baidu.com/ 改为 /static/api/js/share.js?v=89860593.js?
<p><i class="fa fa-share"></i>分享到</p> <div class="bdsharebuttonbox"> <a href="#" class="bds_more" data-cmd="more"></a> <a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a> <a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a> <a href="#" class="bds_linkedin" data-cmd="linkedin" title="分享到linkedin"></a> <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a> <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a> <a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a> <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a> <a href="#" class="bds_evernotecn" data-cmd="evernotecn" title="分享到印象笔记"></a> </div> <script> window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "1", "bdSize": "24" }, "share": {}, "image": { "viewList": ["fbook", "twi", "linkedin", "qzone", "tsina", "douban", "weixin", "evernotecn"], "viewText": "分享到:", "viewSize": "16" } }; with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = '/static/api/js/share.js?v=89860593.js?']; </script>
评论功能使用的Valine
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> <script src='//unpkg.com/valine/dist/Valine.min.js'></script> <script> new Valine({ el: '#valine-thread' , notify: , verify: , app_id: '', app_key: '', placeholder: '', pageSize: '', avatar: '', avatar_cdn: '', visitor: }); </script> <div id="valine-thread"></div>