permalink: :title.html方式插入圖片路徑錯(cuò)誤
該方式會(huì)自動(dòng)在根目錄添加同名+.htm文件夾
最終導(dǎo)致無(wú)法找到插入的圖片
解決辦法就是不用這種域名解析方式
標(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
代碼塊顯示行號(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>