2020-07-22 13:53:34 +05:30
|
|
|
|
{{ define "main" }}
|
|
|
|
|
{{ if isset .Data "Term" }}
|
2023-07-29 19:04:05 +05:00
|
|
|
|
<h1>Все посты - "{{ .Data.Term }}"</h1>
|
2020-07-22 13:53:34 +05:30
|
|
|
|
{{ else }}
|
2023-07-29 19:04:05 +05:00
|
|
|
|
<h1 class="page-title">Все посты</h1>
|
2020-07-22 13:53:34 +05:30
|
|
|
|
{{ end }}
|
2020-04-09 00:14:29 +05:30
|
|
|
|
|
2020-07-22 13:53:34 +05:30
|
|
|
|
<ul class="posts">
|
|
|
|
|
{{- range .Data.Pages -}}
|
|
|
|
|
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
|
|
|
|
|
<li class="post">
|
2023-07-30 22:04:10 +05:00
|
|
|
|
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "01-02-2006 15:04:05" .Date }}{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.Data.Months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format .Site.Data.Formats.time }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
|
2020-07-22 13:53:34 +05:30
|
|
|
|
</li>
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
</ul>
|
|
|
|
|
{{ end }}
|