Don't link items without URL
This commit is contained in:
parent
f08a119f2f
commit
c53cfffda5
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user