This commit is contained in:
Shan Carter
2017-01-11 16:03:19 -08:00
parent beb7b6e195
commit 44af921b8c
5 changed files with 17 additions and 4 deletions
+3
View File
@@ -59,7 +59,10 @@ const html = `
export default function(dom, data) {
let el = dom.querySelector('dt-appendix')
if (el) {
let oldHtml = el.innerHTML;
el.innerHTML = html;
let div = el.querySelector("div.l-body")
div.innerHTML = oldHtml + div.innerHTML;
el.querySelector("a.github").setAttribute("href", data.githubUrl);
el.querySelector("a.github-issue").setAttribute("href", data.githubUrl + "/issues/new");