Browse Source

pub widget: Show authors when in simple mode

George Cushen 7 years ago
parent
commit
477bdf4094
1 changed files with 5 additions and 0 deletions
  1. 5 0
      layouts/partials/publication_li_simple.html

+ 5 - 0
layouts/partials/publication_li_simple.html

@@ -1,5 +1,10 @@
 <div class="pub-list-item" style="margin-bottom: 1rem" itemscope itemtype="http://schema.org/CreativeWork">
   <i class="fa fa-file-text-o pub-icon" aria-hidden="true"></i>
   <a href="{{ .Permalink }}" itemprop="name">{{ .Title }}</a>
+  <div itemprop="author">
+    {{ with .Params.authors }}
+      {{- delimit . ", " | markdownify -}}
+    {{- end -}}
+  </div>
   <p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
 </div>