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 11name : Deploy the website to Github Pages
22
33on :
4- # Runs on pushes targeting the default branch
54 push :
6- branches : ["zine"]
5+ branches : ["zine", "main" ]
76
87# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
98permissions :
2625 steps :
2726 - uses : actions/checkout@v4
2827 with :
29- fetch-depth : 0 # Change if you need git info
28+ fetch-depth : 0 # Change if you need git info
3029
3130 - name : Setup Zine
3231 uses : kristoff-it/setup-zine@v1
4241 - name : Upload artifact
4342 uses : actions/upload-pages-artifact@v3
4443 with :
45- path : ' public'
44+ path : " public"
4645
4746 - name : Deploy to GitHub Pages
4847 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 {
8484.header {
8585 display : flex;
8686 justify-content : space-between;
87- align-items : center;
87+ align-items : baseline;
88+ @media screen and (max-width : 800px ) {
89+ justify-content : center;
90+ }
8891}
8992.site-title {
9093 display : inline-block;
@@ -127,6 +130,15 @@ nav a {
127130 text-decoration : none;
128131 font-size : large;
129132 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 ;
130142}
131143
132144footer > div {
Original file line number Diff line number Diff line change 1313 <div class="header">
1414 <a href="$site.page('').link()" class="site-title"><h1 :text="$site.title"></h1></a>
1515 <nav>
16- <a href="$site.page('learn').link()">学习 Zig </a>
16+ <a href="$site.page('learn').link()">学习</a>
1717 <a href="$site.page('monthly').link()">月刊</a>
1818 <a href="$site.page('post').link()">博客</a>
1919 <a href="$site.page('contributing').link()">贡献</a>
2020 <a href="$site.page('community').link()">社区</a>
21+ <a href="$site.page('about').link()">关于</a>
2122 </nav>
2223 </div>
2324 <super>
You can’t perform that action at this time.
0 commit comments