Files
sharedinbox/website/themes/PaperMod/layouts/_partials/edit_post.html
T
Thomas SharedInbox 58f1a4da42 feat(website): vendor PaperMod theme, remove git submodule (#125)
Replace the git submodule with directly tracked files so that
`git commit .` no longer fails with 'does not have a commit
checked out'. Removed .github/ from the vendored copy since
upstream CI workflows are not needed here.
2026-05-21 10:21:09 +02:00

21 lines
761 B
HTML

{{- 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 -}}
<span>
<a href="{{ $editURL }}" rel="noopener noreferrer edit" target="_blank">
{{- $editText -}}
</a>
</span>
{{- end }}