Skip to content

Commit

Permalink
generate from 987791d
Browse files Browse the repository at this point in the history
  • Loading branch information
wxjstz committed Aug 2, 2024
0 parents commit fc0ac1a
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.hugo_build.lock
public/
3 changes: 3 additions & 0 deletions .gitmodules
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
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
15 changes: 15 additions & 0 deletions hugo.toml
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程序媛,随便记录点东西,防止忘记自己是谁!"

13 changes: 13 additions & 0 deletions publish
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

0 comments on commit fc0ac1a

Please sign in to comment.