« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateNewsEntryPage.js15
1 files changed, 2 insertions, 13 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({