hugo-themes/cyberpink/layouts/index.html

23 lines
474 B
HTML
Raw Normal View History

2024-02-10 20:53:59 +01:00
{{ define "main" }}
<div class="main-head">
<h1>{{ .Title }}</h1>
</div>
{{ if .Content }}
<article>
{{ .Content -}}
</article>
{{ end }}
<table class="posts">
<tr>
<th>Title</th>
<th>Tags</th>
</tr>
{{ range .Paginator.Pages }}
<tr>
<td><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></td>
<td>{{ range .Params.tags }}<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a>&nbsp; {{ end }}</td>
</tr>
{{ end }}
</table>
{{ end }}