« get me outta code hell

content: listings stub (listAlbumsByName) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-24 11:49:24 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-24 11:49:24 -0300
commit68b9e2fec15a81a14d80ecc4bf886a05888ee9f9 (patch)
tree018217aecd9818d4c9529d182713e049c37c5467 /src/page
parentfc3e3ab37e3433b7533de52eccfc7ee1f2d6445d (diff)
content: listings stub (listAlbumsByName)
Diffstat (limited to 'src/page')
-rw-r--r--src/page/index.js2
-rw-r--r--src/page/listing.js11
2 files changed, 12 insertions, 1 deletions
diff --git a/src/page/index.js b/src/page/index.js
index 5a62213..e07c135 100644
--- a/src/page/index.js
+++ b/src/page/index.js
@@ -13,7 +13,7 @@ export * as artistAlias from './artist-alias.js';
 // export * as flash from './flash.js';
 export * as group from './group.js';
 // export * as homepage from './homepage.js';
-// export * as listing from './listing.js';
+export * as listing from './listing.js';
 // export * as news from './news.js';
 export * as static from './static.js';
 // export * as tag from './tag.js';
diff --git a/src/page/listing.js b/src/page/listing.js
index 73c3082..da4c296 100644
--- a/src/page/listing.js
+++ b/src/page/listing.js
@@ -14,6 +14,16 @@ import {getTotalDuration} from '../util/wiki-data.js';
 
 export const description = `wiki-wide listing pages & index`;
 
+export function pathsTargetless() {
+  return [
+    {
+      type: 'page', path: ['listing', 'albums/by-name'],
+      contentFunction: {name: 'listAlbumsByName'},
+    },
+  ];
+}
+
+/*
 export function condition({wikiData}) {
   return wikiData.wikiInfo.enableListings;
 }
@@ -274,3 +284,4 @@ function generateLinkIndexForListings(currentListing, forSidebar, {
             genUL(listings)),
         ]));
 }
+*/