diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-02-24 22:59:04 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-02-24 22:59:04 -0400 |
commit | 5057b24b53f3866cf9f34a6fdfa0d1345c0d8be0 (patch) | |
tree | 80c4d41078d1b23d6f3d8279c1470e84f8a7615a /src/page/news.js | |
parent | 71de050864a42afcaeb409c11b9c792653cf2f1b (diff) |
error-free basic full build
Diffstat (limited to 'src/page/news.js')
-rw-r--r-- | src/page/news.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/page/news.js b/src/page/news.js index 75ae9e48..8dc65981 100644 --- a/src/page/news.js +++ b/src/page/news.js @@ -31,7 +31,7 @@ export function write(entry, {wikiData}) { <div class="long-content"> <h1>${strings('newsEntryPage.title', {entry: entry.name})}</h1> <p>${strings('newsEntryPage.published', {date: strings.count.date(entry.date)})}</p> - ${transformMultiline(entry.body)} + ${transformMultiline(entry.content)} </div> ` }, @@ -68,8 +68,8 @@ export function writeTargetless({wikiData}) { ${newsData.map(entry => fixWS` <article id="${entry.directory}"> <h2><time>${strings.count.date(entry.date)}</time> ${link.newsEntry(entry)}</h2> - ${transformMultiline(entry.bodyShort)} - ${entry.bodyShort !== entry.body && `<p>${link.newsEntry(entry, { + ${transformMultiline(entry.contentShort)} + ${entry.contentShort !== entry.content && `<p>${link.newsEntry(entry, { text: strings('newsIndex.entry.viewRest') })}</p>`} </article> |