1111
1212< div id ="article_container " class ="container-fluid ">
1313 < article class ="post " aria-label ="article ">
14- < header id ="post_header ">
15- < div class ="container ">
16- < h1 id ="post_title "> {% t certifications.certification_title %}</ h1 >
17- < p id ="cert_description "> {% t certifications.certification_desc %}</ p >
18- </ div >
19- </ header >
20- < div id ="article_body " class ="container ">
21- < h1 id ="TCKs "> {% t certifications.olio_tck_results %}</ h1 >
22- < ul >
23- {% assign certifications = site.pages | where: 'layout', 'certification' | sort: "url" %}
24- {% assign previous_cert_url_parts = "" %}
25- {% assign sameParent = true %}
26- {% for cert in certifications %}
27- {% assign cert_url_parts = cert.url | split: '/' %}
28- {% assign counter = 1 %}
29- {% for cert_url_part in cert_url_parts offset:2 %}
30- {% assign counter = counter | plus: 1 %}
31- {% if cert_url_part == previous_cert_url_parts[counter] and sameParent %}
32- {% continue %}
33- {% endif %}
34- {% if counter == 2 %}
35- < h2 style ="margin-left: -20px; margin-bottom:-20px "> {{ cert_url_part | upcase }}</ h2 >
36- {% if cert_url_parts.size == 3%}
37- < br >
38- {% endif %}
39- {% continue %}
40- {% endif %}
41- {% if counter == 3 %}
42- < br >
43- {% continue %}
44- {% endif %}
45- {% endfor %}
46- {% assign previous_cert_url_parts = cert_url_parts %}
47- {% assign sameParent = true %}
48- {% assign h2_start = cert.content | split: '< h2 ' %}
49- {% assign h2_end = h2_start[1] | split: '> ' %}
50- {% assign h2_content_array = h2_end[1] | split: '</ h2 ' %}
51- {% assign h2_content = h2_content_array[0] %}
14+ < header id ="post_header ">
15+ < div class ="container ">
16+ < h1 id ="post_title "> {% t certifications.certification_title %}</ h1 >
17+ < p id ="cert_description "> {% t certifications.certification_desc %}</ p >
18+ </ div >
19+ </ header >
20+ < div id ="article_body " class ="container ">
21+ < h1 id ="TCKs "> {% t certifications.olio_tck_results %}</ h1 >
22+ < ul >
23+ {% assign certifications = site.pages | where: 'layout', 'certification' %}
24+
25+ {% assign grouped_certs = certifications | group_by_exp: 'page', 'page.spec' %}
26+ {% assign grouped_certs = grouped_certs | sort: "name" %}
27+
28+ {% for group in grouped_certs %}
29+ {% assign last_version = "" %}
30+ < h2 style ="margin-left: -20px; margin-bottom:-20px "> {{ group.name}}</ h2 >
31+ {% assign url_sorted = group.items | sort: 'url' %}
32+ {% assign sorted_certs = url_sorted | sort: 'version' | reverse %}
33+ {% for cert in sorted_certs %}
34+ {% if cert.version != last_version %}
35+ < br />
36+ {% endif %}
37+
38+ {% assign h2_start = cert.content | split: '< h2 ' %}
39+ {% assign h2_end = h2_start[1] | split: '> ' %}
40+ {% assign h2_content_array = h2_end[1] | split: '</ h2 ' %}
41+ {% assign h2_content = h2_content_array[0] %}
5242 < li >
5343 < a href ="{{ cert.url }} " title ={% if h2_content ! = nill and h2_content ! = empty %} "{{ h2_content }}" {% endif %}>
5444 {{cert.url | remove_first: '/certifications/'}}
5545 </ a >
5646 </ li >
47+ {% assign last_version = cert.version %}
48+ {% endfor %}
5749 {% endfor %}
5850 </ ul >
59- </ div >
51+
52+ </ div >
6053 </ article >
54+ </ div >
6155 < br />
62- </ div >
56+ </ div >
57+
0 commit comments