From 66a19989575cf58cdd63860f004c8218b360ce52 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 10 Aug 2024 03:01:40 +0200 Subject: [PATCH] Make site tagline configurable --- app/views/about/index.html.haml | 2 +- config/justask.yml.example | 3 +++ config/locales/views.en.yml | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml index 93e9a195..65536828 100644 --- a/app/views/about/index.html.haml +++ b/app/views/about/index.html.haml @@ -4,7 +4,7 @@ .card-body.py-4 = render "layouts/messages" %h1= APP_CONFIG["site_name"] - %p= t(".subtitle") + %p= APP_CONFIG["site_tagline"] - if Retrospring::Config.registrations_enabled? %p %a.btn.btn-outline-light.btn-lg{ href: url_for(new_user_registration_path) } diff --git a/config/justask.yml.example b/config/justask.yml.example index f27c3089..86f00197 100644 --- a/config/justask.yml.example +++ b/config/justask.yml.example @@ -1,6 +1,9 @@ # The site name, shown everywhere. site_name: "justask" +# The sites tagline, shown on the start page +site_tagline: "Ask questions, give answers and learn more about your friends." + # Use the SVG logo from `/public/logo.svg` use_svg_logo: false diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index ecdf11aa..cb144620 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -2,7 +2,6 @@ en: language: "English" about: index: - subtitle: "Ask questions, give answers and learn more about your friends." register: "Register now" already_member: "Already a member?" more_features: "But wait, there's more!"