li_citation.html 1.1 KB

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