mirror of
https://github.com/wassname/template.git
synced 2026-09-09 11:38:29 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8fa1f7eaa | ||
|
|
05179d887e |
+7
-3
@@ -80,13 +80,17 @@ export default function(dom, data) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (data.citations) {
|
if (data.citations) {
|
||||||
data.citations.forEach(key =>
|
data.citations.forEach(key => {
|
||||||
|
let d = data.bibliography[key];
|
||||||
|
if(!d) {
|
||||||
|
console.warn("No bibliography data fround for " + key)
|
||||||
|
} else {
|
||||||
meta("citation_reference", citation_meta_content(data.bibliography[key]) )
|
meta("citation_reference", citation_meta_content(data.bibliography[key]) )
|
||||||
);
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function appendHtml(el, html) {
|
function appendHtml(el, html) {
|
||||||
el.innerHTML += html;
|
el.innerHTML += html;
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+8
-3
@@ -4311,12 +4311,17 @@ var meta = function(dom, data) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (data.citations) {
|
if (data.citations) {
|
||||||
data.citations.forEach(function (key) { return meta("citation_reference", citation_meta_content(data.bibliography[key]) ); }
|
data.citations.forEach(function (key) {
|
||||||
);
|
var d = data.bibliography[key];
|
||||||
|
if(!d) {
|
||||||
|
console.warn("No bibliography data fround for " + key);
|
||||||
|
} else {
|
||||||
|
meta("citation_reference", citation_meta_content(data.bibliography[key]) );
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function appendHtml(el, html) {
|
function appendHtml(el, html) {
|
||||||
el.innerHTML += html;
|
el.innerHTML += html;
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "distill-template",
|
"name": "distill-template",
|
||||||
"version": "0.0.10",
|
"version": "0.0.11",
|
||||||
"description": "Template for creating Distill articles.",
|
"description": "Template for creating Distill articles.",
|
||||||
"main": "dist/template.js",
|
"main": "dist/template.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user