modified history template
All checks were successful
FHIR IG CI/CD Pipeline with Version Persistence / build-ig (push) Successful in 5m38s
FHIR IG CI/CD Pipeline with Version Persistence / deploy (push) Successful in 8s

This commit is contained in:
2026-03-07 05:40:28 +06:00
parent 57aba6ddc6
commit 4d24e3f30c

View File

@@ -12,20 +12,28 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for ver in site.data['package-list'].list %} {% comment %} Try Publisher's internal info first, then fall back to the _data file {% endcomment %}
{% if ver.version != 'current' %} {% assign versions = site.data.info.versions %}
{% if versions == nil %}
{% assign versions = site.data['package-list'].list %}
{% endif %}
{% for ver in versions %}
{% if ver.version != 'current' and ver.id != 'current' %}
<tr> <tr>
<td><a href="{{ver.path}}"><b>{{ver.version}}</b></a></td> <td><a href="{{ ver.path | default: ver.url }}"><b>{{ ver.version | default: ver.id }}</b></a></td>
<td>{{ver.date}}</td> <td>{{ ver.date }}</td>
<td><span class="badge">{{ver.status}}</span></td> <td><span class="badge">{{ ver.status }}</span></td>
<td>{{ver.desc}}</td> <td>{{ ver.desc }}</td>
</tr> </tr>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% if site.data['package-list'] == nil %} {% if versions == nil %}
<p style="color: red;"><i>Notice: package-list.json not found in _data folder during build.</i></p> <p style="color: #856404; background-color: #fff3cd; padding: 10px; border: 1px solid #ffeeba;">
<strong>Notice:</strong> Version data could not be resolved. Ensure <code>input/_data/package-list.json</code> exists.
</p>
{% endif %} {% endif %}
</div> </div>