Skip to content

Commit

Permalink
fix: fix changelog layout to display releases cleanly
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <[email protected]>
  • Loading branch information
Bruce Becker committed Jan 8, 2021
1 parent 08574e7 commit 0f2690f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions _layouts/changelog.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
---
layout: page
---
{{ site.github.releases }}
{% assign n_releases = site.github.releases | size %}
<p class="prose">
This project uses <b><em><a href="https://www.conventionalcommits.org/en/v1.0.0/">Conventional Commits</a></em></b> and <b><em><a href="https://semantic-release.gitbook.io/">Semantic Release</a></em></b> to automate releases via the commit log.
</p>
{% if n_releases > 1 %}
<ul>
{% if n_releases >= 1 %}
{% for v in site.github.releases %}
<li>{{ v }}</li>
{{ v.body | markdownify |replace: 'h1', 'h2'| strip_newlines}}
{% endfor %}
</ul>
{% else %}
<h2>No releases yet</h2>
{% endif %}

0 comments on commit 0f2690f

Please sign in to comment.