chore(article-link): remove _external-link.html

we don't need this anymore
This commit is contained in:
ZhenShuo Leo
2025-09-18 03:50:35 +08:00
parent e26666c001
commit 7cb8dcc4a1
5 changed files with 21 additions and 11 deletions

View File

@@ -69,7 +69,11 @@
<div class="{{ $cardContentClasses }}">
<header class="items-center text-start text-xl font-semibold">
<a
{{ partial "article-link/_external-link.html" . | safeHTMLAttr }}
{{ with .Params.externalUrl }}
href="{{ . }}" target="_blank" rel="external"
{{ else }}
href="{{ .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">
<h2>
{{ $target.Title | emojify }}