Skip to content

Commit

Permalink
Update link to work on staging
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Sep 13, 2023
1 parent fe4aca1 commit b109446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{if or (in .Text "here") (in .Text "www") (in .Text "https") }}{{- errorf "Link text is too non-descriptive: %q" .Text -}}{{ end }}<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "https") }} target="_blank"{{ end }} >{{ .Text | safeHTML }}</a>
{{if or (in .Text "here") (in .Text "www") (in .Text "https") }}{{- errorf "Link text is too non-descriptive: %q" .Text -}}{{ end }}<a href="{{ if site.GetPage (.Destination | string) }}{{ with site.GetPage (.Destination | string) }}{{.RelPermalink | safeURL}}{{end}}{{end}}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "https") }} target="_blank"{{ end }} >{{ .Text | safeHTML }}</a>

0 comments on commit b109446

Please sign in to comment.