]> njoseph.me Git - hyde.git/blobdiff - layouts/_default/single.html
Make use of the base template
[hyde.git] / layouts / _default / single.html
index 96c9f943ae40f6bc11be86ded103bcb0a882f4cc..2317495b6b2f01556bc461532b1a954981bc2a29 100644 (file)
@@ -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 and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }}
-                               <h2>Comments</h2>
-                               {{ partial "disqus" . }}
-                       {{ end }}
-               </div>
-
-  </body>
-</html>
+{{ if .Site.Params.disqusShortname -}}
+<h2>Comments</h2>
+{{ partial "disqus" . }}
+{{- end }}
+{{- end }}
\ No newline at end of file