{* This Jet template block renders a comments section for either illustrations or novels. It takes two parameters: - data: The data object containing comment information (either Illust or Novel) - contentType: A string indicating the type of content ("illust" or "novel") The block handles displaying the comment count, whether comments are disabled, and renders a list of comments if available. Usage: {{- yield Comments(data=.Illust, contentType="illust") }} or {{- yield Comments(data=.Novel, contentType="novel") }} NOTE: Ensure that the data object contains the necessary fields for comments. *} {{- block Comments(data, contentType) }}
The creator turned comments off
{{- else if commentCount == 0 }}There are no comments yet
{{- else }}
Deleted user
{{- end }}{{ raw: parseEmojis(.Context) }}
{{ end }}