@Rachel-Marvel - Here’s the code we use when belch.io email templates are created (this is the HUBL output).
The first “if” statement checks to make sure the marketer setting up or creating the email has enabled the “view as webpage” toggle and the “view_as_page_url” is the link to the email’s web page version:
{% if content.create_page %}
<div>
Not rendering correctly? View this email as a web page <a class="hubspot-mergetag" data-viewaswebpage="true" href="{{ view_as_page_url }}">here</a>.
</div>
{% endif %}