Blog

This is an article that was created 497 days ago, and the information may have evolved or changed.

之前的一些文章由于当时的软硬件版本或特性存在一定的时效性,比如一些解决方案,但随着时间推移可能已经推出新版本或新特性或变更不再适用当前。

在这些文章页面给出提示信息,提示注意甄别。

Read More

This is an article that was created 652 days ago, and the information may have evolved or changed.

在上上篇博文中描述了如何将博客源文件推送到GitHub私有仓库备份,这篇文将讲述如何从GitHub私有仓库clone至本地重构 Hexo 环境来写博客

网上也有很多文章描述如何操作,也可以去参考,我记录我的操作过程如下

Read More

This is an article that was created 654 days ago, and the information may have evolved or changed.

自己日常操作的几个脚本

  • bat启动 Hexo 本地服务
  • bat 推送至 Github
  • 自动打开markdown编辑器

Read More

This is an article that was created 654 days ago, and the information may have evolved or changed.

Hexo 部署到Github的文件不包含主题文件,md文件,模版,配置文件等,在新电脑要重新部署相同环境写博客就要拷贝这些文件过去,可以通过文件共享,U盘拷贝,云盘等手段

还有一种方法就是把这些文件也推送到Github仓库,网上看到有一个hexo-git-backup可以把源码推送到仓库分支实现备份。但是我觉得这样不妥,由于部署到Github的静态网站仓库是公开的,把源文推送这个分支,意味着所有人都可以看到源文件的配置,包括一些个人的信息,可能有网站统计,收录的token,这样就不太好

看到一篇博文(https://0skyu.cn/p/a8bd.html) 就整的非常好,其中原理过程可以自行去研究

我参考这篇文章记录我自己的过程和操作

Read More

This is an article that was created 657 days ago, and the information may have evolved or changed.

今天推送 Github Pages 博客发现需要输入账号密码,网页端检查SSH Keys 和本地检查公钥pub都没问题

最后通过搜索引擎助力,修改 https 方式为 git 方式,成功推送

方法:修改博客目录下的_config.yml文件配置(不是主题目录下的配置文件)

Read More

This is an article that was created 834 days ago, and the information may have evolved or changed.

最近发现我这个小破博客网站访问贼慢 ,FancyBox下的图片打开不是显示相册的模式而是跳转到图床网站显示,起初以为是网络不稳定,平时也不怎么关注,今天才注意到是cdn资源访问异常。

Read More

This is an article that was created 1070 days ago, and the information may have evolved or changed.

自己日常操作的一些小命令和插件。

bat启动 hexo 本地服务

前提条件:已完成博客搭建。

1
2
@echo off
start D:\Program" "Files\Git\git-bash.exe --cd=D:/blog/blog -c "hexo clean && hexo g && hexo s"
  1. 新建后缀为bat的脚本文件
  2. 复制以上命令粘贴(注意修改路径 ),保存
  3. 双击此脚本运行的结果相当于在你的 blog 路径下右键 “Git Bash Here” 并输入 “hexo clean && hexo g && hexo s” 运行.

Read More

This is an article that was created 1073 days ago, and the information may have evolved or changed.

我为什么要启用一个新 hexo 主题呢,没有什么特别的原因,单纯的想玩玩。而为什么要迁移到 GitHub 呢,这就故事很多了,下文详说。换主题换站点搞了好几天,对于不是专业搞代码的我确实折腾,不过乐在其中。看着浏览器历史里拉不到底的搜索记录和自己提的 To-Do List,我真是自己玩自己。

Read More

This is an article that was created 1424 days ago, and the information may have evolved or changed.

Test Page

  • This is a test page .
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×