mirror of
https://github.com/wassname/template.git
synced 2026-07-16 11:22:25 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6679b120ab | ||
|
|
8bff98944a | ||
|
|
b4c8fdc56a |
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "distill-template",
|
"name": "distill-template",
|
||||||
"version": "2.2.17",
|
"version": "2.2.18",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "distill-template",
|
"name": "distill-template",
|
||||||
"version": "2.2.17",
|
"version": "2.2.18",
|
||||||
"description": "Template for creating Distill articles.",
|
"description": "Template for creating Distill articles.",
|
||||||
"main": "dist/template.v2.js",
|
"main": "dist/template.v2.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export function inline_cite_long(keys){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function author_string(ent, template, sep, finalSep){
|
function author_string(ent, template, sep, finalSep){
|
||||||
|
if (ent.author == null) { return ''; }
|
||||||
var names = ent.author.split(' and ');
|
var names = ent.author.split(' and ');
|
||||||
let name_strings = names.map(name => {
|
let name_strings = names.map(name => {
|
||||||
name = name.trim();
|
name = name.trim();
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export default function(dom, data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function author_string(ent, template, sep, finalSep){
|
function author_string(ent, template, sep, finalSep){
|
||||||
|
if (ent.author == null) { return ''; }
|
||||||
var names = ent.author.split(' and ');
|
var names = ent.author.split(' and ');
|
||||||
let name_strings = names.map(name => {
|
let name_strings = names.map(name => {
|
||||||
name = name.trim();
|
name = name.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user