addet paperMod Theme
This commit is contained in:
parent
e2eebff951
commit
249e5a7071
113 changed files with 5582 additions and 0 deletions
8
www/themes/paperMod/layouts/partials/edit_post.html
Normal file
8
www/themes/paperMod/layouts/partials/edit_post.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
|
||||
{{- $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 }}" rel="noopener noreferrer" target="_blank">
|
||||
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
|
||||
</a>
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue