From 27a2267feb141eb722e33b0e820a22eb2a5fbdd3 Mon Sep 17 00:00:00 2001 From: omsaggau Date: Fri, 26 Jan 2024 10:00:29 +0100 Subject: [PATCH] =?UTF-8?q?Rename=20ingress=20to=20preface=20so=20detectif?= =?UTF-8?q?y=20stops=20reporting=20fasle=20ingres=20e=E2=80=A6=20(#2468)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename ingress to preface so detectify stops reporting fasle ingres errors --- src/main/resources/site/parts/article/article.jsx | 6 +++--- src/main/resources/site/parts/article/article.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/site/parts/article/article.jsx b/src/main/resources/site/parts/article/article.jsx index 94cc5436e..a54277561 100644 --- a/src/main/resources/site/parts/article/article.jsx +++ b/src/main/resources/site/parts/article/article.jsx @@ -6,7 +6,7 @@ function Article(props) { const phrases = props.phrases function renderTitleIngress() { - const { introTitle, title, ingress } = props + const { introTitle, title, preface } = props return (
@@ -14,7 +14,7 @@ function Article(props) { {title} - {ingress &&

{ingress}

} + {preface &&

{preface}

}
) } @@ -178,7 +178,7 @@ Article.propTypes = { phrases: PropTypes.object, introTitle: PropTypes.string, title: PropTypes.string, - ingress: PropTypes.string, + preface: PropTypes.string, serialNumber: PropTypes.string, showPubDate: PropTypes.bool, pubDate: PropTypes.string, diff --git a/src/main/resources/site/parts/article/article.ts b/src/main/resources/site/parts/article/article.ts index dab1c84e3..1f92b7bef 100644 --- a/src/main/resources/site/parts/article/article.ts +++ b/src/main/resources/site/parts/article/article.ts @@ -71,7 +71,7 @@ function renderPart(req: XP.Request) { phrases, introTitle: page.data.introTitle, title: page.displayName, - ingress: page.data.ingress, + preface: page.data.ingress, bodyText, showPubDate: page.data.showPublishDate, pubDate, @@ -94,7 +94,7 @@ interface ArticleProps { phrases: Phrases | undefined introTitle: string | undefined title: string - ingress: string | undefined + preface: string | undefined bodyText: string | undefined showPubDate: boolean pubDate: string | undefined