theme-blog-ewen/layouts/podcasts/list.html

53 lines
2.1 KiB
HTML
Raw Normal View History

2023-12-15 16:24:36 +00:00
{{ define "main" }}
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-10 mb-lg-0">
2023-12-19 08:55:32 +00:00
{{ .Content }}
{{ range sort .Pages }}
2023-12-15 16:24:36 +00:00
<article class="posts featured-post">
<div class="row mb-20">
{{ if .Params.Image }}
{{ $article := .Permalink | relURL }}
{{ $image := .Params.Image | relURL }}
<div class="col-md-4">
<a href="{{.Permalink}}">
<img src="{{ print $article $image }}" class="posts-img" alt="{{ .Title | markdownify }}">
</a>
</div>
<div class="col-md-7">
{{ else }}
<div class="col-md-10">
{{ end }}
<div class="card-body pt-0">
<a href="{{ .Permalink }}" class="h3 my-3 pt-0">{{ .Title | markdownify }}</a>
<p class="card-text">{{ .Summary }}</p>
<div class="d-flex justify-content-end">
<a href="{{ .Permalink }}" class="btn btn-outline-primary">{{ i18n "readMore" }}</a>
</div>
</div>
</div>
</div>
</article>
{{ end }}
</div>
<!-- sidebar-->
{{ partial "sidebar.html" . }}
<!-- pagination -->
<div class="col-12 mt-5">
{{ template "_internal/pagination.html" . }}
</div>
</div>
</div>
</section>
{{ end }}