update dist

This commit is contained in:
Christopher Olah
2017-01-13 13:11:17 -08:00
parent bc04e18aba
commit 7e03641e08
2 changed files with 12 additions and 4 deletions
+11 -3
View File
@@ -6044,12 +6044,20 @@ var citation = function(dom, data) {
function link_string(ent){
if ("url" in ent){
if (ent.url.slice(-4) == ".pdf"){
var url = ent.url;
var arxiv_match = (/arxiv\.org\/abs\/([0-9\.]*)/).exec(url);
if (arxiv_match != null){
console.log(url);
url = "http://arxiv.org/pdf/" + (arxiv_match[1]) + ".pdf";
console.log(url);
}
if (url.slice(-4) == ".pdf"){
var label = "PDF";
} else if (ent.url.slice(-5) == ".html") {
} else if (url.slice(-5) == ".html") {
var label = "HTML";
}
return (" &ensp;<a href=\"" + (ent.url) + "\">[" + (label||"link") + "]</a>");
return (" &ensp;<a href=\"" + url + "\">[" + (label||"link") + "]</a>");
}/* else if ("doi" in ent){
return ` &ensp;<a href="https://doi.org/${ent.doi}" >[DOI]</a>`;
}*/ else {
+1 -1
View File
File diff suppressed because one or more lines are too long