From: Dan Brown Date: Sun, 30 Oct 2016 11:44:31 +0000 (+0000) Subject: Added custom head content into public pages X-Git-Tag: v0.12.2~1^2~3 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/c4eed37d8e20dbf235d54d00f5676288cd5481f6 Added custom head content into public pages Closes #211 --- diff --git a/config/setting-defaults.php b/config/setting-defaults.php index 22c992aa4..deafceb29 100644 --- a/config/setting-defaults.php +++ b/config/setting-defaults.php @@ -9,6 +9,7 @@ return [ 'app-editor' => 'wysiwyg', 'app-color' => '#0288D1', 'app-color-light' => 'rgba(21, 101, 192, 0.15)', + 'app-custom-head' => false, 'registration-enabled' => false, ]; \ No newline at end of file diff --git a/resources/views/base.blade.php b/resources/views/base.blade.php index be47abdca..961ead251 100644 --- a/resources/views/base.blade.php +++ b/resources/views/base.blade.php @@ -23,7 +23,7 @@ @include('partials/custom-styles') - @if(setting('app-custom-head', false)) + @if(setting('app-custom-head')) {!! setting('app-custom-head') !!} @endif diff --git a/resources/views/public.blade.php b/resources/views/public.blade.php index 2de4d968a..2bce41570 100644 --- a/resources/views/public.blade.php +++ b/resources/views/public.blade.php @@ -17,6 +17,11 @@ @include('partials/custom-styles') + + + @if(setting('app-custom-head')) + {!! setting('app-custom-head') !!} + @endif