mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
fix(term-link): replace removed _external-link.html partial with inline logic
Fixes the issue introduced by commit 7cb8dcc which removed the
_external-link.html partial. The external link logic is now handled
inline in the card.html template to properly support both internal
and external URLs.
This commit is contained in:
@@ -50,7 +50,11 @@
|
||||
{{ end }}
|
||||
<div class="px-6 py-4">
|
||||
<a
|
||||
{{ partial "article-link/_external-link.html" .Page | safeHTMLAttr }}
|
||||
{{ with .Page.Params.externalUrl }}
|
||||
href="{{ . }}" target="_blank" rel="external"
|
||||
{{ else }}
|
||||
href="{{ .Page.RelPermalink }}"
|
||||
{{ end }}
|
||||
class="not-prose before:absolute before:inset-0 decoration-primary-500 dark:text-neutral text-xl font-bold text-neutral-800 hover:underline hover:underline-offset-2">
|
||||
<div
|
||||
class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
||||
|
||||
Reference in New Issue
Block a user