mmote.ru/themes/mmotium/layouts/index.html

42 lines
1.3 KiB
HTML

{{ define "head_meta" }}
<meta name="description" content="{{ site.Params.description }}">
<meta property="og:description" content="{{ site.Params.description }}">
{{end}}
{{ 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}}">
<img class="thumb" src="{{ ($thumb.Fit "150x150").RelPermalink }}" alt="thumb">
</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 }}