Skip to content

Commit 8aaf298

Browse files
committed
chore: don't include date in post link
1 parent db7e9dd commit 8aaf298

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
serve:
3-
zine
3+
zine --port 1313
44

55
lint:
66
npx @lint-md/cli **/*

content/learn/index.smd

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@
4444

4545
在本仓库的 [release 页面](https://github.com/zigcc/zigcc.github.io/releases)会定期将本教程导出为 PDF 格式,读者可按需下载。
4646

47-
```html
48-
<!-- TODO -->
49-
<!-- 读者也可以使用右侧导航栏中的『[整节打印](_print)』将当前版本教程保存为 PDF 格式。 -->
50-
```
51-
5247
# [其他学习资料]($section.id('other-learning-resources'))
5348

5449
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [Zig Language Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。其次是社区的一些高质量教程,例如:

layouts/templates/content.shtml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
<body id="body">
77
<h1 :text="$page.title"></h1>
88
<div id="meta" :if="$page.isSection().not()">
9-
<p :text="$page.date.format('January 02, 2006')"></p>
9+
<p :text="$page.date.format('2006-01-03')"></p>
1010
<p :text="$page.author" id="author"></p>
1111
</div>
1212
<ul :loop="$page.subpages()">
13-
<a href="$loop.it.link()">
14-
<li>
15-
<span :if="$page.custom.getOr('showTocDate', true)">
16-
<span :text="$loop.it.date.format('06-01-03')"></span>
17-
&nbsp;
18-
</span>
13+
<li>
14+
<i :if="$page.custom.getOr('showTocDate', true)">
15+
<time datetime="$loop.it.date.format('2006-01-03')" :text="$loop.it.date.format('2006-01-03')"></time>
16+
&nbsp;
17+
</i>
18+
<a href="$loop.it.link()">
1919
<span :text="$loop.it.title"></span>
20-
</li>
21-
</a>
20+
</a>
21+
</li>
2222
</ul>
2323
<div class="docs" :if="$page.custom.getOr('toc', true).and($page.isSection().not())">
24-
<h1>Table of Contents</h1>
24+
<h1>TOC</h1>
2525
<div :html="$page.toc()"></div>
2626
</div>
2727
<super>
@@ -37,4 +37,4 @@
3737
</a>
3838
</div>
3939
</div>
40-
</body>
40+
</body>

0 commit comments

Comments
 (0)