Skip to content

Commit e95418b

Browse files
authored
feat: migrate to hugo #393
1 parent 1ec3d8e commit e95418b

File tree

150 files changed

+1147
-1186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1147
-1186
lines changed

.github/workflows/hugo.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Deploy Hugo site to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches:
7+
- master
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.152.2
35+
steps:
36+
- name: Install Hugo CLI
37+
run: |
38+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+
- name: Checkout
41+
uses: actions/checkout@v5
42+
with:
43+
submodules: recursive
44+
fetch-depth: 0
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v5
48+
- name: Install Node.js dependencies
49+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
50+
- name: Build with Hugo
51+
env:
52+
# For maximum backward compatibility with Hugo modules
53+
HUGO_ENVIRONMENT: production
54+
HUGO_ENV: production
55+
run: |
56+
hugo \
57+
--gc \
58+
--minify \
59+
--baseURL "${{ steps.pages.outputs.base_url }}/"
60+
- name: Upload artifact
61+
uses: actions/upload-pages-artifact@v4
62+
with:
63+
path: ./public
64+
65+
# Deployment job
66+
deploy:
67+
environment:
68+
name: github-pages
69+
url: ${{ steps.deployment.outputs.page_url }}
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- name: Deploy to GitHub Pages
74+
id: deployment
75+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
# .gitignore for neovim.github.io
2-
3-
## bundler
4-
/.bundle/*
5-
6-
## jekyll
7-
/_site/*
1+
public/
2+
.hugo_build.lock

.travis.yml

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

404.html

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

Gemfile

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

0 commit comments

Comments
 (0)