Editing HubL for post listing to open links in new window

Occasional Contributor

Is there anyway to edit the HubL so that for the post listings they open in a new window?

Reply
0 Upvotes
1 Reply 1
Highlighted
HubSpot Employee

Hey @KelsoConsulting yes you should be able to do that. Exactly how would depend on your specific blog template. In general you should be able to get to the code of your blog listing template by following along with the instructions here. There is a good explanation about what the different HubL code does in the blog listing here. In that example code on line 2 you'd simple add target="_blank" to the a tag so it would look something like: 

<h2><a href="{{content.absolute_url}}" target="_blank">{{ content.name }}</a></h2>

 

 

Reply
0 Upvotes