site/_includes/download-list.html (38 lines of code) (raw):

{% assign apache = include.apache %} {% assign artifacts = include.artifacts %} {% assign project = include.project %} {% assign type = include.type %} {% assign version = include.version %} {% assign release = include.release %} {% for file in artifacts %} {% if apache %} {% if file contains "incubating" %} {% assign project = "incubator/" | append: project %} {% endif %} {% if release == "final" %} {% capture relver %}{{version}}{% endcapture %} {% capture artifact-root %}https://www.apache.org/dyn/closer.lua/download{% endcapture %} {% capture checksum-root %}https://downloads.apache.org{% endcapture %} {% else %} {% capture relver %}{{version}}-{{release}}{% endcapture %} {% capture artifact-root %}https://dist.apache.org/repos/dist/dev{% endcapture %} {% capture checksum-root %}https://dist.apache.org/repos/dist/dev{% endcapture %} {% endif %} {% capture file-path %}{{project}}/{{relver}}/{{type}}/{{file}}{% endcapture %} {% capture artifact-url %}{{artifact-root}}/{{file-path}}{% endcapture %} {% capture checksum-url %}{{checksum-root}}/{{file-path}}{% endcapture %} {% else %} {% capture artifact-url %}https://opensource.ncsa.illinois.edu/projects/artifacts.php?key=DFDL&version={{version}}&filename={{file}}{% endcapture %} {% endif %} <div class="row"> <div class="col-sm-6"> <a href="{{ artifact-url }}">{{ file }}</a> </div> <div class="col-sm-6"> {% if checksum-url %} [ <a href="{{ checksum-url }}.asc">PGP</a> ] [ <a href="{{ checksum-url }}.sha512">SHA512</a> ] {% endif %} </div> </div> {% endfor %}