fix: vendor PaperMod as regular files
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user