Explorar o código

pub widget: Show authors when in simple mode

George Cushen %!s(int64=7) %!d(string=hai) anos
pai
achega
477bdf4094
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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>