]> BookStack Code Mirror - bookstack/commitdiff
Added custom head content into public pages
authorDan Brown <redacted>
Sun, 30 Oct 2016 11:44:31 +0000 (11:44 +0000)
committerDan Brown <redacted>
Sun, 30 Oct 2016 11:46:23 +0000 (11:46 +0000)
Closes #211

config/setting-defaults.php
resources/views/base.blade.php
resources/views/public.blade.php

index 22c992aa46490131a2d11d271a4e3b6e9352cdc7..deafceb29c2e774cee42900e8cc47739a4fffec8 100644 (file)
@@ -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
index be47abdcaaf3e23903c63e03884f790433d3ac6a..961ead251bfdd79f9f886ed43639228c7e0d9da2 100644 (file)
@@ -23,7 +23,7 @@
     @include('partials/custom-styles')
 
     <!-- Custom user content -->
-    @if(setting('app-custom-head', false))
+    @if(setting('app-custom-head'))
         {!! setting('app-custom-head') !!}
     @endif
 </head>
index 2de4d968a650fe6310684e2be8d1c3f636f60617..2bce4157028a8ca2b1595021dfaa582cb3b67ae0 100644 (file)
     <!-- Scripts -->
     <script src="{{ baseUrl("/libs/jquery/jquery.min.js?version=2.1.4") }}"></script>
     @include('partials/custom-styles')
+
+    <!-- Custom user content -->
+    @if(setting('app-custom-head'))
+        {!! setting('app-custom-head') !!}
+    @endif
 </head>
 <body class="@yield('body-class')" ng-app="bookStack">