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.
super-gear-directus/resources/views/layout.blade.php

48 lines
1.2 KiB

@inject('pageRepository', 'App\Repositories\PageRepository')
@inject('siteRepository', 'App\Repositories\SiteRepository')
@inject('markdownHelper', 'App\Helpers\MarkdownHelper')
@php
$site = $siteRepository->findOne();
@endphp
<!DOCTYPE html>
<html lang="de-DE">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>
{{ title($page, $site) }}
</title>
@include('partials.meta')
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ canonical() }}" rel="canonical">
<link href="{{ asset('/css/styles.css') }}" rel="stylesheet" type="text/css">
@stack('head')
</head>
<body class="{{ viewName($page) }}">
<header class="site-header">
<h1 class="site-header__title">
Super Gear Directus
<img src="{{ assetsUrl($site['data']['logo']) }}" />
</h1>
</header>
<main class="site-main">
@yield('content')
</main>
<footer class="site-footer">
</footer>
@stack('scripts')
</body>
</html>