Skip to content

Commit

Permalink
update Tue Dec 17 03:38:00 PM CST 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
vanJker committed Dec 17, 2024
1 parent 40b9b27 commit 4615382
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ Install hugo in its [releases](https://github.com/gohugoio/hugo/releases) page o

Then, clone this repository with its all submodules.

```bash
```sh
$ git clone --recurse-submodules -j8 [email protected]:vanJker/vanJker.github.io.git blog
```

## Usage

```sh
# Run the blog in local
$ ./run.sh
# Commit all changes [with ammend]
$ ./commit [-a]
# Fetch and merge latest commit of blog [and theme PaperMod]
$ ./pull.sh [-t]
```

8 changes: 6 additions & 2 deletions commit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# 提交更改到Git仓库
git add .
git commit -m "update $(date)"

if [[ "$#" -eq 0 ]]; then
git commit -m "update $(date)"
elif [[ "$#" -eq 1 && "$1" == "-a" ]]; then
git commit --amend
fi
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL: "https://vanJker.github.io/" # 主站的 URL
title: VanJker's Blog # 站点标题
title: Joker Von's Blog # 站点标题
copyright: "[©2024 VanJker's Blog](https://vanJker.github.io/)" # 网站的版权声明,通常显示在页脚
theme: PaperMod # 主题
languageCode: zh-cn # 语言
Expand Down
7 changes: 7 additions & 0 deletions pull.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

git pull

if [[ "$#" -eq 1 && "$1" == "-t" ]]; then
git submodule foreach git pull origin master
fi

0 comments on commit 4615382

Please sign in to comment.