Skip to content

Commit

Permalink
Rename ingress to preface so detectify stops reporting fasle ingres e… (
Browse files Browse the repository at this point in the history
#2468)

Rename ingress to preface so detectify stops reporting fasle ingres errors
  • Loading branch information
omsaggau authored Jan 26, 2024
1 parent 01b9a67 commit 27a2267
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/site/parts/article/article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ function Article(props) {
const phrases = props.phrases

function renderTitleIngress() {
const { introTitle, title, ingress } = props
const { introTitle, title, preface } = props

return (
<div className='title-ingress-wrapper col-12 col-lg-8 p-0'>
{introTitle && <p className='introTitle searchabletext'>{introTitle}</p>}
<Title size={1} className='searchabletext'>
{title}
</Title>
{ingress && <p className='ingress searchabletext'>{ingress}</p>}
{preface && <p className='ingress searchabletext'>{preface}</p>}
</div>
)
}
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/site/parts/article/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 27a2267

Please sign in to comment.