jarnat/themes/meghna-hugo/layouts/_default/single.html

39 lines
1.2 KiB
HTML
Raw Normal View History

2022-07-19 09:14:46 +02:00
{{ define "main" }}
{{ partial "navigation.html" . }}
<section class="section">
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2 text-center height-title">
2022-07-19 09:14:46 +02:00
<h1>{{ .Title }}</h1>
<ul class="list-inline mb-50">
{{ if .Params.Author }}
2022-07-19 09:14:46 +02:00
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
{{ end }}
{{ if .Date }}
<li class="list-inline-item">Dernière modification :<br> {{ .Date | time.Format ":date_full" }}</li>
{{ end }}
2022-07-19 09:14:46 +02:00
</ul>
{{ if .Params.Image }}
2022-07-19 09:14:46 +02:00
<img class="img-fluid mb-50 lozad" data-src="{{ .Params.Image | absURL }}" alt="blog-image">
{{ end }}
2022-07-19 09:14:46 +02:00
</div>
<div class="col-lg-8 offset-lg-2">
<div class="post-single-content">
{{ .Content }}
</div>
{{ if site.Params.post_share }}
{{ partial "post-share.html" . }}
{{ end }}
<!-- comments -->
<div class="mt-5">
{{ template "_internal/disqus.html" . }}
</div>
</div>
</div>
</div>
</section>
{{ end }}