| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | {{ $item := . }}{{ $microdata_type := "CreativeWork" }}{{ $show_authors_only := false }}{{/* Show authors only or full metadata? */}}{{ $show_buttons := false }}{{ $link := $item.RelPermalink }}{{ $target := "" }}{{ if $item.Params.external_link }}  {{ $link = $item.Params.external_link }}  {{ $target = "target=\"_blank\" rel=\"noopener\"" }}{{ end }}{{/* Dynamic view adjusts to content type. */}}{{ if eq $item.Type "post" }}  {{ $microdata_type = "BlogPosting" }}{{ else if eq $item.Type "talk" }}  {{ $microdata_type = "Event" }}  {{ $show_authors_only = true }}  {{ $show_buttons = true }}{{ else if eq $item.Type "publication" }}  {{ $microdata_type = "ScholarlyArticle" }}  {{ $show_authors_only = true }}  {{ $show_buttons = true }}{{ else if eq $item.Type "project" }}  {{ $microdata_type = "CreativeWork" }}  {{ $show_authors_only = true }}  {{ $show_buttons = true }}{{ end }}{{/* Get summary. */}}{{ $summary := "" }}{{ if $item.Params.summary }}  {{ $summary = $item.Params.summary | markdownify | emojify }}{{ else if .Params.abstract }}  {{ $summary = .Params.abstract | markdownify | emojify }}{{ else if $item.Truncated }}  {{ $summary = $item.Summary }}{{ end }}<div class="media stream-item" itemscope itemtype="http://schema.org/{{$microdata_type}}">  <div class="media-body">    <h3 class="article-title mb-0 mt-0" itemprop="name">      <a href="{{$link}}" {{ $target | safeHTMLAttr }} itemprop="url">{{ $item.Title }}</a>    </h3>    {{ with $summary }}    <div class="article-style" itemprop="articleBody">      {{ . | truncate 135 }}    </div>    {{ end }}    <div class="stream-meta article-metadata">      {{ if eq $item.Type "talk" }}      <div>        <span itemprop="startDate">          {{ partial "functions/get_event_dates" $item }}        </span>        {{ with $item.Params.location }}        <span class="middot-divider"></span>        <span itemprop="location">{{ . }}</span>        {{ end }}      </div>      {{ end }}      {{ if and $show_authors_only $item.Params.authors }}      <div itemprop="author">        {{ partial "page_metadata_authors" $item }}      </div>      {{ else if not $show_authors_only }}        {{ partial "page_metadata" (dict "page" $item "is_list" 1) }}      {{ end }}    </div>    {{ if $show_buttons }}    <div class="btn-links">      {{ partial "page_links" (dict "page" $item "is_list" 1) }}    </div>    {{ end }}  </div>  <div class="ml-3">    {{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }}    {{ with $resource }}    {{ $image := .Resize "150x" }}    <a href="{{$link}}" {{ $target | safeHTMLAttr }}>      <img src="{{ $image.RelPermalink }}" itemprop="image">    </a>    {{end}}  </div></div>
 |