Add ALT attr for example badge image on package pages

This commit is contained in:
Steve Purcell 2014-10-23 10:23:17 +01:00
parent e36f27f624
commit 71004d74fc

View file

@ -346,7 +346,7 @@
m("section",
m("h4", "Badge code"),
m(".well", [
packageLink(pkg, m("img", {src: melpa.rootURL + pkg.badgeURL})),
packageLink(pkg, m("img", {alt: ctrl.archivename.archiveName(), src: melpa.rootURL + pkg.badgeURL})),
m("dl", [
m("dt", "Markdown"),
m("dd", m("pre", "[![" + ctrl.archivename.archiveName() + "](" + melpa.rootURL + pkg.badgeURL + ")](" + melpa.rootURL + packagePath(pkg) + ")")),