Detect if a more tag is in the markdown

Just dropping the Go Template usage here (you should test .RawContent and not .Content):

{{ if strings.Contains .RawContent "<!--more-->" }}
	{{ .Summary }}
{{ else }}
	{{ .Description }}
{{ end }}
1 Like