canonical url #13
-
And it is possible to display canonical url in head?
More example for jekyll short code |
Beta Was this translation helpful? Give feedback.
Answered by
daveaglick
Aug 28, 2020
Replies: 1 comment 5 replies
-
Sure! If you call For example, to add the canonical link to a Razor page or layout you'd write:
It's up to the theme or layout to add this and I've added it to the CleanBlog theme. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Arhell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure! If you call
IDocument.GetLink(true)
(orIExecutionContext.GetLink(document, true)
) it'll produce a link to the current document that includes theHost
setting.For example, to add the canonical link to a Razor page or layout you'd write:
It's up to the theme or layout to add this and I've added it to the CleanBlog theme.