{{define "main"}} {{ $title := "" }} {{ $path := "" }} {{ if ne nil .SettingsPage }} {{ $title = .SettingsPage.Title }} {{ $path = .SettingsPage.Path }} {{ end }}