Skip to content

Commit

Permalink
Don't show Backlinks header if there are no backlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanreese committed Sep 16, 2024
1 parent d5ff083 commit 04b01c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ for pageName, page of pages
lis = page.data.contributors.split(",").map (c)-> li c.trim()
aside += indent + " <section><h1>Contributors</h1><ul>#{lis}</ul></section>\n"

if page.backlinks
if backlinks.length
lis = backlinks.map(li).join("")
aside += indent + " <section><h1>Backlinks</h1><ul>#{lis}</ul></section>\n"

Expand Down

0 comments on commit 04b01c8

Please sign in to comment.