-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Tue Dec 17 03:38:00 PM CST 2024
- Loading branch information
Showing
5 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule PaperMod
updated
13 files
+2 −2 | .github/ISSUE_TEMPLATE/bug.yaml | |
+6 −6 | .github/workflows/gh-pages.yml | |
+1 −1 | README.md | |
+1 −1 | assets/css/core/license.css | |
+1 −1 | assets/js/license.js | |
+7 −7 | i18n/he.yaml | |
+22 −1 | layouts/_default/_markup/render-image.html | |
+2 −2 | layouts/_default/baseof.html | |
+9 −0 | layouts/partials/svg.html | |
+73 −50 | layouts/partials/templates/opengraph.html | |
+5 −1 | layouts/partials/templates/schema_json.html | |
+16 −23 | layouts/partials/templates/twitter_cards.html | |
+1 −1 | theme.toml |