themu/layouts/index.html
2023-09-26 01:48:40 +06:00

38 lines
1.7 KiB
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.

{{ "<!-- Добро пожаловать на мой веб-сайт! -->" | safeHTMLAttr }}
{{ "<!-- Сайт сделан на HUGO, тема - themu -->" | safeHTMLAttr }}
{{ "<!-- Контент лицензирован под СС BY-SA -->" | safeHTMLAttr }}
{{ "<!-- ASCII-арт взят с сайта asciiart.eu -->" | safeHTMLAttr }}
<!DOCTYPE html>
{{ "<!-- Добро пожаловать на мой веб-сайт! -->" | safeHTMLAttr }}
<html>
{{ "<!-- Добро пожаловать на мой веб-сайт! -->" | safeHTMLAttr }}
{{ partial "header.html" . }}
<body>
<div class="content">
{{ partial "head.html" . }}
<main class="list">
<div class="site-description">
{{- if .Param "subtitlefile" -}}
{{ template "partials/subtitle.html" . }}
{{- else if isset .Site.Params "subtitle" -}}
<p>{{ .Site.Params.Subtitle | markdownify }}</p>
{{- end -}}
</div>
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<section class="list-item">
<h1 class="title"><a href="{{ .RelPermalink }}">{{.Title}}</a></h1>
<time datetime="{{ .Date.Format "01-02-2006 15:04:05"}}">{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.Data.months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format "15:04" }} {{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
<br>{{ template "partials/pagedescription.html" . }}
</section>
{{ end }}
{{ template "partials/paginator.html" . }}
</main>
{{ partial "footer.html" . }}
</div>
</body>
</html>