- {{ partial "head.html" . }}
- <body class="{{ .Site.Params.themeColor }}">
- {{ partial "sidebar.html" . }}
+{{ define "main" -}}
+<div class="post">
+ <h1>{{ .Title }}</h1>
+ <time datetime={{ .Date.Format "2006-01-02T15:04:05Z0700" }} class="post-date">{{ .Date.Format "Jan 2, 2006" }}</time>
+ {{ .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.DisqusShortname -}}
+<h2>Comments</h2>
+{{ template "_internal/disqus.html" . }}
+{{- end }}
+{{- end }}