diff options
author | Alan Pearce | 2014-07-19 18:13:08 +0100 |
---|---|---|
committer | Alan Pearce | 2014-07-19 18:13:08 +0100 |
commit | 368c103bbe6a84e508a7f54280d913034f517ee6 (patch) | |
tree | 46eafaba28b392c7acd4758838816e5d92391170 /layouts/_default/single.html | |
parent | 5e1d1e5946c3517c6bc33a300d0f181e9accbabf (diff) | |
download | hyde-368c103bbe6a84e508a7f54280d913034f517ee6.tar.lz hyde-368c103bbe6a84e508a7f54280d913034f517ee6.tar.zst hyde-368c103bbe6a84e508a7f54280d913034f517ee6.zip |
Add article microdata
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 150dd69..6c3ac3b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,10 +1,14 @@ {{ template "theme/partials/head.html" . }} <body class="theme-base-0b layout-reverse"> <main class="content container" role="main"> - <article class="post"> - <h1 class="post-title">{{ .Title }}</h1> - <time class="post-date" datetime="{{ .Date.Format "2006-01-02 15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> - {{ .Content }} + <article class="post" itemscope itemtype="http://schema.org/Article"> + <header> + <h1 class="post-title" itemprop="name">{{ .Title }}</h1> + <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}" itemprop="datePublished">{{ .Date.Format "Monday, 2 January 2006" }}</time> + </header> + <div class="post-content" itemprop="articleBody"> + {{ .Content }} + </div> </article> </main> {{ template "theme/partials/sidebar.html" . }} |