Skip to content

Fix generated license html code metadata #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 31, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add rel="license" to license html
  • Loading branch information
obulat committed Jul 30, 2020
commit 7593f9f9203e4d3a76dc774ad7ef3c6ec80fbd7d
2 changes: 1 addition & 1 deletion src/utils/license-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function generateHTML(attributionDetails, shortLicenseName) {
licenseIcons += shortLicenseName.slice(3, shortLicenseName.length - 4).split('-').map(license =>
`<img ${iconStyle} src="${baseAssetsPath}/${license.toLowerCase()}.svg/${linkRef}" />`
).join('')
dataForHtmlGeneration.licenseIconsLink = `<a href="${licenseUrl(shortToAttr(shortLicenseName))}">${licenseIcons}</a>`
dataForHtmlGeneration.licenseIconsLink = `<a rel="license" href="${licenseUrl(shortToAttr(shortLicenseName))}">${licenseIcons}</a>`

if (attributionDetails.creatorName) {
const creatorSpan = `<span rel="cc:attributionName">${attributionDetails.creatorName}</span>`
Expand Down