mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-25 07:48:54 +00:00
75ee1624bd
* feat(external-link-guard): add native redirect mode and improve external-link guard UX * fix(external-link-guard): remove redirect_url and clarify scope/new_tab_policy docs * i18n(external-link-guard): localize guard texts across non-English locales * feat(config)!: migrate `site.Params.externalIcon` to `site.Params.link.external_icon` * refactor: implement regular and card link rendering * feat(link-guard): implement link redirection page with copy and confirm functionality * revert * feat: implement link guard dialog for external links --------- Co-authored-by: Cell <1024@lruihao.cn>
7 lines
288 B
HTML
7 lines
288 B
HTML
{{- $destination := .Destination -}}
|
|
{{- with dict "Path" $destination | partial "function/resource.html" -}}
|
|
{{- $destination = .RelPermalink -}}
|
|
{{- end -}}
|
|
{{- $options := dict "Destination" $destination "Title" .Title "Content" .Text -}}
|
|
{{- partial "plugin/link.html" $options -}}
|