blob: 3c1a604c707e3efe92b326cd587301c3e0c1cdb9 (
plain) (
tree)
|
|
{{ define "main" }}
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 sidebar">
{{ if .Title }}
<h1 class="post-title fw-semibold">
{{ .Title }}
</h1>
<img src="{{.Site.Params.Logo}}" />
{{ .Content }}
<a href="/feed/" class="btn btn-primary">{{ partial "icon.html" "rss" }} Подписка</a>
{{ end }}
</div>
<div class="col-xs-12 col-sm-12 col-md-8 content">
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}
{{ $pag := .Paginate ($filtered) }}
{{ $paginator := .Paginate .Pages 7 }}
{{ range $paginator.Pages }}
{{ partial "list.html" . }}
{{ end }}
<nav>{{ partial "pagination.html" . }}</nav>
</div>
</div>
</div>
{{ end }}
|