{{- define "post/body" }}
{{ "post" | .RenderStyle }} {{ $post := .TargetPost -}}

{{ $post.FM.Title }}

{{- $author := .Config.Author -}}{{/* 默认使用全局昵称 */}} {{- if $post.FM.Author }}{{ $author = $post.FM.Author }}{{ end -}}{{/* 文章内指定昵称则使用指定的昵称 */}} By {{ if $post.FM.AuthorLink }}{{ $author }}{{ else }}{{ $author }}{{ end }} {{- if $post.FM.Date }} at {{ "2006/01/02" | $post.FM.TimeDate.Format }}{{ else }} at Invalid Date{{ end }}

{{- if $post.FM.Updated -}}

Updated on {{ "2006/01/02" | $post.FM.TimeUpdated.Format }}

{{ end }} {{- if and $post.FM.Image (not $post.FM.ParsedFlags.HideImageAtPostTop) -}}{{ $post.FM.Title }}{{ end }}
{{ $post.RenderContent }}
{{ if not $post.FM.ParsedFlags.NoHeadingAnchor -}} {{- end -}}
{{ if not $post.FM.ParsedFlags.NoComment -}}
{{ "comment" | .RenderStyle }} {{ if .Config.Giscus.Enable -}} {{- end }} {{ if .Config.Seia.Enable -}} {{ $host := .Config.URL -}} {{ if .Config.Seia.Host }}{{ $host = .Config.Seia.Host }}{{ end -}} {{ if $host -}} {{ if and .Config.Seia.ShowInputBox .Config.Seia.WebmentionEndpoint -}}
{{- end }}
{{- end }} {{- end }}
{{- end }}
{{- end }}