Skip to content

Commit de706c3

Browse files
committed
Initial commit
0 parents  commit de706c3

34 files changed

Lines changed: 4901 additions & 0 deletions

.github/workflows/deploy.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Deploy Hugo site to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
defaults:
19+
run:
20+
shell: bash
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
env:
26+
HUGO_VERSION: 0.155.2
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
with:
31+
submodules: recursive
32+
fetch-depth: 0
33+
34+
- name: Setup Hugo
35+
run: |
36+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
37+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
38+
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: '20'
43+
44+
- name: Setup Pages
45+
id: pages
46+
uses: actions/configure-pages@v5
47+
48+
- name: Build with Hugo
49+
env:
50+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
51+
HUGO_ENVIRONMENT: production
52+
run: |
53+
cd exampleSite
54+
hugo \
55+
--gc \
56+
--minify \
57+
--baseURL "${{ steps.pages.outputs.base_url }}/"
58+
59+
- name: Index site with Pagefind
60+
run: npx -y pagefind --site exampleSite/public
61+
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: ./exampleSite/public
66+
67+
deploy:
68+
environment:
69+
name: github-pages
70+
url: ${{ steps.deployment.outputs.page_url }}
71+
runs-on: ubuntu-latest
72+
needs: build
73+
steps:
74+
- name: Deploy to GitHub Pages
75+
id: deployment
76+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Hugo generated files
2+
public/
3+
resources/_gen/
4+
.hugo_build.lock
5+
pagefind/
6+
7+
# Example site builds
8+
exampleSite/public/
9+
exampleSite/resources/
10+
exampleSite/.hugo_build.lock
11+
exampleSite/themes/
12+
exampleSite/pagefind/
13+
14+
# Node modules and package manager files
15+
node_modules/
16+
package-lock.json
17+
yarn.lock
18+
pnpm-lock.yaml
19+
20+
# OS generated files
21+
.DS_Store
22+
.DS_Store?
23+
._*
24+
.Spotlight-V100
25+
.Trashes
26+
ehthumbs.db
27+
Thumbs.db
28+
29+
# Editor and IDE files
30+
.vscode/
31+
.idea/
32+
*.swp
33+
*.swo
34+
*~
35+
.project
36+
.settings/
37+
*.sublime-project
38+
*.sublime-workspace
39+
40+
# Environment files
41+
.env
42+
.env.local
43+
.env.*.local
44+
45+
# Temporary files
46+
*.log
47+
*.tmp
48+
.cache/
49+
.claude

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Corey Daley
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)