diff options
author | Alan Pearce | 2014-07-20 12:52:17 +0100 |
---|---|---|
committer | Alan Pearce | 2014-07-20 12:52:17 +0100 |
commit | 5eb1a498dcf248edfdef90b9728b45309422e08d (patch) | |
tree | 64390c33b5ecf1c9250ed01fb1abcf6e19c36daf /layouts | |
parent | 0d0b1e034414c11bdbb5fa1c057aa66bdbf35129 (diff) | |
download | hyde-5eb1a498dcf248edfdef90b9728b45309422e08d.tar.lz hyde-5eb1a498dcf248edfdef90b9728b45309422e08d.tar.zst hyde-5eb1a498dcf248edfdef90b9728b45309422e08d.zip |
Add schema.org microdata to homepage
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html index 74577ac..88d367f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ template "theme/partials/head.html" . }} <body class="theme-base-0b layout-reverse"> - <main class="content container" role="main"> + <main class="content container" role="main" itemscope itemtype="http://schema.org/Blog"> <section class="categories"> <h2>Categories</h2> <ul> @@ -15,9 +15,9 @@ <h2>Recent Posts</h2> <ul> {{ range .Data.Pages }} - <li> - <a class="post-title" href="{{ .RelPermalink }}">{{ .Title }}</a> - <time class="post-date">{{ .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 class="post-date" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> </li> {{ end }} </ul> |