hexo疑難雜癥

permalink: :title.html方式插入圖片路徑錯(cuò)誤

該方式會(huì)自動(dòng)在根目錄添加同名+.htm文件夾

最終導(dǎo)致無(wú)法找到插入的圖片

解決辦法就是不用這種域名解析方式

作者issue已記錄該問(wèn)題


標(biāo)簽頁(yè)面不顯示標(biāo)簽列表

step one:

scaffolds/draft.md

title: {{ title }}

tags: {{ tags }}

scaffolds/post.md

title: {{ title }}

date: {{ date }}

tags: {{ tags }}

tags/index

title: Tagcloud

date: 2017-04-26 17:47:43

type: "tags"

layout: "tags"

step two:

生成標(biāo)簽頁(yè)面

<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">>hexo new page "tags" 編輯分類頁(yè)面 \source\tags\index.md >title: tags >date: 2020-10-22 18:59:59 >type: "tags" >layout: "tags" 生成分類頁(yè)面 >hexo new page "categories" 編輯分類頁(yè)面 \source\categories\index.md >title: categories >date: 2020-10-22 19:00:59 >type: "categories" >layout: "categories"</pre>


github pages 綁定域名 顯示 404 無(wú)法訪問(wèn)

在本地source文件夾里新建CNAME文件,寫(xiě)上你的域名即可

使用master分支

每次更新代碼后域名需要重新綁定

_config.yml中設(shè)定正確的域名

項(xiàng)目屬性改為公開(kāi) public

打開(kāi)項(xiàng)目 >> settings >> 在頁(yè)面最下找到 Change repository visibility >> Change visibility >> Make public

image

代碼塊顯示行號(hào)

<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">highlight: enable: true line_number: false auto_detect: true tab_replace: '' wrap: true hljs: false</pre>


突(丑)出(不)打(要)賞(臉)

  • 修改hexo/themes/hexo-theme-matery/layout/_partial/reward.ejs中“賞”字及DIV樣式
    style="font-size:50px;width:100px;height:100px;line-height:100px;"
  • 修改hexo/themes/hexo-theme-matery/layout/_partial/post-detail.ejs中在版權(quán)信息上面添加打賞模塊
  • 打賞模塊 hexo/themes/hexo-theme-matery/layout/_partial/wx2zfb.ejs

<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);"><div class="reprint" id="reprint-statement" style="padding:20px;text-align:center;"> <img src="<%- theme.jsDelivr.url %><%- url_for(theme.reward.thanks) %>"></img> </div></pre>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容