diff --git a/src/main/content/certifications.html b/src/main/content/certifications.html index e94c76677..ef0b29f06 100644 --- a/src/main/content/certifications.html +++ b/src/main/content/certifications.html @@ -11,52 +11,47 @@
-
-
-

{% t certifications.certification_title %}

-

{% t certifications.certification_desc %}

-
-
-
-

{% t certifications.olio_tck_results %}

-
    - {% assign certifications = site.pages | where: 'layout', 'certification' | sort: "url" %} - {% assign previous_cert_url_parts = "" %} - {% assign sameParent = true %} - {% for cert in certifications %} - {% assign cert_url_parts = cert.url | split: '/' %} - {% assign counter = 1 %} - {% for cert_url_part in cert_url_parts offset:2 %} - {% assign counter = counter | plus: 1 %} - {% if cert_url_part == previous_cert_url_parts[counter] and sameParent %} - {% continue %} - {% endif %} - {% if counter == 2 %} -

    {{ cert_url_part | upcase }}

    - {% if cert_url_parts.size == 3%} -
    - {% endif %} - {% continue %} - {% endif %} - {% if counter == 3 %} -
    - {% continue %} - {% endif %} - {% endfor %} - {% assign previous_cert_url_parts = cert_url_parts %} - {% assign sameParent = true %} - {% assign h2_start = cert.content | split: '' %} - {% assign h2_content_array = h2_end[1] | split: ' +
    +

    {% t certifications.certification_title %}

    +

    {% t certifications.certification_desc %}

    +
    + +
    +

    {% t certifications.olio_tck_results %}

    +
      + {% assign certifications = site.pages | where: 'layout', 'certification' %} + + {% assign grouped_certs = certifications | group_by_exp: 'page', 'page.spec' %} + {% assign grouped_certs = grouped_certs | sort: "name" %} + + {% for group in grouped_certs %} + {% assign last_version = "" %} +

      {{ group.name}}

      + {% assign url_sorted = group.items | sort: 'url' %} + {% assign sorted_certs = url_sorted | sort: 'version' | reverse %} + {% for cert in sorted_certs %} + {% if cert.version != last_version %} +
      + {% endif %} + + {% assign h2_start = cert.content | split: '' %} + {% assign h2_content_array = h2_end[1] | split: ' {{cert.url | remove_first: '/certifications/'}} + {% assign last_version = cert.version %} + {% endfor %} {% endfor %}
    -
    + +
+

- \ No newline at end of file + +