Making code conditional

  • Remove headline line 1.

  • After line

{{ $filtered := where .Site.Pages "Params.parent" $url.Path }}

add

{{- if $filtered -}}
<h1>comments</h1>
{{- end -}}