NOW MANAGED ON CODEBERG
Added support for custom content in HTML head
Dan Brownbd00a03e7b90
diff --git a/resources/assets/sass/_forms.scss b/resources/assets/sass/_forms.scssindex 4b50f6022..da015ec7c 100644--- a/resources/assets/sass/_forms.scss+++ b/resources/assets/sass/_forms.scss@@ -154,6 +154,11 @@ input:checked + .toggle-switch {.form-group {margin-bottom: $-s;+ textarea {+ display: block;+ width: 100%;+ min-height: 64px;+ }}.form-group {diff --git a/resources/views/base.blade.php b/resources/views/base.blade.phpindex 34c64c581..d09912c37 100644--- a/resources/views/base.blade.php+++ b/resources/views/base.blade.php@@ -20,6 +20,11 @@@yield('head')@include('partials/custom-styles')++ <!-- Custom user content -->+ @if(setting('app-custom-head', false))+ {!! setting('app-custom-head') !!}+ @endif</head><body class="@yield('body-class')" ng-app="bookStack">diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.phpindex ad0b6cbfb..1e76c1675 100644--- a/resources/views/settings/index.blade.php+++ b/resources/views/settings/index.blade.php@@ -25,7 +25,7 @@</div><div class="form-group"><label>Enable higher security image uploads?</label>- <p class="small">For performance reasons, all images are public by default, This option adds a random, hard-to-guess characters in front of image names. Ensure directory indexes are not enabled to prevent easy access.</p>+ <p class="small">For performance reasons, all images are public. This option adds a random, hard-to-guess string in front of image urls. Ensure directory indexes are not enabled to prevent easy access.</p><div toggle-switch name="setting-app-secure-images" value="{{ setting('app-secure-images') }}"></div></div><div class="form-group">@@ -51,12 +51,16 @@</div></div></div>--+ <div class="form-group">+ <label for="setting-app-custom-head">Custom HTML head content</label>+ <p class="small">Any content added here will be inserted into the bottom of the <head> section of every page. This is handy for overriding styles or adding analytics code.</p>+ <textarea name="setting-app-custom-head" id="setting-app-custom-head">{{ setting('app-custom-head', '') }}</textarea>+ </div><hr class="margin-top"><h3>Registration Settings</h3>+<div class="row"><div class="col-md-6"><div class="form-group">