mmote.ru/themes/mmotium/layouts/index.html
MultiMote 200841a088
All checks were successful
Build and deploy mmote.ru / Build-And-Deploy (push) Successful in 34s
Теги в списке статей
2024-08-16 15:14:36 +03:00

46 lines
1.4 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 }}
{{ range (.GetTerms "tags") }}
<a class="tag" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</footer>
</article>
{{ end }}
</section>
{{ partial "sidebar.html" . }}
</div>
{{ end }}