Skip to content

Commit eb3af5f

Browse files
committed
fix duplicated style.css and page title
1 parent 623d104 commit eb3af5f

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

assets/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ body {
3333
@media screen and (max-width: 800px) {
3434
max-width: 93vw;
3535
}
36-
line-height: 1.5;
36+
line-height: 1.7;
37+
font-family: sans-serif;
3738
background: var(--bg);
3839
color: var(--fg);
3940
}

content/index.smd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
.title = "",
2+
.title = "Zig 语言中文社区",
33
.date = @date("1990-01-01T00:00:00"),
44
.author = "ZigCC",
55
.layout = "index.shtml",

layouts/learn.shtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<extend template="base.shtml">
22
<head id="head">
3-
<link rel="stylesheet" href="$site.asset('style.css').link()">
43
</head>
54
<body id="body">
65
<h1 :text="$page.title"></h1>
@@ -21,4 +20,4 @@
2120
</a>
2221
</div>
2322
</div>
24-
</body>
23+
</body>

layouts/templates/base.shtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<head id="head">
44
<meta charset="utf-8">
55
<meta name="viewport" content="initial-scale=1">
6-
<meta name="description" content="Zig Chinese Community is dedicated to sharing and spreading the use of Zig language among Chinese users.">
7-
<title :text="$site.title"></title>
6+
<title :text="$page.title"></title>
87
<link type="text/css" rel="stylesheet" href="$site.asset('style.css').link()">
98
<link type="text/css" rel="stylesheet" href="$site.asset('highlight.css').link()">
109
<script>

layouts/templates/content.shtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<extend template="base.shtml">
22
<head id="head">
3-
<link rel="stylesheet" href="$site.asset('style.css').link()">
43
<super>
54
</head>
65
<body id="body">

0 commit comments

Comments
 (0)