Files
portails/portails/resilien.fr/layouts/blog/single.html

54 lines
1.6 KiB
HTML

{{ define "main" }}
<article class="rArticle">
<div>
<header class="text-center">
<h1>{{ .Title }}</h1>
{{ partial "main/blog-meta.html" . }}
</header>
<div>
{{ with .Params.summary -}}<p class="lead">{{ . }}</p>{{ end -}}
{{ .Content }}
{{ if .Params.tags -}}
<div class="tag-list-single">
{{ range $index, $tag := .Params.tags -}}
<a class="btn btn-light" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}/" role="button">{{ . }}</a>
{{ end -}}
</div>
{{ end -}}
</div>
</div>
</article>
{{ end }}
{{ define "sidebar-footer" }}
{{ if site.Params.doks.relatedPosts -}}
{{ $related := .Site.RegularPages.Related . | first 3 -}}
{{ with $related -}}
<div class="bg-light">
<section class="section section-related container">
<div class="row justify-content-center">
<div class="col-md-12 col-lg-9">
<h2 class="section-title text-center">Related posts</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-lg-9">
{{ range . -}}
<div class="card">
<div class="card-body">
<article>
<h2 class="h3"><a class="stretched-link text-body" href="{{ .RelPermalink }}">{{ .Params.title }}</a></h2>
<p>{{ .Params.summary | safeHTML }}</p>
{{ partial "main/blog-meta.html" . -}}
</article>
</div>
</div>
{{ end -}}
</div>
</div>
</section>
</div>
{{ end -}}
{{ end -}}
{{ end }}