{{- if and (.Param "editPost.URL") (not (.Param "editPost.disabled")) -}} {{- if or (.Param "author") (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} {{- printf " | " | safeHTML -}} {{- end -}} {{- $editURL := .Param "editPost.URL" }} {{- $appendFilePath := .Param "editPost.appendFilePath" | default false }} {{- $editText := .Param "editPost.Text" | default (i18n "edit_post" ) -}} {{- if $appendFilePath -}} {{- $fileUrlPath := path.Join .File.Path }} {{- $editURL = printf "%s/%s" $editURL $fileUrlPath -}} {{- end -}} {{- $editText -}} {{- end }}