Skip to content

Commit e933085

Browse files
committed
Update website to use hugo and hugoplate theme
1 parent 2a34bfe commit e933085

File tree

27 files changed

+2392
-341
lines changed

27 files changed

+2392
-341
lines changed

.github/workflows/hugo.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches:
8+
- gh-pages
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
24+
25+
# Default to bash
26+
defaults:
27+
run:
28+
# GitHub-hosted runners automatically enable `set -eo pipefail` for Bash shells.
29+
shell: bash
30+
31+
jobs:
32+
# Build job
33+
build:
34+
runs-on: ubuntu-latest
35+
env:
36+
DART_SASS_VERSION: 1.89.2
37+
HUGO_VERSION: 0.148.0
38+
HUGO_ENVIRONMENT: production
39+
TZ: Australia/Melbourne
40+
steps:
41+
- name: Install Hugo CLI
42+
run: |
43+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
44+
sudo dpkg -i ${{ runner.temp }}/hugo.deb
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
with:
48+
submodules: recursive
49+
fetch-depth: 0
50+
- name: Setup Pages
51+
id: pages
52+
uses: actions/configure-pages@v5
53+
- name: Install Node.js dependencies
54+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
55+
- name: Cache Restore
56+
id: cache-restore
57+
uses: actions/cache/restore@v4
58+
with:
59+
path: |
60+
${{ runner.temp }}/hugo_cache
61+
key: hugo-${{ github.run_id }}
62+
restore-keys:
63+
hugo-
64+
- name: Configure Git
65+
run: git config core.quotepath false
66+
- name: Build with Hugo
67+
run: |
68+
hugo \
69+
--gc \
70+
--minify \
71+
--baseURL "${{ steps.pages.outputs.base_url }}/" \
72+
--cacheDir "${{ runner.temp }}/hugo_cache"
73+
- name: Cache Save
74+
id: cache-save
75+
uses: actions/cache/save@v4
76+
with:
77+
path: |
78+
${{ runner.temp }}/hugo_cache
79+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
80+
- name: Upload artifact
81+
uses: actions/upload-pages-artifact@v3
82+
with:
83+
path: ./public
84+
85+
# Deployment job
86+
deploy:
87+
environment:
88+
name: github-pages
89+
url: ${{ steps.deployment.outputs.page_url }}
90+
runs-on: ubuntu-latest
91+
needs: build
92+
steps:
93+
- name: Deploy to GitHub Pages
94+
id: deployment
95+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public/
2+
resources/
3+
.hugo_build.lock
4+
hugo_stats.json
5+
go.sum
6+
node_modules/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/hugoplate"]
2+
path = themes/hugoplate
3+
url = https://github.com/zeon-studio/hugoplate.git

CNAME

Lines changed: 0 additions & 2 deletions
This file was deleted.

_config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

assets/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* Add your own custom styles here */
2+
footer div.container div.row {
3+
padding-block: calc(var(--spacing) * 3) !important;
4+
}
5+
6+
footer div.border-border {
7+
display: none;
8+
}

assets/images/favicon.png

9.11 KB
Loading

assets/images/logo.png

27 KB
Loading

assets/images/screenshot.png

407 KB
Loading

assets/images/service-1.png

185 KB
Loading

0 commit comments

Comments
 (0)