mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-28 07:43:33 +02:00
Add home page template
This commit is contained in:
parent
bd9990e697
commit
185c673b80
1 changed files with 23 additions and 0 deletions
23
layouts/index.html
Normal file
23
layouts/index.html
Normal file
|
@ -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 a new issue