Added single.html

This commit is contained in:
Aroy-Art 2021-07-20 19:36:15 +02:00
parent 065a32bd1f
commit 903e02a624

View file

@ -0,0 +1,34 @@
{{ define "main" }}
{{ partial "navigation.html" . }}
<section class="section">
<div class="container">
<div class="row bg-one">
<div class="col-lg-8 offset-lg-2 text-center">
<h1>{{ .Title }}</h1>
<ul class="list-inline mb-50">
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
<li class="list-inline-item">Published Date: {{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
<li class="list-inline-item">Last Modified: {{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
</ul>
<img class="img-fluid mb-50 lozad" src="{{ .Params.Image | absURL }}" alt="blog-image">
</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 -->
{{ if site.Params.comments }}
{{ partial "comments.html" . }}
{{ end }}
</div>
</div>
</div>
</section>
{{ end }}