<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pulling featured image into blog post template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127193#M42514</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/859299"&gt;@03517&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="{{content.featured_image}}" alt="{{content.featured_image_alt_text}}" class="featured-image"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;will display the image, but I'd recommend to use it as a background-image like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="hero-bg-image" style="background-image:url({{content.featured_image}}); background-size:cover;background-position:center center; width:100%; min-height:200px;height:100%;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;as this will allow you to place content above the image like the title, time... Simply place the desired content inside the div-tag and modify your CSS to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 12:33:55 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2025-03-25T12:33:55Z</dc:date>
    <item>
      <title>Pulling featured image into blog post template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127150#M42512</link>
      <description>&lt;P&gt;Hi;&lt;BR /&gt;I'm using the growth theme and I'd like to add the featured image into the blog post template. (The template file is inside of a child theme) Right now the image only appears on the listing page and not on the blog post page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like the featured image to appear at the very top, above the timestamp and title.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&lt;BR /&gt;templateType: blog_post&lt;BR /&gt;isAvailableForNewContent: true&lt;BR /&gt;label: Growth - blog post&lt;BR /&gt;screenshotPath: ../images/template-previews/blog-post.png&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;{% set template_css = "../../css/templates/blog-post.css" %}&lt;BR /&gt;{% extends "./layouts/base.html" %}&lt;/P&gt;&lt;P&gt;{% block body %}&lt;/P&gt;&lt;P&gt;{# Blog post wrapper #}&lt;/P&gt;&lt;P&gt;&amp;lt;div class="content-wrapper"&amp;gt;&lt;/P&gt;&lt;P&gt;{# Blog post #}&lt;/P&gt;&lt;P&gt;&amp;lt;div class="blog-post-section"&amp;gt;&lt;BR /&gt;&amp;lt;article class="blog-post"&amp;gt;&lt;BR /&gt;&amp;lt;time datetime="{{ content.publish_date }}" class="blog-post__timestamp"&amp;gt;&lt;BR /&gt;{{ content.publish_date_localized }}&lt;BR /&gt;&amp;lt;/time&amp;gt;&lt;BR /&gt;&amp;lt;h1&amp;gt;{{ content.name }}&amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;div class="blog-post__meta"&amp;gt;&lt;BR /&gt;&amp;lt;div class="blog-post__author"&amp;gt;&lt;BR /&gt;{% if content.blog_author.avatar %}&lt;BR /&gt;&amp;lt;img class="blog-post__author-image" src="{{ content.blog_author.avatar }}" width="50" loading="eager" alt="Picture of {{ content.blog_author.display_name }}"&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;a class="blog-post__author-name" href="{{ blog_author_url(group.id, content.blog_post_author.slug) }}" rel="author"&amp;gt;&lt;BR /&gt;{{ content.blog_post_author.display_name }}&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% module "social_sharing"&lt;BR /&gt;path="../modules/social-sharing",&lt;BR /&gt;styles={&lt;BR /&gt;"spacing": {&lt;BR /&gt;"spacing": {&lt;BR /&gt;"margin": {&lt;BR /&gt;"bottom": {&lt;BR /&gt;"value": 22,&lt;BR /&gt;"units": "px"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;%}&lt;BR /&gt;{% module "narration"&lt;BR /&gt;path="@hubspot/blog_audio",&lt;BR /&gt;overrideable=False&lt;BR /&gt;%}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="blog-post__body"&amp;gt;&lt;BR /&gt;{{ content.post_body }}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% if content.tag_list %}&lt;BR /&gt;&amp;lt;div class="blog-post__tags"&amp;gt;&lt;BR /&gt;&amp;lt;span class="icon--light"&amp;gt;&lt;BR /&gt;{% icon&lt;BR /&gt;extra_classes="icon blog-post__tags-icon"&lt;BR /&gt;name="tag",&lt;BR /&gt;purpose="decorative",&lt;BR /&gt;style="SOLID"&lt;BR /&gt;%}&lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;{% for tag in content.tag_list %}&lt;BR /&gt;&amp;lt;a class="blog-post__tag-link" href="{{ blog_tag_url(group.id, tag.slug) }}" rel="tag"&amp;gt;{{ tag.name }}&amp;lt;/a&amp;gt;{% if not loop.last %},{% endif %}&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/article&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;{# Blog comments #}&lt;/P&gt;&lt;P&gt;{% if group.allow_comments %}&lt;BR /&gt;&amp;lt;div class="blog-post-section"&amp;gt;&lt;BR /&gt;&amp;lt;div class="blog-comments"&amp;gt;&lt;BR /&gt;{% module "blog_comments_heading"&lt;BR /&gt;path="@hubspot/rich_text",&lt;BR /&gt;html="&amp;lt;h2&amp;gt;" ~ template_translations.blog_post_heading.message ~ "&amp;lt;/h2&amp;gt;"&lt;BR /&gt;%}&lt;BR /&gt;{% module "blog_comments"&lt;BR /&gt;path="@hubspot/blog_comments"&lt;BR /&gt;%}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;&lt;P&gt;{# Related posts #}&lt;/P&gt;&lt;P&gt;&amp;lt;div class="blog-post-section"&amp;gt;&lt;BR /&gt;{% module "related_posts"&lt;BR /&gt;path="../modules/related-posts"&lt;BR /&gt;%}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endblock body %}&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 11:12:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127150#M42512</guid>
      <dc:creator>03517</dc:creator>
      <dc:date>2025-03-25T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling featured image into blog post template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127193#M42514</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/859299"&gt;@03517&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="{{content.featured_image}}" alt="{{content.featured_image_alt_text}}" class="featured-image"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;will display the image, but I'd recommend to use it as a background-image like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="hero-bg-image" style="background-image:url({{content.featured_image}}); background-size:cover;background-position:center center; width:100%; min-height:200px;height:100%;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;as this will allow you to place content above the image like the title, time... Simply place the desired content inside the div-tag and modify your CSS to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 12:33:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127193#M42514</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2025-03-25T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling featured image into blog post template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127210#M42516</link>
      <description>&lt;P&gt;Hi Anton,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply and your help. I've tried both options but I'm getting the Error: Cannot resolve property for both of them, so it won't let me publish the template.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 13:01:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-featured-image-into-blog-post-template/m-p/1127210#M42516</guid>
      <dc:creator>03517</dc:creator>
      <dc:date>2025-03-25T13:01:08Z</dc:date>
    </item>
  </channel>
</rss>

