haleonearth
8/7/2018 - 5:37 PM

HubSpot Blog Content Markup example

<div class="post-header">
    <h2><a href="{{content.absolute_url}}">{{ content.name }}</a></h2>
    <div id="hubspot-author_data" class="hubspot-editable" data-hubspot-form-id="author_data" data-hubspot-name="Blog Author">
        Posted by <a class="author-link" href="{{ group.absolute_url }}/author/{{ content.blog_post_author.slug }}">{{ content.blog_post_author.display_name }}</a> on {{ content.publish_date_localized }}
    </div>
   {% blog_social_sharing "blog_social_sharing" overrideable=False, label='Blog Social Sharing' %}
</div>
<div class="post-body clearfix">
    <!--post summary-->
    {% if content.post_list_summary_featured_image %}
        <div class="hs-featured-image-wrapper">
            <a href="{{content.absolute_url}}" title="" class="hs-featured-image-link">
                <img src="{{ content.post_list_summary_featured_image }}" alt="{{ content.featured_image_alt_text }}" class="hs-featured-image">
            </a>
        </div>
    {% endif %}
    {{ content.post_list_content|safe }}
</div>
{% if content_group.show_summary_in_listing %}
    <a class="more-link" href="{{ content.absolute_url }}">Read More</a>
{% endif %}
<div class="custom_listing_comments">
    {% set comments_number =  content.comment_list|length %}
    {% set comments_label = "Comment" if comments_number == 1 else "Comments" %}
    {{ comments_number }} {{ comments_label }} <a href="{{content.absolute_url}}#comments-listing">Click here to read/write comments</a>
</div>
{% if content.topic_list %}
    <p id="hubspot-topic_data"> Topics:
        {% for topic in content.topic_list %}
            <a class="topic-link" href="{{ blog_tag_url(group.id, topic.slug) }}">{{ topic.name }}</a>{% if not loop.last %},{% endif %}
        {% endfor %}
    </p>
{% endif %}