Add post: 暗黑能天使

This commit is contained in:
2022-05-10 01:13:38 +08:00
parent e0a0b033ae
commit 90b654e708
104 changed files with 3185 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
{{/* Deprecation warning(v1.0.0) starts */}}
{{- if .Site.Params.comment.platform }}
{{- warnf "Param `comment.platform` in params.yaml is deprecated and will be removed in Eureka v1.0.0. Please use `comment.handler` instead." }}
{{- end }}
{{- $commentHandler := .Site.Params.comment.handler | default .Site.Params.comment.platform }}
{{/* Deprecation warning(v1.0.0) ends */}}
{{- $enableComment := false }}
{{- if $commentHandler }}
{{- $bundles := partial "utils/get-bundles" . }}
{{- $enableComment = true }}
{{- range $bundles.Reverse }}
{{- if and (ne .Params.enableComment nil) (ne .Params.enableComment "") }}
{{- $enableComment = .Params.enableComment }}
{{- end }}
{{- end }}
{{- end }}
{{ if $enableComment }}
{{ partial (printf "comment/%s" $commentHandler) . }}
{{ end }}