{{/* Operator notices. Global ones are always followed by the current repository's, which is why the module merges them into one slice. The .Immutable guard is not cosmetic: commit pages are served with a year-long immutable cache, so a notice rendered into one would be frozen in the reader's browser with no way to revalidate. Those pages simply carry no banners. Guarding here rather than in the module means an immutable page never even computes them. */}} {{ define "notices" }} {{ if not .Immutable }} {{ with modOr "notices" }}
{{ range . }} {{ $n := . }}
{{ with .Title }}{{ . }}{{ end }} {{ with .Body }}{{ . }}{{ end }} {{ with .Link }}{{ with $n.LinkText }}{{ . }}{{ else }}More{{ end }}{{ end }}
{{ end }}
{{ end }} {{ end }} {{ end }}