Skip to content

Commit

Permalink
Fix the HTML syntax in the template (#255)
Browse files Browse the repository at this point in the history
* close the <h4> tag
* move the <h3> into <li>
* remove spaces in the link
  • Loading branch information
mkauf authored Sep 2, 2024
1 parent e7e53bc commit 4abf10f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions about.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<h1>Third Party Licenses</h1>
<p>This page lists the licenses of the projects used in cargo-about.</p>
</div>

<h2>Overview of licenses:</h2>
<ul class="licenses-overview">
{{#each overview}}
Expand All @@ -55,16 +55,16 @@
<h2>All license text:</h2>
<ul class="licenses-list">
{{#each licenses}}
<!-- Write out a header for each block of the same license -->
{{#if first_of_kind}}
<h3 id="{{id}}">{{name}}</h3>
{{/if}}
<li class="license">
<h4 id="{{id}}-{{@index}}">{{name}}</h>
{{! Write out a header for each block of the same license }}
{{#if first_of_kind}}
<h3 id="{{id}}">{{name}}</h3>
{{/if}}
<h4 id="{{id}}-{{@index}}">{{name}}</h4>
<h5>Used by:</h5>
<ul class="license-used-by">
{{#each used_by}}
<li><a href="{{#if crate.repository}} {{crate.repository}} {{else}} https://crates.io/crates/{{crate.name}} {{/if}}">{{crate.name}} {{crate.version}}</a></li>
<li><a href="{{#if crate.repository}}{{crate.repository}}{{else}}https://crates.io/crates/{{crate.name}}{{/if}}">{{crate.name}} {{crate.version}}</a></li>
{{/each}}
</ul>
<pre class="license-text">{{text}}</pre>
Expand Down

0 comments on commit 4abf10f

Please sign in to comment.