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:

生成标签页面

  1. >hexo new page "tags"
  2. 编辑分类页面 \source\tags\index.md
  3. >title: tags
  4. >date: 2020-10-22 18:59:59
  5. >type: "tags"
  6. >layout: "tags"
  7. 生成分类页面
  8. >hexo new page "categories"
  9. 编辑分类页面 \source\categories\index.md
  10. >title: categories
  11. >date: 2020-10-22 19:00:59
  12. >type: "categories"
  13. >layout: "categories"

github pages 绑定域名 显示 404 无法访问

在本地source文件夹里新建CNAME文件,写上你的域名即可
使用master分支
每次更新代码后域名需要重新绑定
_config.yml中设定正确的域名

项目属性改为公开 public
打开项目 >> settings >> 在页面最下找到 Change repository visibility >> Change visibility >> Make public

hexo疑难杂症 - 图1


代码块显示行号

  1. highlight:
  2. enable: true
  3. line_number: false
  4. auto_detect: true
  5. tab_replace: ''
  6. wrap: true
  7. 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>