Skip to content
This repository will contain Hugo’s content and other source files.
Branch: master
Clone or download
fuhui
Latest commit c6974ff May 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
archetypes hugo init repository Feb 16, 2018
content common commit May 18, 2019
layouts/partials common commit Mar 31, 2019
public @ 1c5fa33
static common commit Apr 14, 2019
themes/hugo-ivy common commit Mar 31, 2019
.gitignore 添加图片 Mar 9, 2019
.gitmodules
README.md
config.toml
package.json
simple-deploy.sh

README.md

neojos blog

This repository will contain Hugo’s content and other source files.

配置submodules

当前项目下·public目录是作为submodules存在的,当使用包管理工具时,需要明确声明.gitmodules文件,内容如下:

[submodule "public"] 
  path = public 
  url = https://github.com/GitHubSi/githubsi.github.io.git

自动提交

这个博客由2部分代码组成:

  1. 源码。这个在github上有一个专门的代码库
  2. hugo编译后的代码,这个直接在源码代码中嵌套了submodules

所以每次有新的修改都需要提交两次,而且每次还需要输入用户名和密码,这真是痛苦无比的事情。最终还是提交了simple-deploy.sh脚本,来自动做这件事。

You can’t perform that action at this time.