1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-25 10:37:32 +00:00
Yuika/partials/primary-tag.hbs

24 lines
603 B
Handlebars
Raw Normal View History

2021-04-22 13:34:59 +00:00
<div class="tag__row">
2021-04-14 08:24:27 +00:00
{{#if primary_tag}}
{{#primary_tag}}
2021-03-10 17:41:31 +00:00
<a href="{{url}}">
2021-07-10 17:56:01 +00:00
<span class="tag__name--post-header">{{name}}</span>
2021-03-10 17:41:31 +00:00
{{#if accent_color}}
2021-04-22 13:34:59 +00:00
<span class="tag__color" style="background-color: {{accent_color}};"></span>
2021-03-10 17:41:31 +00:00
{{else}}
2021-04-22 13:34:59 +00:00
<span class="tag__color"></span>
2021-03-10 17:41:31 +00:00
{{/if}}
</a>
2021-04-14 08:24:27 +00:00
{{/primary_tag}}
{{/if}}
{{#has visibility="paid"}}
2021-03-10 17:41:31 +00:00
<a href="/subscribe">
2021-04-22 13:34:59 +00:00
<span class="tag__paywall">Paid content</span>
2021-03-10 17:41:31 +00:00
</a>
2021-04-14 08:24:27 +00:00
{{/has}}
{{#has visibility="members"}}
2021-03-10 17:41:31 +00:00
<a href="/subscribe">
2021-04-22 13:34:59 +00:00
<span class="tag__paywall">Member-exclusive</span>
2021-03-10 17:41:31 +00:00
</a>
2021-04-14 08:24:27 +00:00
{{/has}}
</div>