2023-08-10 03:39:50 +02:00
|
|
|
{{ 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>
|
2023-08-10 04:00:46 +02:00
|
|
|
<td>{{ range .Params.tags }}<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a> {{ end }}</td>
|
2023-08-10 03:39:50 +02:00
|
|
|
<td><p>{{ .Params.description }}</p></td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|