<aside class="custom-post-upgrade-cta">
    <div class="custom-post-upgrade-cta-content" style="background-color: {{@site.accent_color}}">
        {{#has visibility="paid"}}
            {{#is "page"}}
                <h2>This page is for paying subscribers only</h2>
            {{else}}
                <h2>This post is for paying subscribers only</h2>
            {{/is}}
        {{/has}}
        {{#has visibility="members"}}
            {{#is "page"}}
                <h2>This page is for subscribers only</h2>
            {{else}}
                <h2>This post is for subscribers only</h2>
            {{/is}}
        {{/has}}
        {{#has visibility="tiers"}}
            {{#is "page"}}
                <h2>This page is for subscribers on the {{tiers}} only </h2>
            {{else}}
                <h2>This post is for subscribers on the {{tiers}} only </h2>
            {{/is}}
        {{/has}}
        {{#if @member}}
            <a class="gh-btn" data-portal="account/plans" style="color:{{@site.accent_color}}">Account upgrade link</a>
        {{else}}
            <a class="gh-btn" data-portal="signup" style="color:{{@site.accent_color}}">Subscribe now</a>
            <p><small>Already have an account? <a data-portal="signin">Sign in</a></small></p>
        {{/if}}
    </div>
</aside>
