forgejo: add a template for the home page

This commit is contained in:
Charlie Root 2025-04-10 22:01:10 +02:00
commit 3af3f4e917
2 changed files with 61 additions and 0 deletions

View file

@ -99,6 +99,7 @@ in {
# You need to specify this to remove the port from URLs in the web UI.
ROOT_URL = "https://${domain}/";
HTTP_PORT = port;
LANDING_PAGE = "home";
};
DEFAULT = {
APP_NAME = "Copeberg.org";
@ -162,6 +163,11 @@ in {
"L+ '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
"L+ '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
# Templates
"d '${customDir}/templates ' 0750 ${user} ${group} - -"
# Home page
"L+ '${customDir}/templates' - - - - ${./templates}"
# Fuck off scrapers
"L+ ${customDir}/public/robots.txt - - - - ${robots.outPath}"
];