theme-blog-ewen/layouts/blog/single.html

54 lines
1.3 KiB
HTML
Raw Normal View History

2023-12-15 16:26:57 +00:00
{{ define "main" }}
<!-- blog post-->
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-100 mb-lg-0">
<article>
<div class="tags-list">
{{ if .Params.tags }}
{{ partial "tags" .Params.tags }}
{{ end }}
</div>
<h1 class="mb-0">{{ .Title }}</h1>
<p class="mb-1">Embannet {{ i18n "on" }} {{ .Date.Format "2006-01-02" }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.
{{ if .IsTranslated }}
Article également disponible en&nbsp;:
{{- range .Translations -}}
&nbsp;<a href="{{- .Permalink -}}">{{- .Lang -}}</a>
{{- end -}}.
{{- end -}}
</p>
{{ if .Params.Image }}
{{ $article := .Permalink | relURL }}
{{ $image := .Params.Image | relURL }}
<img src="{{ print $article $image }}" class="img-fluid w-100 mb-4" alt="{{ .Title | markdownify }}">
{{ end }}
{{ .Content }}
{{ if .Site.Params.Info.related }}
<div class="related">{{ partial "related" . }}</div>
</article>
{{ if .Site.Params.issoComments }}
{{- partial "isso" . -}}
{{ end }}
{{ end }}
</div>
<!-- sidebar-->
{{ partial "sidebar.html" . }}
</div>
</div>
</section>
{{ end }}