I'm building a website in Hubspot and want to show the 4 latest blog enttries on the frontpage of the site. As I understand it's only possible using the RSS feed to show them. Which is fine, but the html/markup is not exactly what I want. Is it possible to make your own html/template for it? Alternatively, I can put my own css on top of what I get from the default RSS markup, but really want to control and work with my own markup 🙂
is it a HubSpot or external blog? Are you "staying" in the HubSpot ecosystem like HubSpot Blog on a HubSpot page?
If you're completly in the HubSpot ecosystem you can create a so called custom module with the "blog_recent_posts" function which will be handling the layout and information of the latest blogs.
is it a HubSpot or external blog? Are you "staying" in the HubSpot ecosystem like HubSpot Blog on a HubSpot page?
If you're completly in the HubSpot ecosystem you can create a so called custom module with the "blog_recent_posts" function which will be handling the layout and information of the latest blogs.
Hi Anton, thanks. This is exactly what I need. I'm building everything inside HubSpot. I created a new custom module, and got a list of latest blog post titles 🙂
The next thing then, is an image url and link url to the post itselfe, aaand a small snippet of the text from the blog post. I can't seem to find the right code for those.
@Skott Where you able to figure this out? I have also created a custom module, but i am not able to show the posts in columns. They are still showing in rows.
Feb 24, 20212:30 AM - edited Feb 24, 20212:32 AM
Contributor
RSS feed custom html
SOLVE
@caitlink i used this code to reference the two fields (modules) which will be shown in content editor. One is for selection of blog type (in my case English or German) and second one is the for specifying the tag.
{% set tag_posts = blog_recent_tag_posts (module.content_group_id, module.blog_post_tag, limit=4) %}
In the module.content_group_id you have to add a blog selector field.