publication_li_detailed.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div class="pub-list-item card-simple" itemscope itemtype="http://schema.org/CreativeWork">
  2. {{ if .Params.image_preview }}
  3. {{ .Scratch.Set "image" .Params.image_preview }}
  4. {{ else if .Params.header.image }}
  5. {{ .Scratch.Set "image" .Params.header.image }}
  6. {{ end }}
  7. {{ if .Scratch.Get "image" }}
  8. <div>
  9. <a href="{{ .RelPermalink }}">
  10. {{ $img_src := urls.Parse (.Scratch.Get "image") }}
  11. {{ if $img_src.Scheme }}
  12. <img src="{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
  13. {{ else }}
  14. <img src="{{ "/img/" | relURL }}{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
  15. {{ end }}
  16. </a>
  17. </div>
  18. {{ end }}
  19. <h3 class="article-title" itemprop="name">
  20. <a href="{{ .RelPermalink }}" itemprop="url">{{ .Title }}</a>
  21. </h3>
  22. <div class="pub-abstract" itemprop="text">
  23. {{ if .Params.abstract_short }}
  24. {{ .Params.abstract_short | markdownify }}
  25. {{ else }}
  26. {{ .Params.abstract | markdownify}}
  27. {{ end }}
  28. </div>
  29. <div class="pub-authors" itemprop="author">
  30. {{ with .Params.authors }}
  31. {{ delimit . ", " | markdownify }}
  32. {{ end }}
  33. </div>
  34. <div class="pub-publication">
  35. {{ if .Params.publication_short }}
  36. {{ .Params.publication_short | markdownify }},
  37. {{ else if .Params.publication }}
  38. {{ .Params.publication | markdownify }},
  39. {{ end }}
  40. {{ .Date.Format "2006" }}
  41. </div>
  42. <div class="pub-links">
  43. {{ partial "publication_links" (dict "content" . "is_list" 1) }}
  44. </div>
  45. </div>