Skip to content

Commit ed643c6

Browse files
committed
Enable hugo.
1 parent 811b257 commit ed643c6

File tree

7 files changed

+70
-14
lines changed

7 files changed

+70
-14
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
1-
name: build
1+
name: GitHub Pages
22

33
on:
44
push:
55
branches:
6-
- gatsby
6+
- main # Set a branch to deploy
7+
pull_request:
78

89
jobs:
9-
build:
10-
11-
runs-on: ubuntu-latest
10+
deploy:
11+
runs-on: ubuntu-22.04
12+
permissions:
13+
contents: write
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
1216

1317
steps:
14-
- name: Checkout
15-
uses: actions/[email protected]
18+
- uses: actions/checkout@v3
19+
with:
20+
submodules: true # Fetch Hugo themes (true OR recursive)
21+
22+
- name: Setup Hugo
23+
uses: peaceiris/actions-hugo@v2
24+
with:
25+
hugo-version: '0.110.0'
26+
# extended: true
1627

17-
- name: Install and Build
28+
- name: Build
1829
run: |
19-
npm install
20-
npm run build
30+
hugo mod get -u
31+
hugo --minify --baseURL "https://emeraldjava.github.io/"
2132
2233
- name: Deploy
23-
uses: JamesIves/[email protected]
34+
uses: peaceiris/actions-gh-pages@v3
35+
if: ${{ github.ref == 'refs/heads/main' }}
2436
with:
25-
branch: master # The branch the action should deploy to.
26-
folder: public # The folder the action should deploy.
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./public
39+
publish_branch: gh-pages

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ atlassian-ide-plugin.xml
4646

4747
# Crashlytics plugin (for Android Studio and IntelliJ)
4848
com_crashlytics_export_strings.xml
49-
crashlytics.properties
49+
crashlytics.proper3ties
5050
crashlytics-build.properties
5151
fabric.properties
5252
### Ruby template
@@ -165,3 +165,9 @@ typings/
165165
/.idea/
166166
/public/
167167
gatsby-starter-blog/
168+
169+
# hugo excludes
170+
.hugo_build.lock
171+
go.sum
172+
themes/*
173+
public/*

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "themes/hyde"]
2+
path = themes/hyde
3+
url = https://github.com/spf13/hyde.git
4+
[submodule "themes/github-style"]
5+
path = themes/github-style
6+
url = https://github.com/MeiK2333/github-style.git

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ see
2525
-
2626

2727
A new machine.gh
28+
29+
# Hugo
30+
31+
## github-style
32+
33+
- https://themes.gohugo.io/themes/github-style/
34+
- https://github.com/gitalk/gitalk
35+
36+
git submodule add https://github.com/MeiK2333/github-style.git themes/github-style

config.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
baseURL = 'https://emeraldjava.github.io/'
2+
languageCode = 'en-us'
3+
title = 'emeraldjava'
4+
theme = "github-style"
5+
6+
[params]
7+
author = "emeraldjava"
8+
description = "Java, Spring, DevOps experimenter, chasing a marathon and cycling."
9+
github = "emeraldjava"
10+
twitter = "emeraldjava"
11+
linkedin = "paultoconnell"
12+
url = "https://emeraldjava.github.io/"
13+
keywords = "blog, google analytics"
14+
rss = false
15+
lastmod = true
16+
userStatusEmoji = ""
17+
favicon = ""
18+
location = "Ireland"
19+
enableGitalk = false
20+
21+
# https://themes.gohugo.io/themes/github-style/

static/images/avatar.png

10.5 KB
Loading

themes/github-style

Submodule github-style added at eee158a

0 commit comments

Comments
 (0)