mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-15 04:52:55 -04:00
Merge branch 'dev' into fix/772/set-to-top-elem-on-scrollable-height
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{{- $link := .Destination -}}
|
||||
{{- $isRemote := strings.HasPrefix $link "http" -}}
|
||||
{{- if not $isRemote }}
|
||||
{{ $url := urls.Parse .Destination }}
|
||||
{{- $url := urls.Parse .Destination -}}
|
||||
{{- if $url.Path }}
|
||||
{{ $fragment := "" }}
|
||||
{{- $fragment := "" }}
|
||||
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
|
||||
{{- with .Page.GetPage $url.Path }}
|
||||
{{ $link = printf "%s%s" .RelPermalink $fragment }}
|
||||
@@ -14,5 +14,4 @@
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
<!-- prettier-ignore -->
|
||||
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
|
||||
<!-- prettier-ignore --><a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
|
||||
Reference in New Issue
Block a user