softinio.com/layouts/_default/single.html

29 lines
801 B
HTML
Raw Normal View History

2020-09-06 22:07:03 -07:00
{{- define "main" }}
{{- $scratch := newScratch }}
{{- if isset .Params "image" }}
{{- $scratch.Set "image" .Params.image }}
{{- else }}
{{ $scratch.Set "image" .Site.Params.fallBackOgImage }}
{{- end }}
{{- $image := $scratch.Get "image" }}
{{- $bg := (path.Join "images" $image | absLangURL) }}
<div class = 'grid-inverse wrap content'>
<article class='post_content'>
<h1 class='post_title'>{{ .Title }}</h1>
{{- partial "post-meta" . }}
{{ partial "share" . }}
{{ with .Params.featureImage }}
<img src = '{{ . }}' class="image_featured">
{{ end }}
{{ if .Params.toc }}
<h2>Overview</h2>
{{ .TableOfContents }}
{{ end }}
{{- .Content }}
</article>
{{- partial "sidebar" . }}
<!-- Comments -->
2020-03-08 16:00:32 -07:00
{{ partial "comments.html" . }}
2020-09-06 22:07:03 -07:00
</div>
2020-03-08 16:00:32 -07:00
{{- end }}