{{ $item := . }} {{ $microdata_type := "CreativeWork" }} {{ $icon := "fa-file-alt" }} {{ $show_authors := false }} {{ $show_buttons := false }} {{/* Dynamic view adjusts to content type. */}} {{ if eq $item.Type "post" }} {{ $microdata_type = "BlogPosting" }} {{ $icon = "fa-newspaper" }} {{ else if eq $item.Type "talk" }} {{ $microdata_type = "Event" }} {{ $icon = "fa-calendar-alt" }} {{ else if eq $item.Type "publication" }} {{ $microdata_type = "ScholarlyArticle" }} {{ $show_authors = true }} {{ $show_buttons = true }} {{ end }}