Skip to content

Is it possible to check the current url in handlebar / publii ? #1370

Answered by bobmitro
hubyhuby asked this question in Help
Discussion options

You must be logged in to vote

Yeap, for example, you can do this via a post ID using the checkIf helper: https://getpublii.com/dev/checkif-helper/

{{#post}} {{#checkIf id '==' 10}} your script here... {{/checkIf}} {{/post}}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hubyhuby
Comment options

Answer selected by bobmitro
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants