]> BookStack Code Mirror - bookstack/blobdiff - resources/views/layouts/base.blade.php
Added content-view body classes generated from tags
[bookstack] / resources / views / layouts / base.blade.php
index c465c5f7ef59d2ade5dbcf852e7f8f14269dac86..9f6e9f89af0f99fd54c19d26a92c4e1ccefb2ae4 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="{{ config('app.lang') }}"
       dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
-      class="{{ setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : '' }}@yield('body-class')">
+      class="{{ setting()->getForCurrentUser('dark-mode-enabled') ? 'dark-mode ' : '' }}">
 <head>
     <title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>
 
@@ -31,7 +31,7 @@
     <!-- Translations for JS -->
     @stack('translations')
 </head>
-<body class="@yield('body-class')">
+<body class="@stack('body-class')">
 
     @include('layouts.parts.base-body-start')
     @include('common.skip-to-content')