Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get the current post URL in Blogger?

Tags:

blogger

I need the post URL for some Share buttons. Is there a way to retrieve it? Thanks

like image 513
lisovaccaro Avatar asked Feb 25 '23 08:02

lisovaccaro


1 Answers

You can retrieve the post URL via a layout data tag: data:post.url

If you just want to insert its value as text in your template, use it as tag: <data:post.url>

If you want to use a tag value for a html attribute, precede the html attribute with the prefix expr, for example:

<body expr:class='data:blog.mobileClass'>
  ...
</body>
like image 53
Martin Ackermann Avatar answered Apr 26 '23 13:04

Martin Ackermann