Compare commits

...

5 Commits

Author SHA1 Message Date
Ludwig Schubert 70d8507938 Make polyfills link absolute. Release 2.2.7 2017-11-07 15:46:54 -08:00
Ludwig Schubert 2e6a0dda6d Upgrade katex to 0.8 2017-11-07 15:41:08 -08:00
Ludwig Schubert 315e888810 Add DOI to bibtex citation; minor style fix 2017-11-07 15:13:04 -08:00
Ludwig Schubert 4745281c2b 2.2.5 2017-10-24 17:02:06 -07:00
Ludwig Schubert ebffcb4416 Fix typo 2017-10-24 17:02:03 -07:00
5 changed files with 21 additions and 18 deletions
+11 -11
View File
@@ -1,6 +1,6 @@
{ {
"name": "distill-template", "name": "distill-template",
"version": "2.2.4", "version": "2.2.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@@ -3987,11 +3987,11 @@
} }
}, },
"katex": { "katex": {
"version": "0.7.1", "version": "0.8.3",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.7.1.tgz", "resolved": "https://registry.npmjs.org/katex/-/katex-0.8.3.tgz",
"integrity": "sha1-BrtSmO+tBeHnIoA1uo4VkfMGG48=", "integrity": "sha512-0VKw+G/wvgLKMy4fhhKdPGjXehYF3l3PBRdzkvBivK5wMtAH9xRHImQaGk9gaukBTdOfZ1Biq8kL5vgkUsBT0Q==",
"requires": { "requires": {
"match-at": "0.1.0" "match-at": "0.1.1"
} }
}, },
"kind-of": { "kind-of": {
@@ -4190,9 +4190,9 @@
"dev": true "dev": true
}, },
"match-at": { "match-at": {
"version": "0.1.0", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/match-at/-/match-at-0.1.0.tgz", "resolved": "https://registry.npmjs.org/match-at/-/match-at-0.1.1.tgz",
"integrity": "sha1-9WHncJ/5oQW4XMYsa47nwVvyTzE=" "integrity": "sha512-h4Yd392z9mST+dzc+yjuybOGFNOZjmXIPKWjxBd1Bb23r4SmDOsk2NYCU2BMUBGbSpZqwVsZYNq26QS3xfaT3Q=="
}, },
"memory-fs": { "memory-fs": {
"version": "0.4.1", "version": "0.4.1",
@@ -5157,9 +5157,9 @@
} }
}, },
"rollup": { "rollup": {
"version": "0.49.2", "version": "0.50.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.49.2.tgz", "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.50.0.tgz",
"integrity": "sha512-9mySqItSwq5/dXYQyFGrrzqV282EZfz4kSCU2m4e6OjgqLmIsp9zK6qNQ6wbBWR4EhASEqQMBQ/IF45jaNPAtw==", "integrity": "sha512-7RqCBQ9iwsOBPkjYgoIaeUij606mSkDMExP0NT7QDI3bqkHYQHrQ83uoNIXwPcQm/vP2VbsUz3kiyZZ1qPlLTQ==",
"dev": true "dev": true
}, },
"rollup-plugin-babili": { "rollup-plugin-babili": {
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "distill-template", "name": "distill-template",
"version": "2.2.4", "version": "2.2.7",
"description": "Template for creating Distill articles.", "description": "Template for creating Distill articles.",
"main": "dist/template.v2.js", "main": "dist/template.v2.js",
"bin": { "bin": {
@@ -34,7 +34,7 @@
"marked": "^0.3.6", "marked": "^0.3.6",
"mocha": "^3.5.3", "mocha": "^3.5.3",
"prismjs": "^1.6.0", "prismjs": "^1.6.0",
"rollup": "latest", "rollup": "^0.50.0",
"rollup-plugin-babili": "^3.1.0", "rollup-plugin-babili": "^3.1.0",
"rollup-plugin-buble": "^0.15.0", "rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^7.0.0", "rollup-plugin-commonjs": "^7.0.0",
@@ -61,6 +61,6 @@
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"intersection-observer": "^0.4.0", "intersection-observer": "^0.4.0",
"jsdom-wc": "^11.0.0-alpha-1", "jsdom-wc": "^11.0.0-alpha-1",
"katex": "^0.7.1" "katex": "^0.8.3"
} }
} }
+2 -1
View File
@@ -28,6 +28,7 @@ export function serializeFrontmatterToBibtex(frontMatter) {
title = {${frontMatter.title}}, title = {${frontMatter.title}},
journal = {${frontMatter.journal.title}}, journal = {${frontMatter.journal.title}},
year = {${frontMatter.publishedYear}}, year = {${frontMatter.publishedYear}},
note = {${frontMatter.url}} note = {${frontMatter.url}},
doi = {${frontMatter.doi}}
}`; }`;
} }
+4 -2
View File
@@ -105,14 +105,16 @@ figure svg text,
figure svg tspan { figure svg tspan {
} }
figcaption { figcaption,
.figcaption {
color: rgba(0, 0, 0, 0.6); color: rgba(0, 0, 0, 0.6);
font-size: 12px; font-size: 12px;
line-height: 1.5em; line-height: 1.5em;
} }
@media(min-width: 1024px) { @media(min-width: 1024px) {
figcaption { figcaption,
.figcaption {
font-size: 13px; font-size: 13px;
} }
} }
+1 -1
View File
@@ -42,7 +42,7 @@ const addBackIn = `
window.addEventListener('WebComponentsReady', function() { window.addEventListener('WebComponentsReady', function() {
console.warn('WebComponentsReady'); console.warn('WebComponentsReady');
const loaderTag = document.createElement('script'); const loaderTag = document.createElement('script');
loaderTag.src = 'http://localhost:8888/dist/template.v2.js'; loaderTag.src = 'https://distill.pub/template.v2.js';
document.head.insertBefore(loaderTag, document.head.firstChild); document.head.insertBefore(loaderTag, document.head.firstChild);
}); });
`; `;