mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-24 14:42:53 +02:00
Added configuration option for home link text
This commit is contained in:
@@ -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?
|
||||
*
|
||||
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user