Skip to content

Commit

Permalink
🐛 Fix badge target link (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
kefranabg committed Sep 24, 2019
1 parent 2f327f7 commit 45df9a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions src/__snapshots__/readme.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
exports[`readme buildReadmeContent should return readme default template content 1`] = `
"<h1 align=\\"center\\">Welcome to readme-md-generator 👋</h1>
<p>
<a href=\\"https://www.npmjs.com/package/readme-md-generator\\">
<a href=\\"https://www.npmjs.com/package/readme-md-generator\\" target=\\"_blank\\">
<img alt=\\"Version\\" src=\\"https://img.shields.io/npm/v/readme-md-generator.svg\\">
</a>
<img src=\\"https://img.shields.io/badge/npm-%3E%3D5.5.0-blue.svg\\" />
<img src=\\"https://img.shields.io/badge/node-%3E%3D%209.3.0-blue.svg\\" />
<a href=\\"https://github.com/kefranabg/readme-md-generator#readme\\">
<img alt=\\"Documentation\\" src=\\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\\" target=\\"_blank\\" />
<a href=\\"https://github.com/kefranabg/readme-md-generator#readme\\" target=\\"_blank\\">
<img alt=\\"Documentation\\" src=\\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\\" />
</a>
<a href=\\"https://github.com/kefranabg/readme-md-generator/graphs/commit-activity\\">
<img alt=\\"Maintenance\\" src=\\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\\" target=\\"_blank\\" />
<a href=\\"https://github.com/kefranabg/readme-md-generator/graphs/commit-activity\\" target=\\"_blank\\">
<img alt=\\"Maintenance\\" src=\\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\\" />
</a>
<a href=\\"https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE\\">
<img alt=\\"License: MIT\\" src=\\"https://img.shields.io/badge/License-MIT-yellow.svg\\" target=\\"_blank\\" />
<a href=\\"https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE\\" target=\\"_blank\\">
<img alt=\\"License: MIT\\" src=\\"https://img.shields.io/badge/License-MIT-yellow.svg\\" />
</a>
<a href=\\"https://twitter.com/FranckAbgrall\\">
<img alt=\\"Twitter: FranckAbgrall\\" src=\\"https://img.shields.io/twitter/follow/FranckAbgrall.svg?style=social\\" target=\\"_blank\\" />
<a href=\\"https://twitter.com/FranckAbgrall\\" target=\\"_blank\\">
<img alt=\\"Twitter: FranckAbgrall\\" src=\\"https://img.shields.io/twitter/follow/FranckAbgrall.svg?style=social\\" />
</a>
</p>
Expand Down
18 changes: 9 additions & 9 deletions templates/default.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">Welcome to <%= projectName %> 👋</h1>
<p>
<% if (isProjectOnNpm) { -%>
<a href="https://www.npmjs.com/package/<%= projectName %>">
<a href="https://www.npmjs.com/package/<%= projectName %>" target="_blank">
<img alt="Version" src="https://img.shields.io/npm/v/<%= projectName %>.svg">
</a>
<% } -%>
Expand All @@ -14,23 +14,23 @@
<% }) -%>
<% } -%>
<% if (projectDocumentationUrl) { -%>
<a href="<%= projectDocumentationUrl %>">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" target="_blank" />
<a href="<%= projectDocumentationUrl %>" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>
<% } -%>
<% if (isGithubRepos) { -%>
<a href="<%= repositoryUrl %>/graphs/commit-activity">
<img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" target="_blank" />
<a href="<%= repositoryUrl %>/graphs/commit-activity" target="_blank">
<img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" />
</a>
<% } -%>
<% if (licenseName && licenseUrl) { -%>
<a href="<%= licenseUrl %>">
<img alt="License: <%= licenseName %>" src="https://img.shields.io/badge/License-<%= licenseName %>-yellow.svg" target="_blank" />
<a href="<%= licenseUrl %>" target="_blank">
<img alt="License: <%= licenseName %>" src="https://img.shields.io/badge/License-<%= licenseName %>-yellow.svg" />
</a>
<% } -%>
<% if (authorTwitterUsername) { -%>
<a href="https://twitter.com/<%= authorTwitterUsername %>">
<img alt="Twitter: <%= authorTwitterUsername %>" src="https://img.shields.io/twitter/follow/<%= authorTwitterUsername %>.svg?style=social" target="_blank" />
<a href="https://twitter.com/<%= authorTwitterUsername %>" target="_blank">
<img alt="Twitter: <%= authorTwitterUsername %>" src="https://img.shields.io/twitter/follow/<%= authorTwitterUsername %>.svg?style=social" />
</a>
<% } -%>
</p>
Expand Down

0 comments on commit 45df9a4

Please sign in to comment.