Posts Tagged: HubL
What is HubL?
HubSpot’s CMS uses the HubSpot Markup Language or HubL (pronounced “Hubble”). HubL is HubSpot’s extension of Jinjava, a templating engine based on Jinja. HubL uses a fair amount of markup that is unique to HubSpot and does not support all features of Jinja.
HubSpot CMS Site Search Input Module Override
HubSpot provides a default module to perform a site search. By default it searches website pages and blog posts. But what if you want to override this and only search blog posts? Below is an embed snippet to help you do just that.
Category: Code Snippets
How to Link to Module Fields to Theme Images in HubSpot Themes
When building HubSpot themes you often want to have default images referenced from inside your theme folder. You would think adding a relative link would work but you actually need to add it inside this hubl function to get it to work get_asset_url() Learn more about building custom modules in HubSpot.
1 2 3 4 5 6 7 8 | "default" : { "src" : "{{ get_asset_url('../images/your-image.jpg') }}", "alt" : "", "width" : "1440", "height" : "683" } |
Category: Code Snippets