li_citation.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{ $has_attachments := partial "functions/has_attachments" . }}
  2. <div class="pub-list-item" style="margin-bottom: 1rem">
  3. <i class="far fa-file-alt pub-icon" aria-hidden="true"></i>
  4. {{/* APA Style */}}
  5. {{ if eq (site.Params.publications.citation_style | default "apa") "apa" }}
  6. <span class="article-metadata li-cite-author">
  7. {{ partial "page_metadata_authors" . }}
  8. </span>
  9. ({{- .Date.Format "2006" -}}).
  10. <a href="{{ .RelPermalink }}">{{ .Title }}</a>.
  11. {{ if .Params.publication_short }}
  12. {{- .Params.publication_short | markdownify -}}.
  13. {{ else if .Params.publication }}
  14. {{- .Params.publication | markdownify -}}.
  15. {{ end }}
  16. <p>{{ partial "page_links" (dict "page" . "is_list" 1) }}</p>
  17. {{/* MLA Style */}}
  18. {{ else }}
  19. <span class="article-metadata li-cite-author">
  20. {{ partial "page_metadata_authors" . }}.
  21. </span>
  22. <a href="{{ .RelPermalink }}">{{ .Title }}</a>.
  23. {{ if .Params.publication_short }}
  24. {{- .Params.publication_short | markdownify -}},
  25. {{ else if .Params.publication }}
  26. {{- .Params.publication | markdownify -}},
  27. {{ end }}
  28. {{- .Date.Format "2006" -}}.
  29. {{ if $has_attachments }}
  30. <div class="btn-links">
  31. {{ partial "page_links" (dict "page" . "is_list" 1) }}
  32. </div>
  33. {{ end }}
  34. {{ end }}
  35. </div>