mirror of
https://github.com/wassname/template.git
synced 2026-09-12 13:00:27 +08:00
Merge should be done; adds test for Google Scholar arxiv citation style.
This commit is contained in:
@@ -27,11 +27,15 @@ export function bylineTemplate(frontMatter) {
|
||||
</div>
|
||||
<div>
|
||||
<h3>Published</h3>
|
||||
<p>${frontMatter.publishedMonth}. ${frontMatter.publishedDay} ${frontMatter.publishedYear}</p>
|
||||
${frontMatter.published ? `
|
||||
<p>${frontMatter.publishedMonth}. ${frontMatter.publishedDay} ${frontMatter.publishedYear}</p> ` : `
|
||||
<p><em>Not yet published</em></p>`}
|
||||
</div>
|
||||
<div>
|
||||
<h3>DOI</h3>
|
||||
<p>${frontMatter.doi}</p>
|
||||
${frontMatter.doi ? `
|
||||
<p>${frontMatter.doi}</p>` : `
|
||||
<p><em>No DOI yet</em></p>`}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import Prism from 'prismjs';
|
||||
import 'prismjs/components/prism-python';
|
||||
import 'prismjs/components/prism-clike';
|
||||
import 'prismjs/components/prism-python';
|
||||
import 'prismjs/components/prism-clike';
|
||||
import 'prismjs/components/prism-lua';
|
||||
import 'prismjs/components/prism-bash';
|
||||
import 'prismjs/components/prism-go';
|
||||
import 'prismjs/components/prism-markdown';
|
||||
import 'prismjs/components/prism-julia';
|
||||
import css from 'prismjs/themes/prism.css';
|
||||
|
||||
import { Template } from '../mixins/template.js';
|
||||
@@ -43,7 +50,7 @@ export class Code extends Mutating(T(HTMLElement)) {
|
||||
}
|
||||
const language = Prism.languages[this.languageName];
|
||||
if (language == undefined) {
|
||||
console.warn(`Distill does not yet support highlighting your code block in "${this.languageName}".`);
|
||||
console.warn(`Distill does not yet support highlighting your code block in "${this.languageName}'.`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user