
hexo个人博客的一些经验
硬.汉
这个作者很懒,什么都没留下…
展开
-
hexo之修改占用端口的问题
一般默认为4040端口 如下代码更改hexo-server运行时的端口号: 可以在站点下的文件_config.yml内加上 server: port: 4040 compress: true header: true 这两个是确认你的github用户名,或者凭借这个更改你的用户名 git config --global user.name “用户名” git config --global user.email “邮箱地址” 重要测试:在git上在hexo主目录下运行一下 ssh -T git@github原创 2021-04-12 17:10:31 · 274 阅读 · 0 评论 -
hexo之在文章中添加图片
我用的是yilia主题! 首先设置站点配置_config.yml:将post_asset_folder: false 改为post_asset_folder: true 安装插件: npm install https://github.com/CodeFalling/hexo-asset-image -- save 运行hexo n “例如hello world”,生成XXXXX.md博文时就会在/source/_posts目录下生成hello world的文件夹 将你想在hello world博文中插入原创 2021-04-11 15:30:13 · 630 阅读 · 0 评论