mirror of
https://github.com/wassname/template.git
synced 2026-07-09 23:12:15 +08:00
update dist
This commit is contained in:
Vendored
+11
-3
@@ -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 ("  <a href=\"" + (ent.url) + "\">[" + (label||"link") + "]</a>");
|
||||
return ("  <a href=\"" + url + "\">[" + (label||"link") + "]</a>");
|
||||
}/* else if ("doi" in ent){
|
||||
return `  <a href="https://doi.org/${ent.doi}" >[DOI]</a>`;
|
||||
}*/ else {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user