Skip to content

Commit 1ebf509

Browse files
Merge #973
973: Fallback to description if the crate has no readme r=carols10cents Fixes #967. This is still untested as I will need to setup my environment, but I am opening this to get early feedback. (Hello from rustconf)
2 parents cb22cab + 1057172 commit 1ebf509

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/templates/crate/version.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
<div class="crate-readme">
9696
{{crate-readme rendered=crate.readme}}
9797
</div>
98+
{{else}}
99+
{{#if crate.description}}
100+
<div class='about'>
101+
<h3>About This Package</h3>
102+
<p>{{ crate.description }}</p>
103+
</div>
104+
{{/if}}
98105
{{/if}}
99106
</div>
100107
<div class='authorship'>

0 commit comments

Comments
 (0)