Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / hugo-clarity / layouts / _default / single.html
blob: 1749a4e0b795a96fbb798cbe182ff5786bc6600c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{- 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" . }}
</div>
{{- end }}