• 使用Hexo生成静态网站时, 如果使用hexo n 指令直接将新创建的文章放到source/_post目录的子目录下. 如果想生成到制定目录下:
    生成 _post/Verb 文件夹下, 且生成 Verb.md 文件.

    1
    hexo n post -p Verb/Verb
  • 在博客中插入音频

  • 在博客中嵌入相册
    参考教程

  • 如何在HTML中隐藏特定文字
    要隐藏特定的文本内容,可以使用HTML的标签和CSS的选择器。首先,给要隐藏的文本添加一个特定的标签或类名,然后使用CSS选择器来选择这个标签或类名,并设置其display属性为none。例如:<span class="hidden">要隐藏的文本内容</span>,然后在CSS中使用.hidden {display: none;}来隐藏这段文本。

  • ERROR Plugin load failed: hexo-link-obsidian

  • hexo-link-obsidian 此插件必须配合
    • Obsidian插件 link-info-server 获取双向文件信息
    • hexo插件abbrlink 生成网页永久链接
  • 给 Obsidian 手动安装插件 link-info-server
  • 参考教程
  • link-to-server
    • 安装 yarn, 再安装 hexo-link-obsidian → There appears to be trouble with your network connection. Retrying…
1
2
3
4
5
6
7
8
9
10
11
cnpm install -g yarn
yarn add hexo-link-obsidian
yarn add v1.22.22
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
  • 设置淘宝镜像和官方源

    1
    2
    yarn config set registry https://registry.npm.taobao.org/
    yarn config set registry https://registry.npmjs.org/

仍然报错 “The engine “node” is incompatible with this module. Expected version “^16.0.0”. Got “22.11.0””, 需要通过安装 nvm 来升级 node,

  • 参考教程

  • 在 Windows 下手动安装时在 nvm-0.40.1 文件夹下, 右键 git bash here, 并且安装镜像

    1
    2
    3
    4
    5
    6
    7
    $ sh ./install.sh
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
    export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/
    nvm install 22.11.0
    yarn add v1.22.22
  • 博客中实现链接跳转
    markdowm 中链接的语法: [text](url)

  • 博客中实现 Obsidian 链接跳转, 双向链接渲染
    参考教程

    1
    cnpm install hexo-filter-titlebased-link --save

    紧接着在站点根目录下的配置文件添加如下代码:

    1
    2
    3
    4
    # hexo-filter-titlebased-link
    # https://github.com/uuanqin/hexo-filter-titlebased-link
    titlebased_link:
    enable: true # enable this plugin

    具体实现

    1
    [[Addmemos]]

    [[Addmemos]]

  • Obsidian 模板插入的时间格式和 hexo 生成的 YYYY-MM-DD HH:mm:ss 不一样
    设置>模板>日期格式: YYYY-MM-DD HH:mm:ss