-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix changelog layout to display releases cleanly
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |