Skip to content

Commit a36a7d3

Browse files
committed
Better format changelog in updates
1 parent e192473 commit a36a7d3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/_data/updates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = () => {
1717
updateData["name"] = singleAutomation.name;
1818
updateData["version"] = defaultChannel.version;
1919
updateData["releaseDate"] = defaultChannel.released;
20-
updateData["changelog"] = ((singleAutomation.changelog || {})[defaultChannel.version] || []).join("\n");
20+
updateData["changelog"] = (singleAutomation.changelog || {})[defaultChannel.version] || [];
2121
return updateData;
2222
});
2323
})

src/pages/updates.njk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ permalink: "updates/"
2121
<th><a href="{{ ["/macros/" , update.namespace, "/"] | join | url }}">{{ update.name }}</a></th>
2222
<td>{{ update.version }}</td>
2323
<td>{{ update.releaseDate }}</td>
24-
<td>{{ update.changelog }}</td>
24+
<td>
25+
{% for changelogLine in update.changelog %}
26+
<li>{{ changelogLine | markdownify | safe }}</li>
27+
{% endfor %}
28+
</td>
2529
</tr>
2630
{% endfor %}
2731
</tbody>

0 commit comments

Comments
 (0)