2023-04-01 15:04:56 -04:00
|
|
|
{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
|
2021-03-28 10:09:22 -04:00
|
|
|
{{- $fileUrlPath := path.Join .File.Path }}
|
2021-03-30 08:37:36 -04:00
|
|
|
|
2022-03-27 09:14:06 -04:00
|
|
|
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
|
2022-08-31 21:57:32 -04:00
|
|
|
<a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}" rel="noopener noreferrer">
|
2022-03-27 09:14:06 -04:00
|
|
|
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
|
2021-03-23 05:28:26 -04:00
|
|
|
</a>
|
|
|
|
{{- end }}
|