]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/export.blade.php
Added custom head content to exports
[bookstack] / resources / views / chapters / export.blade.php
1 <!doctype html>
2 <html lang="en">
3 <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5     <title>{{ $chapter->name }}</title>
6
7     <style>
8         @if (!app()->environment('testing'))
9         {!! file_get_contents(public_path('/dist/export-styles.css')) !!}
10         @endif
11         .page-break {
12             page-break-after: always;
13         }
14         ul.contents ul li {
15             list-style: circle;
16         }
17         @media screen {
18             .page-break {
19                 border-top: 1px solid #DDD;
20             }
21         }
22     </style>
23     @yield('head')
24     @include('partials.custom-head')
25 </head>
26 <body>
27 <div class="container">
28     <div class="row">
29         <div class="col-md-8 col-md-offset-2">
30             <div class="page-content">
31
32                 <h1 style="font-size: 4.8em">{{$chapter->name}}</h1>
33
34                 <p>{{ $chapter->description }}</p>
35
36                 @if(count($pages) > 0)
37                 <ul class="contents">
38                     @foreach($pages as $page)
39                         <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
40                     @endforeach
41                 </ul>
42                 @endif
43
44                 @foreach($pages as $page)
45                     <div class="page-break"></div>
46                     <h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
47                     {!! $page->html !!}
48                 @endforeach
49
50             </div>
51         </div>
52     </div>
53 </div>
54 </body>
55 </html>