Closed buro9 closed 2 years ago
TIL that this produces a nil pointer deference:
<a href="{{ (microcosm_link $parent.Meta.Links "microcosm").Href | microcosm_api2ui }}">{{ (microcosm_link $parent.Meta.Links "microcosm").Title | safeHTML }}</a>
And the way to get around that is this:
{{ with (microcosm_link $parent.Meta.Links "microcosm") }} <a href="{{ .Href | microcosm_api2ui }}">{{ .Title | safeHTML }}</a> {{ end }}
TIL that this produces a nil pointer deference:
And the way to get around that is this: