]> njoseph.me Git - hyde.git/blobdiff - layouts/_default/single.html
Make use of the base template
[hyde.git] / layouts / _default / single.html
index 9f4f6034985f1849d1e8b31c18e8cda38cb88cd7..2317495b6b2f01556bc461532b1a954981bc2a29 100644 (file)
@@ -1,15 +1,12 @@
-{{ partial "head.html" . }}
-<body class="{{ .Site.Params.themeColor }}">
-
-{{ partial "sidebar.html" . }}
-
-    <div class="content container">
+{{ define "main" -}}
 <div class="post">
   <h1>{{ .Title }}</h1>
   <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
-      {{ .Content }}
-</div>
+  {{ .Content }}
 </div>
 
-  </body>
-</html>
+{{ if .Site.Params.disqusShortname -}}
+<h2>Comments</h2>
+{{ partial "disqus" . }}
+{{- end }}
+{{- end }}
\ No newline at end of file