permalink: :title.html方式插入图片路径错误
该方式会自动在根目录添加同名+.htm文件夹
最终导致无法找到插入的图片
解决办法就是不用这种域名解析方式
作者issue已记录该问题
标签页面不显示标签列表
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:
生成标签页面
>hexo new page "tags"
编辑分类页面 \source\tags\index.md
>title: tags
>date: 2020-10-22 18:59:59
>type: "tags"
>layout: "tags"
生成分类页面
>hexo new page "categories"
编辑分类页面 \source\categories\index.md
>title: categories
>date: 2020-10-22 19:00:59
>type: "categories"
>layout: "categories"
github pages 绑定域名 显示 404 无法访问
在本地source文件夹里新建CNAME文件,写上你的域名即可
使用master分支
每次更新代码后域名需要重新绑定
_config.yml中设定正确的域名
项目属性改为公开 public
打开项目 >> settings >> 在页面最下找到 Change repository visibility >> Change visibility >> Make public
代码块显示行号
highlight:
enable: true
line_number: false
auto_detect: true
tab_replace: ''
wrap: true
hljs: false
突(丑)出(不)打(要)赏(脸)
- 修改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中在版权信息上面添加打赏模块
- 打赏模块 hexo/themes/hexo-theme-matery/layout/_partial/wx2zfb.ejs
<div class="reprint" id="reprint-statement" style="padding:20px;text-align:center;">
<img src="<%- theme.jsDelivr.url %><%- url_for(theme.reward.thanks) %>"></img>
</div>