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.

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