Commit d1de419c authored by Jamie Tanna's avatar Jamie Tanna

Add an author h-card to posts

For parsers of the site to better see who the author is, add a
`p-author` to my posts to expose the link back to my home page, where
they can view the full author `h-card`.

As part of jvt.me#419.
parent c476d1e8
......@@ -22,7 +22,7 @@
<p>This post's permalink is <a class="u-url" href="{{ .Site.Params.LiveSiteUrl }}{{ .URL }}">{{ .Site.Params.LiveSiteUrl }}{{ .URL }}</a> and has the following summary:</p>.
<blockquote class="p-summary">{{ .Description }}</blockquote>
</div>
<p>Written by <strong>{{ .Site.Params.author }}</strong> on <strong><time class="dt-published" datetime="{{ .PublishDate }}">{{ dateFormat "02 January 2006" .PublishDate }}</time></strong>
<p>Written by <a class="p-author h-card p-name u-url" href="{{ .Site.Params.LiveSiteUrl }}">{{ .Site.Params.author }}</a> on <strong><time class="dt-published" datetime="{{ .PublishDate }}">{{ dateFormat "02 January 2006" .PublishDate }}</time></strong>
{{- if .GitInfo -}}
{{- if .GitInfo.AuthorDate -}}
{{- if ne .PublishDate .GitInfo.AuthorDate -}}
......
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