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