Commit b499cc5b authored by Jamie Tanna's avatar Jamie Tanna

Markup posts with u-featured metadata

As part of jvt.me#414, we want to have the u-featured markup to allow us
to mark up previews of posts.
parent 9c7189a7
......@@ -29,6 +29,12 @@
{{ end }}
.</p>
{{ $image := .Site.Params.Image }}
{{ if .Params.Image }}
{{ $image = .Params.Image }}
{{ end }}
{{ $imageUrl := printf "%s%s" .Site.Params.LiveSiteUrl $image }}
<p>This post's featured URL for sharing metadata is <a class="u-featured" href="{{ $imageUrl }}">{{ $imageUrl }}</a>.</p>
</div>
<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 -}}
......
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