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

58 lines
1.6 KiB
HTML
Raw Normal View History

2023-04-26 16:54:20 +00:00
{{ define "main" }}
2023-06-09 22:27:17 +00:00
<h1>Posts for: #{{ .Title }}</h1>
2023-04-26 16:54:20 +00:00
{{ with .Content }}
<div class="index-content">
{{ . }}
</div>
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
<article class="post on-list">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
<div class="post-meta">
2023-06-09 22:27:17 +00:00
{{- if .Date -}}
2023-04-26 16:54:20 +00:00
<time class="post-date">
2023-06-09 22:27:17 +00:00
{{- .Date.Format "2006-01-02" -}}
2023-04-26 16:54:20 +00:00
</time>
2023-06-09 22:27:17 +00:00
{{- end -}}
{{- with .Params.Author -}}
<span class="post-author">{{- . -}}</span>
{{- end -}}
2023-04-26 16:54:20 +00:00
</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 }}
{{ end }}
</div>
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}