-
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.
- Loading branch information
0 parents
commit fc0ac1a
Showing
5 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.hugo_build.lock | ||
public/ |
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,3 @@ | ||
[submodule "themes/hyde"] | ||
path = themes/hyde | ||
url = https://github.com/spf13/hyde.git |
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,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
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,15 @@ | ||
baseURL = 'https://btogxx.github.io' | ||
languageCode = 'zh' | ||
title = '杂记' | ||
theme = "hyde" | ||
|
||
[Menus] | ||
main = [ | ||
{Name = "GitHub", URL = "https://github.com/btogxx"}, | ||
{Name = "Twitter", URL = "https://x.com/sissy_xnm"}, | ||
{Name = "E-Mail", URL = "mailto:btogxx@gmail.com"} | ||
] | ||
|
||
[params] | ||
description = "一个MTF程序媛,随便记录点东西,防止忘记自己是谁!" | ||
|
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,13 @@ | ||
#! /bin/sh | ||
|
||
commit_id=$(git log | head -n3 | awk '/commit/{print $2}' | head -c7) | ||
hugo --minify | ||
cd public | ||
[ -d .git ] && rm -rf .git | ||
git init | ||
git branch -m publish | ||
cp ../.git/config .git/ | ||
git remote add origin git@github.com:btogxx/btogxx.github.io.git | ||
git add . | ||
git commit -m "generate from $commit_id" | ||
git push -f origin publish |