Skip to content

Commit

Permalink
Fix formatting issues when rendering links
Browse files Browse the repository at this point in the history
  • Loading branch information
neobrain committed Dec 14, 2024
1 parent ec70f06 commit e8ff76a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
{{ end }}

<a href="{{ $rootPath }}{{ strings.Replace .Destination ":" "" }}"
{{- with .Title }} title="{{ . }}"{{ end -}}
style={{ $style }}
>
{{- with .Title }} title="{{ . }}" {{ end -}}
style={{ $style }}>
{{- with .Text }}{{ . }}{{ end -}}
</a>{{ else }}<a href="{{ .Destination | safeURL }}"
{{- with .Title }} title="{{ . }}"{{ end -}}
Expand Down

0 comments on commit e8ff76a

Please sign in to comment.