Fix tags
This commit is contained in:
parent
34da56c001
commit
928f5145a4
|
@ -74,7 +74,7 @@
|
|||
</div>
|
||||
|
||||
{{#if post.tags}}
|
||||
<div class="flex gap-2 my-2 flex-flow-wrap">
|
||||
<div class="flex gap-2 my-2 flex-wrap">
|
||||
<style nonce="{{nonce}}">
|
||||
{{#each post.tags}}
|
||||
.{{this.BackgroundId}} { background-image: url('{{this.Background}}') }
|
||||
|
@ -83,7 +83,13 @@
|
|||
{{#each post.tags}}
|
||||
<a href="/t/{{this.Tag}}">
|
||||
<div class="rounded-md p-4 min-w-[110px] bg-slate-500 {{this.BackgroundId}}">
|
||||
<p class="font-bold text-white text-center">{{this.Display}}</p>
|
||||
<p class="font-bold text-white text-center">
|
||||
{{#if tag.Display}}
|
||||
{{this.Display}}
|
||||
{{else}}
|
||||
{{this.Tag}}
|
||||
{{/if}}
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
{{/each}}
|
||||
|
|
Loading…
Reference in New Issue