about summary refs log tree commit diff stats
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html38
1 files changed, 15 insertions, 23 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 36f3ac2..510c2e6 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,26 +1,18 @@
 {{ 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">
+			<section class="recent">
+				<h2>Recent Posts</h2>
+				<ul class="posts">
+					{{ range first 10 .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>
+			</section>
+		</main>
 {{ partial "sidebar.html" . }}
-
-    <div class="content container">
-<div class="posts">
-
-      {{ range .Data.Pages }}
-  <div class="post">
-    <h1 class="post-title">
-      <a href="{{ .Permalink }}">
-        {{ .Title }}
-      </a>
-    </h1>
-
-    <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
-
-    {{ .Content }}
-  </div>
-  {{ end }}
-</div>
-</div>
-
-  </body>
+	</body>
 </html>