about summary refs log tree commit diff stats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html52
1 files changed, 35 insertions, 17 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 96c9f94..034cb26 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,19 +1,37 @@
-	{{ partial "head.html" . }}
-	<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
-		{{ partial "sidebar.html" . }}
+{{ partial "head.html" . }}
+  <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}} h-entry" itemscope itemtype="http://schema.org/BlogPosting">
+		<main class="content container" role="main">
+			<article class="post">
+				<header>
+					<h1 class="post-title p-name" itemprop="name">{{ .Title }}</h1>
+					<time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}" itemprop="datePublished">{{ .Date.Format "Monday, 2 January 2006" }}</time>
+				</header>
+				<main class="post-content e-content" itemprop="articleBody">
+					{{ .Content }}
+				</main>
+				<footer class="footer">
+					{{ if .Params.categories }}
+					<span>
+						Category:
+						{{ range .Params.categories }}
+						<a class="p-category" href="/categories/{{ . | lower | urlize }}/">{{ . }}</a>
+						{{ end }}
+					</span>
+					{{ end }}
+					{{ if .Params.tags }}
+					<p>
+						Tags:
+						{{ range .Params.tags }}
+						<span itemprop="keywords">
+							<a class="p-category" href="/tags/{{ . | urlize }}/">{{ . }}</a>
+						</span>
+						{{ end }}
 
-		<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>
+					</p>
+					{{ end }}
+				</footer>
+			</article>
+		</main>
+{{ partial "sidebar.html" . }}
+	</body>
 </html>