I need the post URL for some Share buttons. Is there a way to retrieve it? Thanks
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With