@@ -56,40 +56,65 @@ layout: default
5656 </div >
5757 {% endif %}
5858 {{ content }}
59-
59+
6060 {% if page .links %}
6161 <h2 >Links</h2 >
62-
62+
6363 {% comment %} Group links by type (extracted from name before parenthesis) {% endcomment %}
64- {% assign grouped_links = page .links | group_by_exp: " link" , "link.name | split: ' (' | first" %}
65-
64+ {% assign grouped_links = page .links | group_by_exp: ' link' , "link.name | split: ' (' | first" %}
65+
6666 <ul >
67- {% for group in grouped_links %}
68- {% assign group_name = group .name %}
69- {% assign links = group .items %}
70-
71- {% if links .size > 1 %}
72- {% comment %} Multiple links of same type {% endcomment %}
73- {% if group_name == "Slides" %}
74- {% comment %} Generic slides without conference prefix {% endcomment %}
75- <li >{{ group_name }} as {% for link in links %}{% assign link_label = link .name | split: '(' | last | split: ')' | first %}<a href =" {{ link .url }}" >{{ link_label }}</a >{% unless forloop .last %} or {% endunless %}{% endfor %}</li >
76- {% elsif group_name contains "Slides" %}
77- {% comment %} Conference-specific slides like "Slides ICSE24" {% endcomment %}
78- <li >{{ group_name }} as {% for link in links %}{% assign link_label = link .name | split: '(' | last | split: ')' | first %}<a href =" {{ link .url }}" >{{ link_label }}</a >{% unless forloop .last %} or {% endunless %}{% endfor %}</li >
79- {% else %}
80- <li >{{ group_name }} on {% for link in links %}{% assign link_label = link .name | split: '(' | last | split: ')' | first %}<a href =" {{ link .url }}" >{{ link_label }}</a >{% unless forloop .last %} and {% endunless %}{% endfor %}</li >
81- {% endif %}
82- {% else %}
83- {% comment %} Single link {% endcomment %}
84- {% assign link = links [0] %}
85- {% if link .name contains "Slides" %}
86- {% comment %} For single slide links, just display the full name as-is {% endcomment %}
87- <li ><a href =" {{ link .url }}" >{{ link .name }}</a ></li >
67+ {% for group in grouped_links %}
68+ {% assign group_name = group .name %}
69+ {% assign links = group .items %}
70+
71+ {% if links .size > 1 %}
72+ {% comment %} Multiple links of same type {% endcomment %}
73+ {% if group_name == 'Slides' %}
74+ {% comment %} Generic slides without conference prefix {% endcomment %}
75+ <li >
76+ {{ group_name }} as
77+ {% for link in links -%}
78+ {%- assign link_label = link .name | split: '(' | last | split: ')' | first -%}
79+ <a href =" {{ link .url }}" >{{ link_label }}</a >
80+ {%- unless forloop .last %} or {% endunless -%}
81+ {%- endfor %}
82+ </li >
83+ {% elsif group_name contains 'Slides' %}
84+ {% comment %} Conference-specific slides like "Slides ICSE24" {% endcomment %}
85+ <li >
86+ {{ group_name }} as
87+ {% for link in links -%}
88+ {%- assign link_label = link .name | split: '(' | last | split: ')' | first -%}
89+ <a href =" {{ link .url }}" >{{ link_label }}</a >
90+ {%- unless forloop .last %} or {% endunless -%}
91+ {%- endfor %}
92+ </li >
93+ {% else %}
94+ <li >
95+ {{ group_name }} on
96+ {% for link in links -%}
97+ {%- assign link_label = link .name | split: '(' | last | split: ')' | first -%}
98+ <a href =" {{ link .url }}" >{{ link_label }}</a >
99+ {%- unless forloop .last %} and {% endunless -%}
100+ {%- endfor %}
101+ </li >
102+ {% endif %}
88103 {% else %}
89- <li ><a href =" {{ link .url }}" >{{ link .name }}</a ></li >
104+ {% comment %} Single link {% endcomment %}
105+ {% assign link = links [0] %}
106+ {% if link .name contains 'Slides' %}
107+ {% comment %} For single slide links, just display the full name as-is {% endcomment %}
108+ <li >
109+ <a href =" {{ link .url }}" >{{ link .name }}</a >
110+ </li >
111+ {% else %}
112+ <li >
113+ <a href =" {{ link .url }}" >{{ link .name }}</a >
114+ </li >
115+ {% endif %}
90116 {% endif %}
91- {% endif %}
92- {% endfor %}
117+ {% endfor %}
93118 </ul >
94119 {% endif %}
95120 </article >
0 commit comments