“Hexo中代码块的两种写法”及“在代码块中使用反引号(代码块开始标记)的方法”
主要分享一下 Hexo 中代码块的高级用法……
例如:设置标题,源码url等……
顺便解决一下“怎样在代码块中写代码块”的问题
Wolfram Mathematica 11/12/13 Key Generator
This page provides:
Updated: Oct 3, 2022
分享一些通常建站时需要做的事情、注意事项,以及常用的Centos命令
众所周知,Hexo 博客在 deploy 时,默认使用的是
Git全局用户。近期因为个人需要,在一台PC上配置了多个
git账户(取消了全局用户设置),导致 执行 hexo d
时报错,提示需要配置用户名。
因此,我们需要 “为 Hexo 博客单独配置指定的 git 用户” 。不过网上的教程大部分都是设置全局用户的方法,在一番折腾之后,我终于找到了的解决方案,就此分享一下。
ssh-key 是用于认证 Github 账户的密钥,对所有的 repository (下文简写为 repo ) 都有操作权限;而 deploy-key 只允许对特定 repo 进行操作,每个 repo 的 deploy key 都是独有的,其他 repo 无法使用相同的 key。
下面是 Github 官方的说明:
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
出于安全考虑(尝试新事物),我决定为托管在 Github
上的这个博客配置单独的 deploy-key.