CSS fixes

This commit is contained in:
Shan Carter
2017-01-11 16:38:28 -08:00
parent e107e72cd0
commit d8bc87061d
8 changed files with 42 additions and 20 deletions
+6
View File
@@ -62,8 +62,14 @@ export default function(dom, data) {
let oldHtml = el.innerHTML;
el.innerHTML = html;
let div = el.querySelector("div.l-body")
if (dom.querySelector("dt-fn")) {
div.innerHTML = `<h3>Footnotes</h3><dt-fn-list></dt-fn-list>` + div.innerHTML;
}
div.innerHTML = oldHtml + div.innerHTML;
el.querySelector("a.github").setAttribute("href", data.githubUrl);
el.querySelector("a.github-issue").setAttribute("href", data.githubUrl + "/issues/new");
el.querySelector(".citation.short").textContent = data.concatenatedAuthors + ", " + '"' + data.title + '", Distill, ' + data.publishedYear + ".";