forked from xsf/xmpp-providers-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace usage of external-link shortcode with internal markdown override
- Loading branch information
1 parent
1de8af9
commit 6f19c64
Showing
8 changed files
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
themes/xmpp-providers/layouts/_default/_markup/render-link.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- $link := .Destination -}} | ||
{{- $isRemote := strings.HasPrefix $link "http" -}} | ||
{{- if not $isRemote -}} | ||
{{- $url := urls.Parse .Destination -}} | ||
{{- if $url.Path -}} | ||
{{- $fragment := "" -}} | ||
{{- with $url.Fragment -}}{{- $fragment = printf "#%s" . -}}{{- end -}} | ||
{{- with .Page.GetPage $url.Path -}}{{- $link = printf "%s%s" .RelPermalink $fragment -}}{{- end -}}{{- end -}} | ||
{{- end -}} | ||
<a href="{{- $link | safeURL -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}{{- if $isRemote -}} target="_blank" class="icon-link"{{- end -}}>{{- .Text | safeHTML -}}{{- if $isRemote -}}<i class="fa-solid fa-arrow-up-right-from-square fa-xs opacity-75 me-1"></i>{{- end -}}</a> |
This file was deleted.
Oops, something went wrong.