about summary refs log tree commit diff stats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorAlan Pearce2014-07-20 13:09:26 +0100
committerAlan Pearce2014-07-20 13:10:24 +0100
commit38e02dda8724da9d4020ad967e9759539098c2dd (patch)
treede12817d858cd53f6aff6e358f69bb35d0df9cd8 /layouts/_default/list.html
parent2292c52427edfa5064c078d192f9ee69157ff43f (diff)
downloadhyde-38e02dda8724da9d4020ad967e9759539098c2dd.tar.lz
hyde-38e02dda8724da9d4020ad967e9759539098c2dd.tar.zst
hyde-38e02dda8724da9d4020ad967e9759539098c2dd.zip
Add schema.org microdata to list view
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a1f9847..2806591 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,11 +1,11 @@
 {{ template "theme/partials/head.html" . }}
-	<body class="theme-base-0b layout-reverse">
+	<body class="theme-base-0b layout-reverse" itemscope itemtype="http://schema.org/Blog">
 		<main class="content container" role="main">
 			<ul class="posts">
 				{{ range .Data.Pages }}
-				<li>
-					<a href="{{ .RelPermalink }}">{{ .Title }}</a>
-					<time datetime="{{ .Date.Format "2006-01-02 15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
+				<li itemscope itemtype="http://schema.org/BlogPosting">
+					<a class="post-title" itemprop="url" href="{{ .RelPermalink }}"><span itemprop="name">{{ .Title }}<span></a>
+					<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
 					<p class="summary">{{ .Summary }}</p>
 				</li>
 				{{ end }}