Commit dfb91a7d authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'feature/canonical-uid' into 'fork'

Add `u-uid` microformat markup

See merge request !47
parents a398edd0 6a6dfef7
......@@ -41,6 +41,8 @@
{{- if .Params.Canonical_Url }}
<link rel="canonical" href="{{ .Params.Canonical_Url }}" />
{{ else }}
<link rel="canonical" href="{{ .Site.Params.LiveSiteUrl }}{{ .URL }}" />
{{- end }}
{{- if .Params.Tags }}
<meta name="keywords" content="{{ delimit .Params.Tags ", " }}">
......
......@@ -21,6 +21,14 @@
<div class="hidden">
<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>
<p>The canonical URL for this post is
{{ if .Params.Canonical_Url }}
<a class="u-uid" href="{{ .Params.Canonical_Url }}">{{ .Params.Canonical_Url }}</a>
{{ else }}
<a class="u-uid" href="{{ .Site.Params.LiveSiteUrl }}{{ .URL }}">{{ .Site.Params.LiveSiteUrl }}{{ .URL }}</a>
{{ end }}
.</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