Skip to content

Commit

Permalink
Fix dangling space behind link
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylee97 committed Sep 6, 2023
1 parent 62c28a7 commit b5c9e88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layouts/partials/hook/link.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<a class="link-dark link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover"
href="{{ .dest | safeURL }}"
{{ with .title }} title="{{ . }}"{{ end }}
{{ if or (strings.HasPrefix .dest "http") (strings.HasSuffix .dest ".pdf") }} target="_blank" rel="noopener" {{ end }}>
{{ .text | safeHTML }}
</a>
{{ if or (strings.HasPrefix .dest "http") (strings.HasSuffix .dest ".pdf") }} target="_blank" rel="noopener" {{ end }}
>{{ .text | safeHTML }}</a>

0 comments on commit b5c9e88

Please sign in to comment.