Files
FixIt/layouts/_partials/_debug/template-call-stack.html
T
0x5c0f 75ee1624bd feat(link): add external link guard feature support (#729)
* 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>
2026-04-11 14:37:31 +08:00

20 lines
611 B
HTML

{{- /*
Render template call stack for debugging purpose.
@example
{{- partial "_debug/template-call-stack.html" . -}}
*/ -}}
{{- $debug := (site.Store.Get "devOpts").debug -}}
{{- if $debug | and hugo.IsServer -}}
{{- with templates.Current -}}
<ul class="template-call-stack">
{{- range .Ancestors -}}
<li><a href="vscode://file/{{ .Filename }}"><small>{{ .Filename }}</small></a></li>
{{- with .Base -}}
<li><a href="vscode://file/{{ .Filename }}"><small>{{ .Filename }}</small></a></li>
{{- end -}}
{{- end -}}
</ul>
{{- end -}}
{{- end -}}