From e7b69d69638d74bf5d4fad16819db15c07238c30 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 14 May 2022 18:51:00 +0200 Subject: [PATCH] Add name --- conf/config.yml.template | 2 +- manifest.json | 8 ++++++++ scripts/install | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/config.yml.template b/conf/config.yml.template index 5500ccb..93535e2 100644 --- a/conf/config.yml.template +++ b/conf/config.yml.template @@ -1,7 +1,7 @@ ## # Basic # -site_title: Pico # The title of your website +site_title: __NAME__ # The title of your website base_url: ~ # Pico will try to guess its base URL, if this fails, override it here; # Example: https://example.com/pico/ rewrite_url: ~ # A boolean (true or false) indicating whether URL rewriting is forced diff --git a/manifest.json b/manifest.json index 954786c..8207269 100644 --- a/manifest.json +++ b/manifest.json @@ -40,6 +40,14 @@ "example": "/pico", "default": "/pico" }, + { + "name": "name", + "type": "name", + "ask": { + "en": "The title of your website", + "fr": "Le titre de votre site web" + }, + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index f87de9f..7f426ac 100755 --- a/scripts/install +++ b/scripts/install @@ -27,6 +27,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC +name=$YNH_APP_ARG_NAME app=$YNH_APP_INSTANCE_NAME @@ -48,6 +49,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=name --value=$name #================================================= # INSTALL DEPENDENCIES