Compare commits
10 Commits
c784d88ec1
...
df1f51edd7
Author | SHA1 | Date | |
---|---|---|---|
|
df1f51edd7 | ||
|
f059f1400b | ||
|
02a12d4dfe | ||
|
03903d7cc4 | ||
|
f1232f4a2e | ||
|
81d6674eef | ||
|
f5b391c952 | ||
|
00be00c2fa | ||
|
a94173d70b | ||
|
ab92cd5d12 |
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@ -16,17 +16,19 @@ jobs:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Cache Hugo resources
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: cache-hugo-resources
|
||||
with:
|
||||
path: resources
|
||||
key: ${{ env.cache-name }}
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "^1.17.0"
|
||||
- run: go version
|
||||
|
6
.github/workflows/update-theme.yml
vendored
6
.github/workflows/update-theme.yml
vendored
@ -18,12 +18,12 @@ jobs:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: 0.115.2
|
||||
hugo-version: 0.123.8
|
||||
extended: true
|
||||
|
||||
- name: Update theme
|
||||
@ -33,6 +33,6 @@ jobs:
|
||||
run: hugo mod tidy
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "CI: Update theme"
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
public
|
||||
resources
|
||||
resources
|
||||
.hugo_build.lock
|
||||
|
@ -11,14 +11,14 @@ It comes with a basic theme structure and configuration. GitHub action has been
|
||||
1. Click *Use this template*, and create your repository on GitHub.
|
||||
![Step 1](https://user-images.githubusercontent.com/5889006/156916624-20b2a784-f3a9-4718-aa5f-ce2a436b241f.png)
|
||||
|
||||
2. Once the repository is created, create a GitHub codespace asociated with it.
|
||||
2. Once the repository is created, create a GitHub codespace associated with it.
|
||||
![Create codespace](https://user-images.githubusercontent.com/5889006/156916672-43b7b6e9-4ffb-4704-b4ba-d5ca40ffcae7.png)
|
||||
|
||||
3. And voila! You're ready to go. The codespace has been configured with the latest version of Hugo extended, just run `hugo server` in the terminal and see your new site in action.
|
||||
|
||||
4. Check `config` folder for the configuration files. You can edit them to suit your needs. Make sure to update the `baseurl` property in `config/_default/config.toml` to your site's URL.
|
||||
|
||||
5. Once you're done editing the site, just commit it and push it. GitHub action will deploy the site automatically to GitHub page asociated with the repository.
|
||||
5. Once you're done editing the site, just commit it and push it. GitHub action will deploy the site automatically to GitHub page associated with the repository.
|
||||
![GitHub action](https://user-images.githubusercontent.com/5889006/156916881-90b8bb9b-1925-4e60-9d7a-8026cda729bf.png)
|
||||
|
||||
---
|
||||
|
@ -22,6 +22,7 @@ local = true
|
||||
src = "img/avatar.png"
|
||||
|
||||
[article]
|
||||
headingAnchor = false
|
||||
math = false
|
||||
readingTime = true
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module github.com/CaiJimmy/hugo-theme-stack-starter
|
||||
|
||||
go 1.17
|
||||
|
||||
require github.com/CaiJimmy/hugo-theme-stack/v3 v3.21.0 // indirect
|
||||
require github.com/CaiJimmy/hugo-theme-stack/v3 v3.26.0 // indirect
|
||||
|
4
go.sum
4
go.sum
@ -1,2 +1,2 @@
|
||||
github.com/CaiJimmy/hugo-theme-stack/v3 v3.21.0 h1:GT519sWiMhJCYO2xkxgjTvgGZsfP31Q79OURWGTT8/Y=
|
||||
github.com/CaiJimmy/hugo-theme-stack/v3 v3.21.0/go.mod h1:IPmCXiIxlFSLFYS0tOmYP6ySLviyeNVSabyvSuaxD+I=
|
||||
github.com/CaiJimmy/hugo-theme-stack/v3 v3.26.0 h1:kLZSTvo+E3S2YWw59DjXWtKLNbw3JaL7Z+VAjcegqa0=
|
||||
github.com/CaiJimmy/hugo-theme-stack/v3 v3.26.0/go.mod h1:IPmCXiIxlFSLFYS0tOmYP6ySLviyeNVSabyvSuaxD+I=
|
||||
|
Loading…
Reference in New Issue
Block a user