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

57 lines
1.5 KiB
HTML
Raw Normal View History

2022-06-21 13:50:51 +00:00
{{ define "main" }}
{{ with .Content }}
<div class="index-content">
{{ . }}
</div>
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
2022-10-22 11:29:33 +00:00
<article class="post on-list">
2022-06-21 13:50:51 +00:00
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
<div class="post-meta">
2022-10-24 14:31:41 +00:00
{{ if .Date }}
2022-10-22 11:29:33 +00:00
<time class="post-date">
2022-10-24 14:31:41 +00:00
{{ .Date.Format "2006-01-02" }} ::
2022-10-22 11:29:33 +00:00
</time>
{{ end }}
2022-06-21 13:50:51 +00:00
{{ with .Params.Author }}
2022-10-22 11:29:33 +00:00
<span class="post-author">{{ . }}</span>
2022-06-21 13:50:51 +00:00
{{ end }}
</div>
{{ 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 }}
{{ .Description | markdownify }}
{{ else }}
{{ .Summary | markdownify }}
{{ end }}
</div>
{{ if not .Params.showFullContent }}
2022-10-22 11:29:33 +00:00
<div>
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</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 }}