Skip to content

Commit 80525ed

Browse files
committed
override tag list page
1 parent 590b7db commit 80525ed

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

site/themes/m10c/layouts/term.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{ define "main" }}
2+
<article>
3+
<h1>{{ .Title }}</h1>
4+
<ul class="posts-list">
5+
{{ range $index, $element := .Paginator.Pages }}
6+
<li class="posts-list-item">
7+
<a class="posts-list-item-title" href="{{ .Permalink }}"
8+
>{{ .Title }} ({{.Type}})</a
9+
>
10+
<span class="posts-list-item-description">
11+
{{.PublishDate.Format "Jan 2, 2006" }} {{ if eq $element.Type "writing"
12+
}} - {{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{
13+
.ReadingTime }} min read{{ end }}
14+
</span>
15+
</li>
16+
{{ end }}
17+
</ul>
18+
{{ partial "pagination.html" $ }}
19+
</article>
20+
{{ end }}

0 commit comments

Comments
 (0)