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

24 lines
654 B
Handlebars
Raw Normal View History

2021-04-14 08:24:27 +00:00
<div class="post-header__tag-row">
{{#if primary_tag}}
{{#primary_tag}}
2021-03-10 17:41:31 +00:00
<a href="{{url}}">
{{#if accent_color}}
2021-04-14 08:24:27 +00:00
<span class="post-header__tag-color" style="background-color: {{accent_color}};"></span>
2021-03-10 17:41:31 +00:00
{{else}}
2021-04-14 08:24:27 +00:00
<span class="post-header__tag-color"></span>
2021-03-10 17:41:31 +00:00
{{/if}}
2021-04-14 08:24:27 +00:00
<span class="post-header__tag-name">{{name}}</span>
2021-03-10 17:41:31 +00:00
</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-14 08:24:27 +00:00
<span class="post-header__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-14 08:24:27 +00:00
<span class="post-header__paywall">Member-exclusive</span>
2021-03-10 17:41:31 +00:00
</a>
2021-04-14 08:24:27 +00:00
{{/has}}
</div>