How to add this to a Blogger template header:
I made a mistake with
data:post.url, which doesn't work on the header and gives me error message"
<link expr:href='data:post.url' rel='canonical'/>
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.Sign up to join this community
I tried it my self and find the correct code
<b:if cond="data:blog.isMobile"> <b:else/> <b:if cond='data:blog.url'> <link expr:href='data:blog.url' rel='canonical'/> </b:if> </b:if>
the code "data:blog.url" retrieve correct Page url in blog I hope this help others . .
This is solely automatically supported by Blogger as it’s powered by Google.
<b:include data="blog" name="all-head-content"/>
You can try
<b:include data='blog' name='all-head-content'/>
I also use it on my blog