Skip to content

Commit 959541b

Browse files
committed
comment and publication info update
1 parent cd6c49c commit 959541b

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

dotcom-rendering/src/components/StorylinesSectionContent.importable.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ function formatDateRangeText(
165165
};
166166

167167
if (earliest) {
168-
return `since ${format(earliest)}`;
168+
return `articles published since ${format(earliest)}`;
169169
} else if (latest) {
170-
return `up to ${format(latest)}`;
170+
return `articles published up to ${format(latest)}`;
171171
} else {
172-
return '';
172+
return 'recent articles in our archives';
173173
}
174174
}
175175

@@ -297,7 +297,7 @@ export const StorylinesSectionContent = ({
297297
.{' '}
298298
</span>
299299
</Hide>
300-
{`These storylines were curated from articles published ${formatDateRangeText(
300+
{`These storylines were curated from ${formatDateRangeText(
301301
storylinesContent.earliestArticleTime,
302302
storylinesContent.latestArticleTime,
303303
)}. Some articles may be older to provide further context.`}

dotcom-rendering/src/layouts/TagPageLayout.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export const TagPageLayout = ({ tagPage, NAV }: Props) => {
6666
const isAccessibilityPage =
6767
tagPage.config.pageId === 'help/accessibility-help';
6868

69-
// console.dir(tagPage.nav, { depth: null });
70-
7169
return (
7270
<>
7371
<div data-print-layout="hide" id="bannerandheader">
@@ -137,12 +135,11 @@ export const TagPageLayout = ({ tagPage, NAV }: Props) => {
137135
)
138136
: undefined;
139137

140-
// We insert the storylines section after the first section or if there's only one section
141138
const insertStorylinesSection =
142139
tagPage.storylinesContent &&
143-
(index === 1 || tagPage.groupedTrails.length === 1) &&
144140
(!tagPage.pagination ||
145-
tagPage.pagination.currentPage === 1);
141+
tagPage.pagination.currentPage === 1) && // Only on the first page
142+
(index === 1 || tagPage.groupedTrails.length === 1); // After the first section or if there's only one section on the page
146143

147144
return (
148145
<Fragment key={containerId}>

0 commit comments

Comments
 (0)