speedtech-website/layouts/categoriesspot/list.html

73 lines
2.7 KiB
HTML
Raw Permalink Normal View History

2024-10-04 11:58:15 +02:00
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{ partial "head.html" . }}
<body lang="{{ .Site.Language.Lang }}">
{{ partial "nav.html" . }}
<header class="blog">
<div class="container">
<div class="row">
<div class="col-md-9">
<h2><a href="{{ "blog/spot" | relLangURL }}">SPOT Blog</a></h2>
{{ partial "widgets/categoriesspot.html" . }}
</div>
</div>
</div>
</header>
<div id="content">
<div class="container">
<div class="row">
<div class="col-md-9">
<section class="col-sm-12">
<div class="list-group">
{{ $paginator := .Paginate ((where .Pages "Type" "blogspot").ByParam "LastmodDate")}}
{{ range $paginator.Pages }}
<div class="row blog-article-item-list">
<h4><a href="{{ .Permalink }}">{{.Title}}</a></h4>
<div class="col-lg-4 col-md-4 col-sm-12">
{{ if isset .Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
{{ $mainimage := $mainimage.Resize "300x" }}
<p class="text-center"><img class="img-thumbnail img-fluid" src="{{ $mainimage.RelPermalink }}"
width="{{ $mainimage.Width }}" height="{{ $mainimage.Height }}">
</p>
{{ end }}
{{ end }}
</div>
<div class="col-lg-8 col-md-8 col-sm-12">
<p class="blog-article-introduction">
{{ .Summary | safeHTML}}
<br />
<a href="{{ .Permalink }}">{{ i18n "read_more" }}</a>
</p>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
{{ partial "widgets/spotcattags.html" . }}
</div>
</div>
{{ end }}
</div>
{{ partial "partials/pagination.html" (dict "page" . "format" "default" "align" "center") }}
</section>
</div>
{{ partial "partials/widgets/spotsidebar.html" . }}
</div>
</div>
</div>
<!-- /#content -->
{{ partial "footer.html" . }}
</body>
</html>