Code for Properly-Formatted Ghost-Discourse Forum Integration?

Hi everyone –

Problem: Here is how my Ghost post appears as a Topic on my Discourse forum…

(Live link here Test for Discourse Embedding - From Jen.Studio - The nOObish Forum)

Of course, this is what I want the embed to actually look like in the forum post (I want it to look like the post appears on the blog page)…

(Live link here Test for Discourse Embedding)

Here is my post.hbs source where I have the Discourse embed code:

{{!< default}}
    <div class="tagShare">
        <div class="shareIcon icon-share"><!-- --></div>
        <div class="share">
            <a class="icon-twitter" href="{{encode title}}&amp;url={{url absolute="true"}}"
                    onclick=", 'twitter-share', 'width=550,height=235');return false;"></a>
            <a class="icon-facebook" href="{{url absolute="true"}}"
                    onclick=", 'facebook-share','width=580,height=296');return false;"></a>
    <article id="postMain" class="{{post_class}}">
      <section class="postContent doubleColumn">
        <h1 class="postTitle">{{{title}}}</h1>
        <div class="tags" style="color: #ef6752">#{{tags separator="#"}}</div>
        <time class="dateStamp" datetime="{{date format='YYYY-MM-DD'}}">
            <i>Published {{date format="DD MMM"}} by {{authors}}</i>
        {{#if prev}}
          <link rel="previous" href="{{page_url prev}}"></link>
        {{#if next}}
          <link rel="next" href="{{page_url next}}"></link>

        {{#if feature_image}}
        <figure class="article-image heroImage showHeroImage">
            {{!-- This is a responsive image, it loads different sizes depending on device
                srcset="{{img_url feature_image size="s"}} 300w,
                        {{img_url feature_image size="m"}} 600w,
                        {{img_url feature_image size="l"}} 1000w,
                        {{img_url feature_image size="xl"}} 2000w"
                sizes="(min-width: 1400px) 1400px, 92vw"
                src="{{img_url feature_image size="xl"}}"

            <div id='discourse-comments'></div>
            <script type="text/javascript">
              DiscourseEmbed = { discourseUrl: '',
                                 discourseEmbedUrl: '{{url absolute="true"}}' };
              (function() {
                var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
                d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);



I followed the instructions here…

I’ve partially solved this.

In the Discourse forum admin settings at

There under Crawler Settings

I added just the specific CSS selector where (for the specific theme I’m working with) the main content of the post resides…

I’d still like to know if there is a way to bring one or more images from the blog post into to the forum entry.

You can check that and try to do the same using your metatag data and some javascript coding: GitHub - discourse/onebox: A gem for turning URLs into website previews