mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-23 08:59:19 +02:00
Add home page template
This commit is contained in:
parent
bd9990e697
commit
185c673b80
|
@ -0,0 +1,23 @@
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
<section>
|
||||||
|
{{ .Content }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<table class="sortable">
|
||||||
|
<caption>题目列表</caption>
|
||||||
|
<tr>
|
||||||
|
<th>题目名称</th>
|
||||||
|
<th>版本数目</th>
|
||||||
|
</tr>
|
||||||
|
{{ range $key, $value := .Site.Taxonomies.tasknames }}
|
||||||
|
<tr>
|
||||||
|
<td><a href="{{ (print "/tasknames/" $key | urlize) | relURL }}">{{ $key }}</a></td>
|
||||||
|
<td>{{ len $value }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
Loading…
Reference in New Issue