Commit 79cb87e0 authored by Jamie Tanna's avatar Jamie Tanna

Wrap post content in an `h-entry`

The first step to Microformats2 markup on posts is wrapping it in an
`h-entry`!

As part of jvt.me#346.
parent f195274c
......@@ -2,59 +2,61 @@
<main>
<a name="top"></a>
<div class="post">
{{ partial "single/post-info.html" . }}
{{ partial "single/title.html" . }}
{{ partial "single/table-of-contents.html" . }}
<div class="h-entry">
<div class="post">
{{ partial "single/post-info.html" . }}
{{ partial "single/title.html" . }}
{{ partial "single/table-of-contents.html" . }}
{{ partial "single/header.html" . }}
{{ partial "single/header.html" . }}
{{ .Content }}
{{ .Content }}
{{ partial "single/footer.html" . }}
</div>
{{ partial "single/footer.html" . }}
</div>
<div class="post-details">
<p>Written by <strong>{{ .Site.Params.author }}</strong> on <strong>{{ dateFormat "02 January 2006" .PublishDate }}</strong>
{{- if .GitInfo -}}
{{- if .GitInfo.AuthorDate -}}
{{- if ne .PublishDate .GitInfo.AuthorDate -}}
, and last updated on <strong><a href="https://gitlab.com/jamietanna/jvt.me/commit/{{ .GitInfo.Hash }}">{{ dateFormat "02 January 2006" .GitInfo.AuthorDate }}</a></strong>
{{- end -}}.
{{- end -}}
{{- end -}}
</p>
{{ $licenseCode := index $.Site.Data.licenses .Params.License_Code }}
{{ $licenseProse := index $.Site.Data.licenses .Params.License_Prose }}
<div class="post-details">
<p>Written by <strong>{{ .Site.Params.author }}</strong> on <strong>{{ dateFormat "02 January 2006" .PublishDate }}</strong>
{{- if .GitInfo -}}
{{- if .GitInfo.AuthorDate -}}
{{- if ne .PublishDate .GitInfo.AuthorDate -}}
, and last updated on <strong><a href="https://gitlab.com/jamietanna/jvt.me/commit/{{ .GitInfo.Hash }}">{{ dateFormat "02 January 2006" .GitInfo.AuthorDate }}</a></strong>
{{- end -}}.
{{- end -}}
{{- end -}}
</p>
{{ $licenseCode := index $.Site.Data.licenses .Params.License_Code }}
{{ $licenseProse := index $.Site.Data.licenses .Params.License_Prose }}
<p>Content for this article is shared under the terms of the <a href="{{ index $licenseProse.seeAlso 0 }}">{{ $licenseProse.name }}</a>, and code is shared under the <a href="{{ index $licenseCode.seeAlso 0 }}">{{ $licenseCode.name }}</a>.
</p>
<p>Content for this article is shared under the terms of the <a href="{{ index $licenseProse.seeAlso 0 }}">{{ $licenseProse.name }}</a>, and code is shared under the <a href="{{ index $licenseCode.seeAlso 0 }}">{{ $licenseCode.name }}</a>.
</p>
<p>Categories:</p>
<ul>
{{ range .Params.Categories }}
<li> <a href="/posts/categories/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
<p>Categories:</p>
<ul>
{{ range .Params.Categories }}
<li> <a href="/posts/categories/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
<p>Tags:</p>
<ul>
{{ range .Params.Tags }}
<li> <a href="/posts/tags/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
<p>Tags:</p>
<ul>
{{ range .Params.Tags }}
<li> <a href="/posts/tags/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<p>Other posts you may be interested in:</p>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></li>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<p>Other posts you may be interested in:</p>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></li>
{{ end }}
</ul>
{{ end }}
</ul>
{{ end }}
{{ partial "webmention.html" . }}
{{ partial "webmention.html" . }}
</div>
</div>
<div class="pagination">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment