I want to show the featured image of my latest post in the hubspot RSS feed like the hubspot blog page (blog.hubspot.com). I don't want to show the featured image of every blog post as it gets to crowded.
@MRF You can use HubL to create the rss module (if your using the drag and drop builder place in a HubL module):
{% set posts = blog_recent_posts('default', 5) %}
{% for post in posts %}
{% endfor %}
Then just target the first post in the loop using and if else statement:
{% set posts = blog_recent_posts('default', 5) %}
{% for post in posts %}
{% if loop.index = 1 %} {# markup for the first post #} {% else %} {# markup for the rest of the posts #} {% endif %}
{% endfor %}
If you want to do this for your main blog its the same concept just in the contents loop default to the hubspot blog. The only real difference between the first and the rest of the posts markup is that you would use the image tolken for the first but not the rest.
the {# #} in my code are comments that will not effect the code and can be removed. I placed them their to mark where you should place your markup.
What you probably should do is create your markup using static content to create the structure and styling. Then when you have your markup created, integrate this hubl to fit around/inside/through it what ever the case may be.
You find the blog id by going to blogs in your portal, choosing the blog you are working with, and their will be a set of, I beleive, 8 numbers in the url in your portal (not on the live blog page). This set of numbers is your blog id.