1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-16 14:57:32 +00:00
Yuika/partials/primary-tag.hbs

24 lines
603 B
Handlebars

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