Allow to specify homepage banner via ENV. Otherwise the content of the file config/banner.md is used.

This commit is contained in:
Jan Böhmer 2019-10-19 23:20:19 +02:00
parent 5042d5720a
commit 896299bc4d
4 changed files with 36 additions and 2 deletions

3
config/banner.md Normal file
View file

@ -0,0 +1,3 @@
Welcome to Part-DB.
<small>If you want to change this banner, edit `config/banner.md` file or set the `BANNER` environment variable.</small>

View file

@ -8,7 +8,7 @@ parameters:
locale: 'en' # Set the default language to use her
timezone: 'Europe/Berlin'
partdb_title: 'Part-DB' # The title shown inside of Part-DB (e.g. in the navbar and on homepage)
banner: '' # The info text shown in the homepage
banner: '%env(trim:string:BANNER)%' # The info text shown in the homepage, if empty config/banner.md is used
use_gravatar: true # Set to false, if no Gravatar images should be used for user profiles.
default_currency: 'EUR' # The currency that should be used
media_directory: 'public/media/' # The folder where uploaded attachment files are saved