about summary refs log tree commit diff stats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html26
-rw-r--r--layouts/_default/single.html52
2 files changed, 48 insertions, 30 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 7659d47..9bbcb38 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,16 +1,16 @@
 {{ partial "head.html" . }}
-<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
-
+  <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}" itemscope itemtype="http://schema.org/Blog"> 
+		<main class="content container" role="main">
+			<h1 class="page-title">{{ .Title }}</h1>
+			<ul class="posts">
+				{{ range .Data.Pages }}
+				<li itemscope itemtype="http://schema.org/BlogPosting">
+					<a class="post-title" itemprop="url" href="{{ .RelPermalink }}"><span itemprop="name">{{ .Title }}<span></a>
+					<time class="post-date" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
+				</li>
+				{{ end }}
+			</ul>
+		</main>
 {{ partial "sidebar.html" . }}
-
-  <div class="content container">
-    <ul class="posts">
-        {{ range .Data.Pages }}
-        <li>
-          <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
-        </li>
-        {{ end }}
-    </ul>
-  </div>
-</body>
+	</body>
 </html>
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>