diff --git a/_includes/package-grid.html b/_includes/package-grid.html index db9db3db..deba52c4 100644 --- a/_includes/package-grid.html +++ b/_includes/package-grid.html @@ -38,14 +38,47 @@

{% if apackage.gh_meta.documentation %}
  • View Docs
  • {% endif %} - {% if apackage.citation-link %} -
  • Cite
  • - {% endif %}
  • View Review
  • + + {% if apackage.archive and apackage.joss == nil %} + {% assign raw_string = apackage.archive %} + {% if raw_string contains "github.com" %} + +
  • + + GitHub Tag: + +
  • + {% elsif raw_string contains "latest" %} +
  • Missing tagged DOI
  • + {% elsif raw_string contains "doi.org/" %} + + + {% assign doi_url = raw_string | split: 'doi.org/' | last %} + {% assign doi = doi_url | split: ')' | first %} +
  • + Cite: + DOI badge for {{ doi }} + +
  • + {% endif %} + {% endif %} + {% if apackage.joss %} -
  • JOSS Approved
  • + {% assign raw_string = apackage.joss %} + {%- comment -%} + Split to isolate the DOI URL from the markdown string + {%- endcomment -%} + {% assign doi_url = raw_string | split: 'doi.org/' | last %} + {% assign doi_url = doi_url | split: ')' | first %} +
  • Cite: + + DOI badge for {{ doi }} + +
  • {% endif %} {% if apackage.astropy %} + True
  • Astropy
  • {% endif %} {% if apackage.sunpy %}