speedtech-website/layouts/blogspot/single.html

59 lines
1.7 KiB
HTML
Raw Normal View History

2024-10-04 11:58:15 +02:00
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{ partial "head.html" . }}
<body lang="{{ .Site.Language.Lang }}">
{{ partial "nav.html" . }}
<header class="blog-single">
<div class="container">
<div class="row">
<div class="col-md-9">
<h2><a href="{{ "blog/spot" | relLangURL }}">SPOT Blog</a></h2>
{{ partial "widgets/categoriesspot.html" . }}
<h3 class="title">{{ .Title }}</h3>
</div>
</div>
</div>
</header>
<div id="content">
<div class="container">
<div class="row">
<div class="col-md-9">
<section class="col-sm-12">
<article>
{{ if isset .Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
<p class="text-center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}"
width="500">
</p>
{{ end }}
{{ end }}
<div style="text-align: justify;">
{{ .Content }}
</div>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
{{ partial "partials/widgets/spotcattags.html" . }}
</article>
</section>
</div>
{{ partial "partials/widgets/spotsidebar.html" . }}
</div>
</div>
</div>
<!-- /#content -->
{{ partial "footer.html" . }}
</body>
</html>