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

59 lines
1.6 KiB
HTML
Raw Normal View History

2019-01-28 03:11:02 +03:00
{{ define "main" }}
{{ with .Content }}
<div class="index-content">
{{ . }}
2019-03-31 20:18:08 +03:00
</div>
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
<div class="post on-list">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
<div class="post-meta">
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
</span>
{{ with .Params.Author }}
2020-07-17 00:56:01 +03:00
<span class="post-author">:: {{ . }}</span>
{{ end }}
</div>
2019-01-28 03:11:02 +03:00
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}
</span>
{{ end }}
2019-01-28 03:11:02 +03:00
{{ if .Params.Cover }}
<img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" />
{{ end }}
2019-01-28 03:11:02 +03:00
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content }}
{{ else if .Description }}
{{ .Description | markdownify }}
{{ else }}
{{ if .Truncated }}
2020-11-30 18:07:41 +03:00
{{ .Summary }}
{{ end }}
{{ end }}
</div>
2019-03-31 20:18:08 +03:00
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</div>
2019-01-28 03:11:02 +03:00
{{ end }}
{{ partial "pagination.html" . }}
2019-01-28 03:11:02 +03:00
</div>
{{ end }}