Compare commits

..

1 Commits

Author SHA1 Message Date
Shan Carter ab8ab149e6 Moving headers in appendix to text column 2018-12-27 11:44:47 -08:00
7 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ To contribute a change, [check out the contributing guide](CONTRIBUTING.md).
### Local Development
First, run `npm install` to install all node modules required. Then, run `npm run dev` to start a watching build rollup server. To view the sample pages in the repo, you can run `npm run serve` as a separate process which starts a static server. `npm run build` will run a one-time build.
Run `npm run start` to start a watching build rollup server. To view the sample pages in the repo, you can run `npm run serve` as a separate process which starts a static server. `npm run build` will run a one-time build.
## Disclaimer & License
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "distill-template",
"version": "2.3.0",
"version": "2.2.26",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "distill-template",
"version": "2.3.0",
"version": "2.2.26",
"description": "Template for creating Distill articles.",
"main": "dist/template.v2.js",
"bin": {
+1 -1
View File
@@ -30,7 +30,7 @@ d-appendix {
}
d-appendix h3 {
grid-column: page-start / text-start;
grid-column: text;
font-size: 15px;
font-weight: 500;
margin-top: 1em;
+1 -1
View File
@@ -102,7 +102,7 @@ export class Cite extends T(HTMLElement) {
attributeChangedCallback(name, oldValue, newValue) {
const eventName = oldValue ? 'onCiteKeyChanged' : 'onCiteKeyCreated';
const keys = newValue.split(',').map(k => k.trim());
const keys = newValue.split(',');
const options = { detail: [this, keys], bubbles: true };
const event = new CustomEvent(eventName, options);
document.dispatchEvent(event);
+1 -1
View File
@@ -35,7 +35,7 @@ export function _moveLegacyAffiliationFormatIntoArray(frontMatter) {
}
export function parseFrontmatter(element) {
const scriptTag = element.firstElementChild;
const scriptTag = element.querySelector('script');
if (scriptTag) {
const type = scriptTag.getAttribute('type');
if (type.split('/')[1] == 'json') {
-1
View File
@@ -96,7 +96,6 @@ export function mergeFromYMLFrontmatter(target, source) {
target.authors = source.authors.map( (authorObject) => new Author(authorObject));
target.katex = source.katex;
target.password = source.password;
target.doi = source.doi;
}
export class FrontMatter {