Skip to content

Commit 62bb558

Browse files
committed
add github ci/cd page workflow
1 parent 1077a79 commit 62bb558

File tree

2 files changed

+98
-3
lines changed

2 files changed

+98
-3
lines changed

.github/workflows/page.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Build Hugo site and push to page branch
2+
name: Build Hugo Site
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["main"]
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
env:
22+
HUGO_VERSION: 0.154.1
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
submodules: recursive
29+
30+
- name: Setup Go
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: '1.25'
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '24'
39+
40+
- name: Install npm dependencies
41+
run: npm ci --prefer-offline --no-audit
42+
43+
- name: Setup Hugo
44+
run: |
45+
wget -q -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
46+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
47+
48+
- name: Build with Hugo
49+
env:
50+
HUGO_ENVIRONMENT: production
51+
HUGO_ENV: production
52+
run: hugo --gc --minify
53+
54+
- name: Deploy to page branch
55+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
56+
uses: peaceiris/actions-gh-pages@v4
57+
with:
58+
github_token: ${{ secrets.GITHUB_TOKEN }}
59+
publish_branch: page
60+
publish_dir: ./public
61+
force_orphan: true
62+
user_name: 'github-actions[bot]'
63+
user_email: 'github-actions[bot]@users.noreply.github.com'
64+
commit_message: 'deploy: ${{ github.sha }}'

static/css/landing.css

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@
6363
Base Styles
6464
============================================ */
6565

66+
/* Ensure html and body have no gaps and match hero background */
67+
html {
68+
background: var(--pigsty-dark);
69+
}
70+
71+
body.landing-page {
72+
margin: 0;
73+
padding: 0;
74+
font-family: var(--font-sans);
75+
line-height: 1.6;
76+
color: var(--pigsty-gray-100);
77+
background: var(--pigsty-dark);
78+
overflow-x: hidden;
79+
}
80+
6681
.landing-page {
6782
font-family: var(--font-sans);
6883
line-height: 1.6;
@@ -159,9 +174,10 @@
159174
}
160175

161176
.landing-header.scrolled {
162-
background: rgba(15, 20, 25, 0.95);
163-
backdrop-filter: blur(10px);
164-
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
177+
background: rgba(15, 20, 25, 0.98);
178+
backdrop-filter: blur(12px);
179+
-webkit-backdrop-filter: blur(12px);
180+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
165181
}
166182

167183
.landing-nav {
@@ -2076,6 +2092,21 @@
20762092
font-size: 0.85rem;
20772093
}
20782094

2095+
.footer-copyright a {
2096+
color: inherit;
2097+
text-decoration: none;
2098+
}
2099+
2100+
.footer-icp a {
2101+
color: var(--pigsty-gray-500);
2102+
text-decoration: none;
2103+
transition: color var(--transition-fast);
2104+
}
2105+
2106+
.footer-icp a:hover {
2107+
color: var(--pigsty-gray-300);
2108+
}
2109+
20792110
.footer-lang-switch a {
20802111
color: var(--pigsty-gray-400);
20812112
text-decoration: none;

0 commit comments

Comments
 (0)