diff --git a/defaultwelcome/welcome_en.md b/defaultwelcome/welcome_en.md index 2a90b3a52..c069ae1c6 100644 --- a/defaultwelcome/welcome_en.md +++ b/defaultwelcome/welcome_en.md @@ -1,5 +1,5 @@ -# Welcome -Epicyon is an ActivityPub server designed for easy self-hosting of a few people on low power systems, such as single board computers or old laptops. +# Welcome to INSTANCE +This is an ActivityPub server designed for easy self-hosting of a few people on low power systems, such as single board computers or old laptops. Run your own social network presence the way you want to, and say goodbye to Big Tech. diff --git a/webapp_welcome.py b/webapp_welcome.py index d5530a681..77c868707 100644 --- a/webapp_welcome.py +++ b/webapp_welcome.py @@ -59,17 +59,23 @@ def htmlWelcomeScreen(baseDir: str, nickname: str, defaultFilename = \ baseDir + '/defaultwelcome/' + currScreen + '_en.md' copyfile(defaultFilename, welcomeFilename) + + instanceTitle = \ + getConfigParam(baseDir, 'instanceTitle') + if not instanceTitle: + instanceTitle = 'Epicyon' + if os.path.isfile(welcomeFilename): with open(welcomeFilename, 'r') as welcomeFile: - welcomeText = markdownToHtml(removeHtml(welcomeFile.read())) + welcomeText = welcomeFile.read() + welcomeText = welcomeText.replace('INSTANCE', instanceTitle) + welcomeText = markdownToHtml(removeHtml(welcomeText)) welcomeForm = '' cssFilename = baseDir + '/epicyon-welcome.css' if os.path.isfile(baseDir + '/welcome.css'): cssFilename = baseDir + '/welcome.css' - instanceTitle = \ - getConfigParam(baseDir, 'instanceTitle') welcomeForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle) welcomeForm += \ '