summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authornikaera <GimNikaErast@gmail.com>2021-10-22 23:22:45 +0900
committerGitHub <noreply@github.com>2021-10-22 19:52:45 +0530
commit38891b9062100a1f6f5d9e0474d4ca702c4a9db0 (patch)
tree5dabe939d10d7c1e19f0689ea4d59bbadddf7c7f /layouts/_default
parenta57cb762c320c05b616f7911c8b5dc78e3080a72 (diff)
Add `showCanonicalLink` to markdown metadata (#428)
If an article has a `canonicalUrl` set, Originally published at `<hostname>` will be displayed at the top of the article by setting `showCanonicalLink` to true. Usage => In front-matter: canonicalUrl: "<URL>" showCanonicalLink: true
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 355697e..1d983fd 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -17,6 +17,7 @@
{{- partial "post_meta.html" . -}}
{{- partial "translation_list.html" . -}}
{{- partial "edit_post.html" . -}}
+ {{- partial "post_canonical.html" . -}}
</div>
{{- end }}
</header>