We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abc9201 commit db7e9ddCopy full SHA for db7e9dd
2 files changed
content/monthly/index.smd
@@ -4,6 +4,9 @@
4
.author = "ZigCC",
5
.layout = "monthly.shtml",
6
.draft = false,
7
+.custom = {
8
+ .showTocDate = false
9
+}
10
---
11
12
社区内的最新进展,信息来源:[Zig NEWS](https://zig.news/top/month)、[Zig
layouts/templates/content.shtml
@@ -10,7 +10,15 @@
<p :text="$page.author" id="author"></p>
</div>
<ul :loop="$page.subpages()">
13
- <a href="$loop.it.link()"><li :text="$loop.it.title"></li></a>
+ <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
+
18
+ </span>
19
+ <span :text="$loop.it.title"></span>
20
+ </li>
21
+ </a>
22
</ul>
23
<div class="docs" :if="$page.custom.getOr('toc', true).and($page.isSection().not())">
24
<h1>Table of Contents</h1>
0 commit comments