Boilerplate to use a Directus Instance to Build a Custom Website, Content will be Manage by Directus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. @inject('pageRepository', 'App\Repositories\PageRepository')
  2. @inject('markdownHelper', 'App\Helpers\MarkdownHelper')
  3. @inject('slugify', 'Cocur\Slugify\Slugify')
  4. <!DOCTYPE html>
  5. <html lang="de-DE" class="no-js">
  6. <head>
  7. <meta charset="utf-8">
  8. <meta http-equiv="x-ua-compatible" content="ie=edge">
  9. <title>
  10. Elina Penner | {{ $page['data']['title'] }}
  11. </title>
  12. <meta name="viewport" content="width=device-width, initial-scale=1">
  13. <link href="{{ (isset($_SERVER['HTTPS']) ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] }}" rel="canonical">
  14. <link href="{{ asset('/css/index.css') }}" rel="stylesheet" type="text/css">
  15. @stack('head')
  16. </head>
  17. <body class="{{ $slugify->slugify($page['data']['view']) }}">
  18. <header class="site-header">
  19. <h1 class="site-header__title">
  20. Super Gear Directus
  21. </h1>
  22. </header>
  23. <main class="site-main">
  24. @yield('content')
  25. </main>
  26. <footer class="site-footer">
  27. </footer>
  28. @stack('scripts')
  29. </body>
  30. </html>