bifocal/post.hbs

58 lines
2.0 KiB
Handlebars
Raw Normal View History

2022-09-12 05:59:12 -04:00
{{!< default}}
<main class="gh-main gh-outer">
<div class="gh-inner">
{{#post}}
<article class="gh-article {{post_class}}">
2024-07-31 13:10:37 -04:00
<div class="post-card-tags">
{{> "get-meta-tags"}}
</div>
2022-09-12 05:59:12 -04:00
{{#if feature_image}}
<header class="gh-article-header gh-canvas">
2024-09-01 00:32:57 -04:00
<h1 class="gh-article-title">
{{title}}
<div class="tag-desc">
{{> "get-desc-tags"}}
</div>
</h1>
2022-09-12 05:59:12 -04:00
{{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}}
</header>
{{/if}}
<section class="gh-content gh-canvas">
2024-09-01 00:52:37 -04:00
<aside class="gh-sidebar">
<div class="gh-toc"></div>
</aside>
2024-09-01 00:32:57 -04:00
2022-09-12 05:59:12 -04:00
{{content}}
2024-09-01 00:32:57 -04:00
2022-09-12 05:59:12 -04:00
{{#unless feature_image}}
<header class="gh-article-header">
<h1 class="gh-article-title">{{title}}</h1>
{{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}}
</header>
{{/unless}}
</section>
</article>
2024-09-01 00:52:37 -04:00
{{!-- Adds table of contents unless instructed not to --}}
{{^has tag="#hide toc"}}
<script src="{{asset "js/lib/tocbot.min.js"}}"></script>
<script>
tocbot.init({
tocSelector: '.gh-toc',
contentSelector: '.gh-content',
headingSelector: 'h1, h2',
hasInnerContainers: true,
});
</script>
{{/has}}
2022-09-12 05:59:12 -04:00
{{/post}}
</div>
2024-06-19 09:56:58 -04:00
</main>