🏗️ Finish post edit widget coding.

This commit is contained in:
凡梦星尘
2022-06-04 10:43:00 +08:00
parent fa5195c8a2
commit 6c362cf117
14 changed files with 30 additions and 21 deletions

View File

@@ -29,7 +29,11 @@
<a href="{{ .Permalink }}" itemprop="url" class="post-title-link">{{ .Title }}</a>
{{- end }}
{{- else }}
{{ .Title }}
{{- .Title }}
{{- if .Site.Params.postEdit.enable }}
{{- $editURL := printf "%s%s" .Site.Params.postEdit.url (path.Clean .File.Path) }}
<a href="{{ $editURL }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-edit-link" title="{{ T "PostEditTitle" }}"><i class="fa fa-pen-nib"></i></a>
{{- end }}
{{- end }}
</h2>
<div class="post-meta-container">