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.

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