2024-06-05 11:03:23 +03:00
|
|
|
{{ define "head_meta" }}
|
|
|
|
<meta name="description" content="{{ site.Params.description }}">
|
|
|
|
<meta property="og:description" content="{{ site.Params.description }}">
|
|
|
|
{{end}}
|
|
|
|
|
2023-01-01 18:21:01 +03:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
<div class="page-wrapper">
|
|
|
|
<section class="posts">
|
|
|
|
{{ range where .Site.RegularPages "Section" "posts" }}
|
|
|
|
<article class="post">
|
|
|
|
<header>
|
|
|
|
<h2>
|
|
|
|
<a href="{{.RelPermalink}}">{{.Title}}</a>
|
|
|
|
</h2>
|
|
|
|
</header>
|
|
|
|
<div class="body">
|
|
|
|
{{- $thumb := .Page.Resources.Get .Params.featured_image -}}
|
|
|
|
{{if $thumb}}
|
|
|
|
<a href="{{.RelPermalink}}">
|
2024-06-05 11:03:23 +03:00
|
|
|
<img class="thumb" src="{{ ($thumb.Fit "150x150").RelPermalink }}" alt="thumb">
|
2023-01-01 18:21:01 +03:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="summary">
|
|
|
|
{{.Summary}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<time>{{.Date.Format "02.01.2006"}}</time>
|
|
|
|
{{ range (.GetTerms "categories") }}
|
|
|
|
<a class="category" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ partial "sidebar.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|