Open Source Projects
Check out how the open source projects are using Apache Beam.
{{ $pages := .Pages }} {{ $.Scratch.Set "categories" (slice ) }} {{ $.Scratch.Set "noCategories" 0 }} {{ range .Pages}} {{ with .Params.categories }} {{ if eq ( printf "%T" . ) "string" }} {{ if ( not ( in ($.Scratch.Get "categories") . ) ) }} {{ $.Scratch.Add "categories" . }} {{ end }} {{ else if eq ( printf "%T" . ) "[]string" }} {{ range . }} {{ if ( not ( in ($.Scratch.Get "categories") . ) ) }} {{ $.Scratch.Add "categories" . }} {{ end }} {{ end }} {{ end }} {{ else }} {{ $.Scratch.Add "noCategories" 1 }} {{ end }} {{ end }}