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.

48 lines
1.3 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. @inject('pageRepository', 'App\Repositories\PageRepository')
  2. @inject('siteRepository', 'App\Repositories\SiteRepository')
  3. @inject('menuRepository', 'App\Repositories\MenuRepository')
  4. @php
  5. $site = $siteRepository->findOne();
  6. $menuItems = $menuRepository->findByName('main');
  7. @endphp
  8. <!DOCTYPE html>
  9. <html lang="de-DE">
  10. <head>
  11. <meta charset="utf-8">
  12. <meta http-equiv="x-ua-compatible" content="ie=edge">
  13. <title>
  14. {{ title($page, $site) }}
  15. </title>
  16. @include('partials.meta')
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18. <link href="{{ canonical() }}" rel="canonical">
  19. <link href="{{ asset('/css/styles.css') }}" rel="stylesheet" type="text/css">
  20. @stack('head')
  21. </head>
  22. <body class="{{ viewName($page) }}">
  23. <header class="site-header">
  24. <h1 class="site-header__title">
  25. Super Gear Directus
  26. <img src="{{ assetsUrl($site['data']['logo']) }}" />
  27. </h1>
  28. @include('partials.menu', [ 'menuItems' => $menuItems ])
  29. </header>
  30. <main class="site-main">
  31. @yield('content')
  32. </main>
  33. <footer class="site-footer">
  34. </footer>
  35. @stack('scripts')
  36. </body>
  37. </html>