sfc-utils 1.3.17 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/topper.js +2 -3
package/package.json
CHANGED
package/topper.js
CHANGED
|
@@ -93,7 +93,6 @@ let getTopper = function(settings){
|
|
|
93
93
|
authorLinks = authorLink.split(',')
|
|
94
94
|
}
|
|
95
95
|
let authorHTML = ""
|
|
96
|
-
console.log("authorNames", authorNames)
|
|
97
96
|
for (let i = 0; i<authorNames.length; i++){
|
|
98
97
|
// If we have a matching link, build it
|
|
99
98
|
if (authorLinks[i]){
|
|
@@ -102,9 +101,9 @@ let getTopper = function(settings){
|
|
|
102
101
|
// If we don't just print the name
|
|
103
102
|
authorHTML += `<span itemscope="" itemprop="author" itemtype="http://schema.org/Person">${authorNames[i].trim()}</span>`
|
|
104
103
|
}
|
|
105
|
-
if (i < authorNames.length -
|
|
104
|
+
if (i < authorNames.length - 2){
|
|
106
105
|
authorHTML += ", "
|
|
107
|
-
} else if (i === authorNames.length -
|
|
106
|
+
} else if (i === authorNames.length - 2){
|
|
108
107
|
authorHTML += " and "
|
|
109
108
|
}
|
|
110
109
|
}
|