mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-03 06:13:37 +08:00
d5a3bdb7aa
- Moved "common" template partials, that are only used in layouts, to layouts/parts folder. - Simplified HTML structure of header template. - Extracted logo and links from header template to simplify. - Added header-links-start template for easier extension/customization without needing to override full list of links. - Added test to cover usage of this. For #4564
24 lines
800 B
PHP
24 lines
800 B
PHP
<!DOCTYPE html>
|
|
<html lang="{{ isset($locale) ? $locale->htmlLang() : config('app.default_locale') }}"
|
|
dir="{{ isset($locale) ? $locale->htmlDirection() : 'auto' }}"
|
|
class="@yield('document-class')">
|
|
<head>
|
|
<title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>
|
|
|
|
<!-- Meta -->
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta charset="utf-8">
|
|
|
|
<!-- Styles and Fonts -->
|
|
<link rel="stylesheet" href="{{ versioned_asset('dist/styles.css') }}">
|
|
<link rel="stylesheet" media="print" href="{{ versioned_asset('dist/print-styles.css') }}">
|
|
|
|
<!-- Custom Styles & Head Content -->
|
|
@include('layouts.parts.custom-styles')
|
|
@include('layouts.parts.custom-head')
|
|
</head>
|
|
<body>
|
|
@yield('content')
|
|
</body>
|
|
</html>
|