mirror of
https://github.com/wassname/template.git
synced 2026-07-15 11:27:10 +08:00
Adding diff link
This commit is contained in:
@@ -70,6 +70,10 @@ export default function(dom, data) {
|
||||
|
||||
div.innerHTML = oldHtml + div.innerHTML;
|
||||
|
||||
if (data.githubCompareUpdatesUrl) {
|
||||
div.innerHTML = `<h3>Updates</h3><p><a href="${data.githubCompareUpdatesUrl}">View changes</a> since article was first published.</p>` + 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 + ".";
|
||||
|
||||
Reference in New Issue
Block a user