Added support for custom content in HTML head

This commit is contained in:
Dan Brown 2016-05-22 11:01:21 +01:00
parent be517de7dc
commit bd00a03e7b
3 changed files with 17 additions and 3 deletions

View File

@ -154,6 +154,11 @@ input:checked + .toggle-switch {
.form-group {
margin-bottom: $-s;
textarea {
display: block;
width: 100%;
min-height: 64px;
}
}
.form-group {

View File

@ -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">

View File

@ -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 &lt;head&gt; 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">