File tree Expand file tree Collapse file tree 6 files changed +30
-273
lines changed Expand file tree Collapse file tree 6 files changed +30
-273
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Deploy the website to Github Pages
2
2
3
3
on :
4
- # Runs on pushes targeting the default branch
5
4
push :
6
- branches : ["zine"]
5
+ branches : ["zine", "main" ]
7
6
8
7
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9
8
permissions :
26
25
steps :
27
26
- uses : actions/checkout@v4
28
27
with :
29
- fetch-depth : 0 # Change if you need git info
28
+ fetch-depth : 0 # Change if you need git info
30
29
31
30
- name : Setup Zine
32
31
uses : kristoff-it/setup-zine@v1
42
41
- name : Upload artifact
43
42
uses : actions/upload-pages-artifact@v3
44
43
with :
45
- path : ' public'
44
+ path : " public"
46
45
47
46
- name : Deploy to GitHub Pages
48
47
id : deployment
49
- uses : actions/deploy-pages@v4
48
+ uses : actions/deploy-pages@v4
49
+
Original file line number Diff line number Diff line change
1
+ * .lock
2
+ .DS_Store
3
+ /public
4
+ /resources
5
+
6
+ # zig
7
+ zig-cache /
8
+ zig-out /
9
+
10
+ .cache_ggshield
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ li > code {
84
84
.header {
85
85
display : flex;
86
86
justify-content : space-between;
87
- align-items : center;
87
+ align-items : baseline;
88
+ @media screen and (max-width : 800px ) {
89
+ justify-content : center;
90
+ }
88
91
}
89
92
.site-title {
90
93
display : inline-block;
@@ -127,6 +130,15 @@ nav a {
127
130
text-decoration : none;
128
131
font-size : large;
129
132
margin : 0 10px ;
133
+ @media screen and (max-width : 800px ) {
134
+ margin : 0 8px ;
135
+ }
136
+ }
137
+ nav a : first-child {
138
+ margin-left : 0 ;
139
+ }
140
+ nav a : last-child {
141
+ margin-right : 0 ;
130
142
}
131
143
132
144
footer > div {
Original file line number Diff line number Diff line change 13
13
<div class="header">
14
14
<a href="$site.page('').link()" class="site-title"><h1 :text="$site.title"></h1></a>
15
15
<nav>
16
- <a href="$site.page('learn').link()">学习 Zig </a>
16
+ <a href="$site.page('learn').link()">学习</a>
17
17
<a href="$site.page('monthly').link()">月刊</a>
18
18
<a href="$site.page('post').link()">博客</a>
19
19
<a href="$site.page('contributing').link()">贡献</a>
20
20
<a href="$site.page('community').link()">社区</a>
21
+ <a href="$site.page('about').link()">关于</a>
21
22
</nav>
22
23
</div>
23
24
<super>
You can’t perform that action at this time.
0 commit comments