themu/layouts/_default/list.html
2023-07-30 22:08:29 +05:00

18 lines
548 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ 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">{{ dateFormat "01-02-2006 15:04:05" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}
</ul>
{{ end }}