mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-05 17:14:24 -04:00
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
This commit is contained in:
parent
a57cb762c3
commit
38891b9062
2 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
{{- partial "post_meta.html" . -}}
|
||||
{{- partial "translation_list.html" . -}}
|
||||
{{- partial "edit_post.html" . -}}
|
||||
{{- partial "post_canonical.html" . -}}
|
||||
</div>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue