Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions content/monthly/index.smd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
.author = "ZigCC",
.layout = "monthly.shtml",
.draft = false,
.custom = {
.showTocDate = false
}
---

社区内的最新进展,信息来源:[Zig NEWS](https://zig.news/top/month)、[Zig
Expand Down
10 changes: 9 additions & 1 deletion layouts/templates/content.shtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
<p :text="$page.author" id="author"></p>
</div>
<ul :loop="$page.subpages()">
<a href="$loop.it.link()"><li :text="$loop.it.title"></li></a>
<a href="$loop.it.link()">
<li>
<span :if="$page.custom.getOr('showTocDate', true)">
<span :text="$loop.it.date.format('06-01-03')"></span>
&nbsp;
</span>
<span :text="$loop.it.title"></span>
</li>
</a>
</ul>
<div class="docs" :if="$page.custom.getOr('toc', true).and($page.isSection().not())">
<h1>Table of Contents</h1>
Expand Down