sfc-utils 1.4.61 → 1.4.63
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/components/byline.mjs +11 -3
- package/index.js +1 -1
- package/package.json +2 -2
package/components/byline.mjs
CHANGED
|
@@ -13,9 +13,17 @@ const Byline = ({ meta, updateNote, updatePrefix, ReplacementTime }) => {
|
|
|
13
13
|
} = meta
|
|
14
14
|
const has_authors = AUTHORS[0].AUTHOR_NAME !== ""
|
|
15
15
|
|
|
16
|
+
// check the width of the byline wrapper. if it's less than @md or 672px,
|
|
17
|
+
// change the display type to "block" to avoid large white spaces with
|
|
18
|
+
// the gift button
|
|
19
|
+
let bylineContainer = document.getElementById("byline-wrapper")
|
|
20
|
+
if (bylineContainer && bylineContainer.offsetWidth < 672) {
|
|
21
|
+
bylineContainer.style.display = "block"
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
return (
|
|
17
25
|
<>
|
|
18
|
-
<div className="byline-wrapper">
|
|
26
|
+
<div className="byline-wrapper" id="byline-wrapper">
|
|
19
27
|
<div className="byline">
|
|
20
28
|
{has_authors &&
|
|
21
29
|
<>
|
|
@@ -77,12 +85,12 @@ const Byline = ({ meta, updateNote, updatePrefix, ReplacementTime }) => {
|
|
|
77
85
|
{ReplacementTime &&
|
|
78
86
|
<ReplacementTime />
|
|
79
87
|
}
|
|
80
|
-
|
|
88
|
+
|
|
81
89
|
{/* Add a note if this is a live-updating project */}
|
|
82
90
|
{updateNote && (
|
|
83
91
|
<>
|
|
84
92
|
<span>{" "}|{" "}</span>
|
|
85
|
-
<span className="topper-update-note">{updateNote}</span>
|
|
93
|
+
<span className="topper-update-note">{updateNote}</span>
|
|
86
94
|
</>
|
|
87
95
|
)}
|
|
88
96
|
</div>
|
package/index.js
CHANGED
|
@@ -112,7 +112,7 @@ let blendHDN = function (meta) {
|
|
|
112
112
|
HDN.dataLayer.content.lastModifiedDate = moddate;
|
|
113
113
|
HDN.dataLayer.content.lastModifiedDateTimestamp = modTime;
|
|
114
114
|
HDN.dataLayer.content.wordCount = "";
|
|
115
|
-
HDN.dataLayer.content.keywords =
|
|
115
|
+
HDN.dataLayer.content.keywords = key_subjects;
|
|
116
116
|
HDN.dataLayer.content.keyPersons = [];
|
|
117
117
|
HDN.dataLayer.content.keyOrganizations = [];
|
|
118
118
|
HDN.dataLayer.content.keyConcepts = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfc-utils",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.63",
|
|
4
4
|
"author": "ewagstaff <evanjwagstaff@gmail.com>",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"archieml": "^0.4.2",
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
"react-transition-group": "^4.4.5",
|
|
15
15
|
"write": "^2.0.0"
|
|
16
16
|
}
|
|
17
|
-
}
|
|
17
|
+
}
|