Skip to content

Commit

Permalink
Revert "Improve link render hook performance"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Jan 30, 2025
1 parent fe4c86e commit fa7643d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"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") }}
Expand All @@ -136,7 +136,7 @@
"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 }}
Expand Down Expand Up @@ -169,7 +169,7 @@
"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" }}
Expand Down

0 comments on commit fa7643d

Please sign in to comment.