hexo遇到的各種坑

2021-10-05 10:20:43 字數 1047 閱讀 7618

同時當你部署完成之後, 雖然你的部落格裡有了, 但是點進去就是404

解決方案: 把你即將要上傳的檔案的檔名中的空格刪掉就可以了。

hexo-generator-sitemaphexo-generator-baidu-sitemap生成的站點地圖裡面鏈結全是.但是我想分別做coding.megithub.io,所以只需要更改一下sitemap外掛程式的模板就可以了。

*hexo-generator-sitemap 的模板 *預設是blog\node_modules\hexo-generator-sitemap\sitemap.xml,url的預設格式是:

1

}

修改為

1

}

網域名稱要加」」變成字串,不然deploy的時候會報錯

hexo-generator-baidu-sitemap的模板是\blog\node_modules\hexo-generator-baidu-sitemap\baidusitemap.ejs,其中url的預設格式是:

1

<%- encodeuri(url + post.path) %>

修改為

1

<%- encodeuri("" + post.path) %>

網域名稱要加」」變成字串,不然deploy的時候會報錯

1

恰似你一低頭的溫柔,較弱水蓮花不勝寒風的嬌羞, 我的心為你悸動不休。  --mingfuyan

python 遇到的各種坑

錯誤 unbound method read must be called with rawconfigparser instance as first argument got str instance instead 解答 因為read不是靜態方法,所以必須例項化才能使用 錯誤 valueerr...

學習記錄 web 開發中遇到的各種坑

這段時間使用爬蟲跟蹤鏈家固定區域的房價走勢,開發了乙個小web系統,記錄一下中間遇到的各種坑 主要有以下幾個組成部分 1.前台 bootstrap 2.後台 python flask 3.資料庫 mongodb 1.flask 使用render template 進行資料互動,並且js進行讀取 背景...

部署Django伺服器遇到的各種坑

參考 sudo apt get install software properties common sudo add apt repository ppa jonathonf python 3.6 sudo apt get update sudo apt get install python3.6...