diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-01 11:12:14 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-01 11:12:14 -0300 |
commit | f1b4ff800797dfc14acaeef3c7b2adb3412d738c (patch) | |
tree | a7fc510dc87df8d336c3e1783b2bb3ba43fb0d2f /src | |
parent | e03756a5113f9b9b37588dfa7ddfa96137c685fe (diff) |
content: generateNewsEntryPage: yeet date from nav bar
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateNewsEntryPage.js | 15 | ||||
-rw-r--r-- | src/strings-default.json | 2 |
2 files changed, 2 insertions, 15 deletions
diff --git a/src/content/dependencies/generateNewsEntryPage.js b/src/content/dependencies/generateNewsEntryPage.js index e3071a57..bf830980 100644 --- a/src/content/dependencies/generateNewsEntryPage.js +++ b/src/content/dependencies/generateNewsEntryPage.js @@ -95,20 +95,9 @@ export default { navLinkStyle: 'hierarchical', navLinks: [ {auto: 'home'}, + {html: relations.newsIndexLink}, { - html: - relations.newsIndexLink - .slot('content', language.$('newsEntryPage.nav.news')), - }, - { - html: - language.$('newsEntryPage.nav.entry', { - date: language.formatDate(data.date), - entry: - relations.currentEntryLink - .slot('attributes', {class: 'current'}), - }), - + auto: 'current', accent: (relations.previousNextLinks ? `(${language.formatUnitList(relations.previousNextLinks.slots({ diff --git a/src/strings-default.json b/src/strings-default.json index 2d829388..a37c8d53 100644 --- a/src/strings-default.json +++ b/src/strings-default.json @@ -468,8 +468,6 @@ "newsIndex.entry.viewRest": "(View rest of entry!)", "newsEntryPage.title": "{ENTRY}", "newsEntryPage.published": "(Published {DATE}.)", - "newsEntryPage.nav.news": "News", - "newsEntryPage.nav.entry": "{DATE}: {ENTRY}", "redirectPage.title": "Moved to {TITLE}", "redirectPage.infoLine": "This page has been moved to {TARGET}.", "tagPage.title": "{TAG}", |