{{- if .IPv4 }} You're using IPv4: {{ .IPv4 }} {{- else if .IPv6 }} You're using IPv6: {{ .IPv6 }} {{- end }} {{ .Content }}