File tree Expand file tree Collapse file tree 3 files changed +21
-37
lines changed Expand file tree Collapse file tree 3 files changed +21
-37
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Deploy the website to Github Pages
3
3
on :
4
4
push :
5
5
branches : ["zine", "main"]
6
+ pull_request :
7
+ workflow_dispatch :
6
8
7
9
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8
10
permissions :
@@ -20,16 +22,11 @@ concurrency:
20
22
cancel-in-progress : true
21
23
22
24
jobs :
23
- deploy :
24
- environment :
25
- name : github-pages
26
- url : ${{ steps.deployment.outputs.page_url }}
27
- runs-on : ubuntu-latest
25
+ build :
28
26
steps :
29
27
- uses : actions/checkout@v4
30
28
with :
31
29
fetch-depth : 0 # Change if you need git info
32
-
33
30
- name : Setup Zine
34
31
uses : kristoff-it/setup-zine@v1
35
32
with :
38
35
- name : Build
39
36
run : zine release
40
37
38
+ deploy :
39
+ environment :
40
+ name : github-pages
41
+ url : ${{ steps.deployment.outputs.page_url }}
42
+ runs-on : ubuntu-latest
43
+ needs : build
44
+ if : github.event_name != 'pull_request'
45
+ steps :
41
46
- name : Setup Pages
42
47
uses : actions/configure-pages@v5
43
48
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
5
-
6
5
< title > 404 - Page Not Found</ title >
7
-
8
- <!-- Custom styles for this template -->
9
6
< link href ="/style.css " rel ="stylesheet " />
10
-
11
- < style >
12
- h1 {
13
- display : flex;
14
- justify-content : center;
15
- align-items : center;
16
- font-size : 3rem ;
17
- }
18
- </ style >
19
-
20
- < script >
21
- if ( location . pathname . match ( / \/ \d { 4 } \/ \d { 2 } \/ \d { 2 } \/ / ) ) {
22
- location . pathname = location . pathname . replace (
23
- / \/ ( \d { 4 } ) \/ ( \d { 2 } ) \/ ( \d { 2 } ) \/ / ,
24
- "/$1-$2-$3-"
25
- ) ;
26
- }
27
- </ script >
28
7
</ head >
29
-
30
8
< body >
31
- < h1 > 404 - Page Not Found</ h1 >
9
+ < center >
10
+ < h1 > 404 - Page Not Found</ h1 >
11
+ < p > the page you are looking for not avaible!</ p >
12
+ < p > < a href ="/ "> Go Home</ a > </ p >
13
+ < center >
32
14
</ body >
33
15
</ html >
Original file line number Diff line number Diff line change 1
1
---
2
2
.title = "RSS Feeds Overview",
3
- .date = @date("2025-7 -27"),
3
+ .date = @date("2025-07 -27"),
4
4
.author = "ZigCC",
5
5
.layout = "index.shtml",
6
6
.draft = false,
7
7
---
8
8
9
9
本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。
10
10
11
- 他们的链接分别是:
12
- - [/learn/index.xml]($link.page("learn").alternative('rss'))
13
- - [/monthly/index.xml]($link.page("monthly").alternative('rss'))
14
- - [/post/index.xml]($link.page("post").alternative('rss'))
15
- [/monthly/index.xml]($link.page("monthly").alternative('rss'))
16
- [/post/index.xml]($link.page("post").alternative('rss'))
17
-
11
+ 他们的链接分别是:
12
+ - [/learn/index.xml]($link.page("learn").alternative('rss'))
13
+ - [/monthly/index.xml]($link.page("monthly").alternative('rss'))
14
+ - [/post/index.xml]($link.page("post").alternative('rss'))
You can’t perform that action at this time.
0 commit comments