mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
18 lines
730 B
HTML
18 lines
730 B
HTML
{{ define "main" }}
|
||
{{ if isset .Data "Term" }}
|
||
<h1>Все посты - "{{ .Data.Term }}"</h1>
|
||
{{ else }}
|
||
<h1 class="page-title">Все посты</h1>
|
||
{{ end }}
|
||
|
||
<ul class="posts">
|
||
{{- range .Data.Pages -}}
|
||
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
|
||
<li class="post">
|
||
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta"><time datetime="{{ .Date.Format "01-02-2006 15:04:05"}}">{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.themes.themu.Data.months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format "15:04" }} UTC+6 {{ if .Draft }}</time> <span class="draft-label">DRAFT</span> {{ end }}</span>
|
||
</li>
|
||
{{- end -}}
|
||
{{- end -}}
|
||
</ul>
|
||
{{ end }}
|