Refactor: Improve CHANGELOG.md formatting

This commit refactors the Liquid templating in `CHANGELOG.md` to:
- Indent Liquid logic for better readability.
- Improve spacing around headings (##, ###) and list items (-) for a cleaner rendered output.
This commit is contained in:
darken
2025-06-20 09:51:17 +02:00
committed by Matthias Urhahn
parent 8c3c09dc03
commit 1329429130
+14 -5
View File
@@ -63,18 +63,27 @@ title: "Changelog"
{% endif %}
{% endfor %}
{% comment %} Check if there are any bullet points (actual release notes) {% endcomment %}
{% if processed_lines contains "## " or processed_lines contains "- " %}
{% assign spaced_content = processed_lines | replace: "
{% comment %} Add proper spacing between sections and bullet points {% endcomment %}
{% assign final_content = processed_lines | replace: "
### ", "
### " %}
{% assign final_content = final_content | replace: "
## ", "
## " %}
{% assign final_content = final_content | replace: "
- ", "
- " %}
{{ spaced_content | markdownify }}
{% comment %} Check if there are any bullet points (actual release notes) {% endcomment %}
{% if final_content contains "## " or final_content contains "- " %}
{{ final_content | markdownify }}
{% else %}
*No release notes available.*
{{ processed_lines | markdownify }}
{{ final_content | markdownify }}
{% endif %}
---