about summary refs log tree commit diff stats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authordigitalcraftsman2017-09-07 21:41:16 +0200
committerdigitalcraftsman2017-09-07 21:41:16 +0200
commit82832c1244f2d536c754efb98fbdb02b1844f4c7 (patch)
treeddeb1e83781a1f2793eb56c68d8a20e89fe4557c /layouts/_default/single.html
parent50fec3e32df7b3ef311377db55093fc87bccb446 (diff)
downloadhyde-82832c1244f2d536c754efb98fbdb02b1844f4c7.tar.lz
hyde-82832c1244f2d536c754efb98fbdb02b1844f4c7.tar.zst
hyde-82832c1244f2d536c754efb98fbdb02b1844f4c7.zip
Make use of the base template
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html29
1 files changed, 11 insertions, 18 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 26149e7..2317495 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,19 +1,12 @@
-{{ partial "head.html" . }}
-<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
-  {{ partial "sidebar.html" . }}
+{{ define "main" -}}
+<div class="post">
+  <h1>{{ .Title }}</h1>
+  <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
+  {{ .Content }}
+</div>
 
-  <div class="content container">
-    <div class="post">
-      <h1>{{ .Title }}</h1>
-      <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
-      {{ .Content }}
-    </div>
-
-			{{ if .Site.Params.disqusShortname }}
-				<h2>Comments</h2>
-				{{ partial "disqus" . }}
-			{{ end }}
-		</div>
-
-</body>
-</html>
\ No newline at end of file
+{{ if .Site.Params.disqusShortname -}}
+<h2>Comments</h2>
+{{ partial "disqus" . }}
+{{- end }}
+{{- end }}
\ No newline at end of file