Skip to content

Commit 21e225f

Browse files
committed
Remove obsolete files including .cache_ggshield and _highlight.css. Update GitHub Actions workflow to support deployment from both 'zine' and 'main' branches. Enhance CSS styles for responsive navigation and improve layout templates with additional links.
1 parent bbd1f68 commit 21e225f

File tree

6 files changed

+30
-273
lines changed

6 files changed

+30
-273
lines changed

.cache_ggshield

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

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Deploy the website to Github Pages
22

33
on:
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
98
permissions:
@@ -26,7 +25,7 @@ jobs:
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
@@ -42,8 +41,9 @@ jobs:
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+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.lock
2+
.DS_Store
3+
/public
4+
/resources
5+
6+
# zig
7+
zig-cache/
8+
zig-out/
9+
10+
.cache_ggshield

assets/_highlight.css

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

assets/style.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

132144
footer > div {

layouts/templates/base.shtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
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>

0 commit comments

Comments
 (0)