Don't link items without URL

This commit is contained in:
Râu Cao 2024-01-27 08:17:35 +02:00
parent f08a119f2f
commit c53cfffda5
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -14,7 +14,11 @@
<p class="text-zinc-500">{{ .description }}</p> <p class="text-zinc-500">{{ .description }}</p>
{{ else }} {{ else }}
<h4 class="text-lg font-bold mb-2"> <h4 class="text-lg font-bold mb-2">
{{ if .url }}
<a href="{{ .url }}" class="!text-black">{{ .name }}</a> <a href="{{ .url }}" class="!text-black">{{ .name }}</a>
{{ else }}
<span class="!text-black">{{ .name }}</span>
{{ end }}
</h4> </h4>
<p>{{ .description }}</p> <p>{{ .description }}</p>
{{ end }} {{ end }}