hugo-theme-terminal/layouts/_default/list.html

48 lines
1.3 KiB
HTML
Raw Normal View History

2022-06-21 13:50:51 +00:00
{{ define "main" }}
{{ with .Content }}
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}">
2022-06-21 13:50:51 +00:00
{{ . }}
</div>
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
2022-10-22 11:29:33 +00:00
<article class="post on-list">
<h2 class="post-title">
2022-06-21 13:50:51 +00:00
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h2>
{{ partial "post-meta.html" . }}
2022-06-21 13:50:51 +00:00
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ partial "cover.html" . }}
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content }}
{{ else if .Description }}
2024-09-07 21:43:48 +00:00
<p>{{ .Description | markdownify }}</p>
2022-06-21 13:50:51 +00:00
{{ else }}
2023-01-21 15:20:14 +00:00
{{ .Summary }}
2022-06-21 13:50:51 +00:00
{{ end }}
</div>
{{ if not .Params.showFullContent }}
2024-09-07 21:21:07 +00:00
<div>
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
2022-10-22 11:29:33 +00:00
</div>
2022-06-21 13:50:51 +00:00
{{ end }}
2022-10-22 11:29:33 +00:00
</article>
2022-06-21 13:50:51 +00:00
{{ end }}
2022-10-22 11:29:33 +00:00
2022-06-21 13:50:51 +00:00
{{ partial "pagination.html" . }}
</div>
{{ end }}