summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/partials/edit_post.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2022-10-21 21:09:12 +0200
committerChristoph Cullmann <cullmann@kde.org>2022-10-21 21:09:12 +0200
commitec19540d9299cd65b3598bcb0acb69a6545c6e10 (patch)
tree7958239128857bf857da542da2360507feccec80 /themes/PaperMod/layouts/partials/edit_post.html
parent9e3457474b73741354cf222eb419e4733c2aac20 (diff)
add simple theme
Diffstat (limited to 'themes/PaperMod/layouts/partials/edit_post.html')
m---------themes/PaperMod0
-rw-r--r--themes/PaperMod/layouts/partials/edit_post.html8
2 files changed, 8 insertions, 0 deletions
diff --git a/themes/PaperMod b/themes/PaperMod
deleted file mode 160000
-Subproject 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cdd
diff --git a/themes/PaperMod/layouts/partials/edit_post.html b/themes/PaperMod/layouts/partials/edit_post.html
new file mode 100644
index 0000000..efa4c70
--- /dev/null
+++ b/themes/PaperMod/layouts/partials/edit_post.html
@@ -0,0 +1,8 @@
+{{- if or .Params.editPost.URL site.Params.editPost.URL -}}
+{{- $fileUrlPath := path.Join .File.Path }}
+
+{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }}&nbsp;|&nbsp;{{- 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 }}