diff options
author | Florrie <towerofnix@gmail.com> | 2019-12-03 18:58:17 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-12-03 18:58:17 -0400 |
commit | c17c266a5ba8ca3dbaa01d8624537302d3c9c61e (patch) | |
tree | 670fba2537d77d3fa102d504ca8a614737cd737b /upd8.js | |
parent | d854122b30c66f032ec72dc41f636a832a79aa9e (diff) |
include 'all commentary' in listings sidebar
Diffstat (limited to 'upd8.js')
-rw-r--r-- | upd8.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js index c9cd89cc..092c51b4 100644 --- a/upd8.js +++ b/upd8.js @@ -910,13 +910,12 @@ function writeListingPages(albumData) { <div id="content"> <h1>Listings</h1> <p>Feel free to explore any of the listings linked in the sidebar!</p> - <p>Also check out: <a href="${LISTING_DIRECTORY}/all-commentary/index.html">all commentary on one page!</a></p> </div> </body> `), writePage([LISTING_DIRECTORY, 'all-commentary'], 'All Commentary', fixWS` <body> - ${generateSidebarForListings(listingDescriptors)} + ${generateSidebarForListings(listingDescriptors, 'all-commentary')} <div id="content"> <h1>All Commentary</h1> <p><a href="${LISTING_DIRECTORY}/index.html">(Back to listings.)</a></p> @@ -991,6 +990,9 @@ function generateSidebarForListings(listingDescriptors, currentDirectoryParts) { <a href="${LISTING_DIRECTORY}/${ldDirectoryParts.join('/')}/index.html">${ldTitle}</a> </li> `).join('\n')} + <li class="${currentDirectoryParts === 'all-commentary' && 'current'}"> + <a href="${LISTING_DIRECTORY}/all-commentary/index.html">All Commentary</a> + </li> </ul> </div> `; |