Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / _default / single.html
diff options
context:
space:
mode:
Commit8dad1d1bd0bc7206f16323d220fdce73c400f470 (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Files1dd6b123977afd3e391f39e2bef68f7daa0cbecb /layouts/_default/single.html
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar.gz
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.zip
Squashed 'website/themes/hugo-clarity/' content from commit 4969d5a
git-subtree-dir: website/themes/hugo-clarity git-subtree-split: 4969d5a1fb2c358c00e2d7f6fc1e39024d7d2355
1 files changed, 26 insertions, 0 deletions
-rw-r--r--layouts/_default/single.html26
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..1749a4e
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,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 }}