Added configuration option for home link text

This commit is contained in:
Chris Kankiewicz
2020-06-03 14:55:16 -07:00
parent d54f300813
commit 23ae169e52
2 changed files with 9 additions and 1 deletions

View File

@@ -24,6 +24,14 @@ return [
*/
'language' => Helpers::env('APP_LANGUAGE', 'en'),
/**
* Text of the 'home' link in the navigation breadcrumbs. If undefined or
* null will use the translated form of "home" from your selected language.
*
* Default value: null
*/
'home_text' => Helpers::env('HOME_TEXT', null),
/**
* Enable dark mode?
*

View File

@@ -2,7 +2,7 @@
<div class="container flex justify-between flex-wrap items-center mx-auto p-4 md:flex-row">
<div class="flex-1 font-mono text-white text-sm tracking-tight overflow-x-auto whitespace-no-wrap py-1">
<a href="." class="inline-block hover:underline">
{{ translate('home') }}
{{ config('home_text') | default(translate('home')) }}
</a>
{% if path is not null %}