mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 15:49:17 -04:00
Revert "Improve link render hook performance"
This commit is contained in:
parent
fe4c86ec42
commit
fa7643d1be
@ -116,7 +116,7 @@ either of these shortcodes in conjunction with this render hook.
|
||||
"renderHookName" $renderHookName
|
||||
"text" .Text
|
||||
}}
|
||||
{{- $attrs = partialCached "inline/h-rh-l/get-glossary-link-attributes.html" $ctx }}
|
||||
{{- $attrs = partial "inline/h-rh-l/get-glossary-link-attributes.html" $ctx }}
|
||||
{{- else if $u.IsAbs }}
|
||||
{{- /* Destination is a remote resource. */}}
|
||||
{{- $attrs = merge $attrs (dict "rel" "external") }}
|
||||
@ -136,7 +136,7 @@ either of these shortcodes in conjunction with this render hook.
|
||||
"parsedURL" $u
|
||||
"renderHookName" $renderHookName
|
||||
}}
|
||||
{{- partialCached "inline/h-rh-l/validate-fragment.html" $ctx }}
|
||||
{{- partial "inline/h-rh-l/validate-fragment.html" $ctx }}
|
||||
{{- $href = printf "%s#%s" $href . }}
|
||||
{{- end }}
|
||||
{{- $attrs = dict "href" $href }}
|
||||
@ -169,7 +169,7 @@ either of these shortcodes in conjunction with this render hook.
|
||||
"parsedURL" $u
|
||||
"renderHookName" $renderHookName
|
||||
}}
|
||||
{{- partialCached "inline/h-rh-l/validate-fragment.html" $ctx }}
|
||||
{{- partial "inline/h-rh-l/validate-fragment.html" $ctx }}
|
||||
{{- $attrs = dict "href" (printf "%s#%s" $.Page.RelPermalink .) }}
|
||||
{{- else }}
|
||||
{{- if eq $errorLevel "warning" }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user