Just dropping the Go Template usage here (you should test .RawContent and not .Content):
{{ if strings.Contains .RawContent "<!--more-->" }}
{{ .Summary }}
{{ else }}
{{ .Description }}
{{ end }}
Just dropping the Go Template usage here (you should test .RawContent and not .Content):
{{ if strings.Contains .RawContent "<!--more-->" }}
{{ .Summary }}
{{ else }}
{{ .Description }}
{{ end }}