Skip to content

Instantly share code, notes, and snippets.

@ahmadajmi
Created August 16, 2023 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadajmi/987139c919bf99ca03d48ca6c350d54d to your computer and use it in GitHub Desktop.
Save ahmadajmi/987139c919bf99ca03d48ca6c350d54d to your computer and use it in GitHub Desktop.
{{!< default}}
{{#contentFor 'title'}}{{ meta_title }}{{/contentFor}}
{{#post}}
<article class='c-{{ post_class }}'>
{{#match @page.show_title_and_feature_image}}
{{> post-header }}
{{/match}}
{{#if access}}
{{#if @custom.show_table_of_contents_on_all_pages}}
{{> table-of-contents }}
{{/if}}
{{#has tag='#table-of-content'}}
{{> table-of-contents}}
{{/has}}
{{/if}}
<section class='c-content {{#unless access}} c-content--has-shadow {{/unless}}'>
{{ content }}
</section>
{{!--
If the page is published for subscribers and paid members and the visitor is not one of those, show the upgrade box
--}}
{{#unless access}}
{{> page-upgrade-cta }}
{{/unless}}
<hr>
</article>
{{/post}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment