mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-14 04:05:14 +00:00
Configurable page title
This commit is contained in:
@@ -6,4 +6,5 @@ export default {
|
||||
https_proxy: process.env.RIMGU_HTTPS_PROXY || null,
|
||||
imgur_client_id: process.env.RIMGU_IMGUR_CLIENT_ID || null,
|
||||
disable_comments: process.env.RIMGU_DISABLE_COMMENTS === 'true',
|
||||
page_title: process.env.RIMGU_PAGE_TITLE || 'rimgu',
|
||||
};
|
||||
|
||||
@@ -21,6 +21,7 @@ export const handleAlbum = async (request: Hapi.Request, h: Hapi.ResponseToolkit
|
||||
const url = await fetchAlbumURL(request.params.albumID);
|
||||
return h.view('album', {
|
||||
url,
|
||||
title: CONFIG.page_title,
|
||||
util,
|
||||
});
|
||||
};
|
||||
@@ -44,6 +45,7 @@ export const handleGallery = async (request: Hapi.Request, h: Hapi.ResponseToolk
|
||||
return h.view('gallery', {
|
||||
...gallery,
|
||||
comments,
|
||||
title: CONFIG.page_title,
|
||||
util,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user