1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-13 21:47:32 +00:00
Yuika/partials/primary-tag.hbs
2021-04-14 15:24:51 +07:00

24 lines
654 B
Handlebars

<div class="post-header__tag-row">
{{#if primary_tag}}
{{#primary_tag}}
<a href="{{url}}">
{{#if accent_color}}
<span class="post-header__tag-color" style="background-color: {{accent_color}};"></span>
{{else}}
<span class="post-header__tag-color"></span>
{{/if}}
<span class="post-header__tag-name">{{name}}</span>
</a>
{{/primary_tag}}
{{/if}}
{{#has visibility="paid"}}
<a href="/subscribe">
<span class="post-header__paywall">Paid content</span>
</a>
{{/has}}
{{#has visibility="members"}}
<a href="/subscribe">
<span class="post-header__paywall">Member-exclusive</span>
</a>
{{/has}}
</div>