mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
0ff0b4fd3f
On branch master Your branch is up to date with 'origin/master'. Changes to be committed: modified: layouts/index.html modified: layouts/partials/footer.html modified: layouts/partials/paginator.html
30 lines
929 B
HTML
30 lines
929 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
{{ partial "header.html" . }}
|
|
<body>
|
|
<div class="content">
|
|
{{ partial "head.html" . }}
|
|
|
|
<main class="list">
|
|
<div class="site-description">
|
|
{{- 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>{{ dateFormat "Jan 2, 2006" .Date }}{{ 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>
|