www.byjp.me/layouts/_default/_markup/render-link.xml
2024-05-23 15:23:43 +01:00

7 lines
333 B
XML

{{- if and (hasPrefix .Destination "/tags/") (not (strings.HasSuffix .Destination "#")) -}}
#{{.Text}}
{{- else if or (eq .Text "") (eq .Text .Destination) -}}
{{ .Destination }}
{{- else -}}
{{ partial "rich-link.html" (dict "Text" .Text "url" .Destination "Title" .Title "references" .Page.Params.references) }}
{{- end -}}