Skip to content

Commit 1d0294e

Browse files
authored
feat(hugo): migrate from Jekyll to Hugo for website framework (#200)
* feat(hugo): migrate from Jekyll to Hugo for website framework * chore(gitmodules): remove unused submodules to clean up repository Remove the submodules "themes/ananke", "hugo-xmin", and "themes/hugo-theme-terminal" from the .gitmodules file. These submodules are no longer needed, and their removal helps to reduce clutter and simplify the repository's configuration. * docs(README.md): correct terminology and add directory structure section Change "github repository" to "git repository" for accuracy. Add a section detailing the directory structure to guide contributors on where to make changes and how the site is organized. feat(static): add .well-known files for site configuration and security Introduce several files under the `.well-known` directory to enhance site configuration and security. The `.nojekyll` file ensures GitHub Pages does not process the site with Jekyll. The `libera` file is added for verification purposes. The `security.txt` file provides contact information and security policy details. The `v.html` file serves as a Mastodon verification page. These additions improve site management and security practices.
1 parent cd7cbf2 commit 1d0294e

File tree

321 files changed

+13458
-4275
lines changed

Some content is hidden

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

321 files changed

+13458
-4275
lines changed

.github/workflows/hugo.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
- main
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+
shell: bash
29+
30+
jobs:
31+
# Build job
32+
build:
33+
runs-on: ubuntu-latest
34+
env:
35+
HUGO_VERSION: 0.137.1
36+
steps:
37+
- name: Install Hugo CLI
38+
run: |
39+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41+
- name: Install Dart Sass
42+
run: sudo snap install dart-sass
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
with:
46+
submodules: recursive
47+
fetch-depth: 0
48+
- name: Setup Pages
49+
id: pages
50+
uses: actions/configure-pages@v5
51+
- name: Install Node.js dependencies
52+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
53+
- name: Build with Hugo
54+
env:
55+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
56+
HUGO_ENVIRONMENT: production
57+
TZ: America/Los_Angeles
58+
run: |
59+
hugo \
60+
--gc \
61+
--minify \
62+
--baseURL "${{ steps.pages.outputs.base_url }}/"
63+
- name: Upload artifact
64+
uses: actions/upload-pages-artifact@v3
65+
with:
66+
path: ./public
67+
68+
# Deployment job
69+
deploy:
70+
environment:
71+
name: github-pages
72+
url: ${{ steps.deployment.outputs.page_url }}
73+
runs-on: ubuntu-latest
74+
needs: build
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
1-
_site
2-
.bundle
3-
vendor
4-
.tool-versions
1+
# Hugo output directory
2+
/public/
3+
/resources/_gen/
4+
5+
# Hugo module cache
6+
/.hugo_build.lock
7+
8+
# Logs and temporary files
9+
*.log
10+
*.swp
11+
*.tmp
12+
*.DS_Store
13+
*.bak
14+
*.backup
15+
16+
# Operating system files
17+
Thumbs.db
18+
.DS_Store
19+
20+
# IDE and editor files
21+
.idea/
22+
.vscode/
23+
*.code-workspace
24+
*.sublime-project
25+
*.sublime-workspace
26+
27+
# Node.js dependencies (if applicable)
28+
/node_modules/
29+
/package-lock.json
30+
/yarn.lock
31+
32+
# Files generated by popular deployment platforms
33+
/.netlify/
34+
/functions/
35+
36+
# virtual environments
37+
venv/
38+
.env/
39+
.venv/
540
.envrc
41+
.direnv/

.gitmodules

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

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

404.md

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

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

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

0 commit comments

Comments
 (0)