将PaperMod添加为静态文件
Some checks failed
Build and Deploy Qingshuige / build-deploy (push) Failing after 2s

This commit is contained in:
2026-02-03 03:04:10 +08:00
parent 67c9270df7
commit c6f751ec63
118 changed files with 5858 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
{{- 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 -}}
<span>
<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 edit" target="_blank">
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
</a>
</span>
{{- end }}