{{ $url := .Params.editURL | default (.Site.Params.article.editURL | default "#") }} {{ $slash := "" }} {{ if .Params.editAppendPath | default ( .Site.Params.article.editAppendPath | default false ) }} {{ if ne (substr $url -1 1) "/" }} {{ $slash = "/" }} {{ end }} {{ $url = printf "%s%s%s" $url $slash (path.Join .File.Path) }} {{ end }} {{ partial "icon.html" "edit" }} {{- /* Trim EOF */ -}}