sfc-utils 1.4.30 → 1.4.32
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 +9 -2
- package/package.json +1 -1
package/components/byline.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
moddateString,
|
|
8
8
|
} from './helpers/datehelpers.mjs'
|
|
9
9
|
|
|
10
|
-
const Byline = ({ meta }) => {
|
|
10
|
+
const Byline = ({ meta, updateNote }) => {
|
|
11
11
|
const {
|
|
12
12
|
PROJECT: { AUTHORS, ISO_MODDATE, ISO_PUBDATE },
|
|
13
13
|
} = meta
|
|
@@ -40,7 +40,7 @@ const Byline = ({ meta }) => {
|
|
|
40
40
|
</>
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
{has_authors && <span
|
|
43
|
+
{has_authors && <span>{" "}|{" "}</span>}
|
|
44
44
|
|
|
45
45
|
{!moddateString &&
|
|
46
46
|
<>
|
|
@@ -65,6 +65,13 @@ const Byline = ({ meta }) => {
|
|
|
65
65
|
</time>
|
|
66
66
|
</>
|
|
67
67
|
)}
|
|
68
|
+
{/* Add a note if this is a live-updating project */}
|
|
69
|
+
{updateNote && (
|
|
70
|
+
<>
|
|
71
|
+
<span>{" "}|{" "}</span>
|
|
72
|
+
<span className="topper-update-note">{updateNote}</span>
|
|
73
|
+
</>
|
|
74
|
+
)}
|
|
68
75
|
</div>
|
|
69
76
|
<div className="articleHeader--shareTools">
|
|
70
77
|
<div className="share-list" id="sharebutton-wrapper">
|