Skip to content

Commit

Permalink
chore(examples): fix examples list
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa committed Mar 1, 2022
1 parent 6ea9b4e commit a39c58c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/build-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ ${examplesListHtml}
function getExamplesListHtml(examples) {
return `\
<ul>
${examples.map(({ name }) => {
const nameEncoded = encodeURIComponent(name);
return `<li><a target="_blank" href="${BASE_URL}examples/${nameEncoded}">${name}</a></li>`;
})}
${examples
.map(({ name }) => {
const nameEncoded = encodeURIComponent(name);
return `<li><a target="_blank" href="${BASE_URL}examples/${nameEncoded}">${name}</a></li>`;
})
.join("")}
</ul>
`;
}
Expand Down

0 comments on commit a39c58c

Please sign in to comment.