Initial commit
This commit is contained in:
commit
07a9f6baba
13 changed files with 875 additions and 0 deletions
25
layouts/_default/list.html
Normal file
25
layouts/_default/list.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
{{ define "main" }}
|
||||
{{ if .Content }}
|
||||
<article>
|
||||
{{ .Content -}}
|
||||
</article>
|
||||
{{ else }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ end }}
|
||||
<div class="posts">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Tags</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
{{ range .Paginator.Pages }}
|
||||
<tr>
|
||||
<td><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></td>
|
||||
<td>{{ range .Params.tags }}<a class="tag" href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }}</td>
|
||||
<td><p>{{ .Params.description }}</p></td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue