mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
support site config for new parameter
This commit is contained in:
parent
c789423303
commit
169adb5b8f
@ -2,7 +2,7 @@
|
||||
{{- $fileUrlPath := path.Join .File.Path }}
|
||||
|
||||
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
|
||||
<a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}{{ if .Params.editPost.appendQueryParam | default false}}?{{.Params.editPost.appendQueryParam | safeURL}}{{end}}" rel="noopener noreferrer" target="_blank">
|
||||
<a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}{{ if .Params.editPost.appendQueryParam | default ( site.Params.editPost.appendQueryParam | default false )}}?{{ ( .Params.editPost.appendQueryParam | default site.Params.editPost.appendQueryParam ) | safeURL}}{{end}}" rel="noopener noreferrer" target="_blank">
|
||||
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
|
||||
</a>
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user