cms/resources/views/layouts/app.blade.php

46 lines
1.3 KiB
PHP

<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
@include('components.head.title')
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
@include('components.head.metaTags')
@if(app('Option')->block_search_indexing)
@include('components.head.metaNoindex')
@endif
@yield('head-meta')
@section('app-head-scripts')
@include('components.head.appJsObject')
@show
@stack('app-head-scripts')
@section('app-styles')
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Gothic+A1:400,700|M+PLUS+1p:400,700|Noto+Sans+SC:400,700|Noto+Sans+TC:400,700|Roboto:400,700&display=swap" rel="stylesheet">
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
@show
@stack('app-styles')
</head>
@inject('bodyClassPresenter', App\Presenters\BodyClassPresenter)
<body class="{{ $bodyClassPresenter->print() }}">
@section('content-header')
@include('components.nav')
@show
<main>
@yield('content-body')
</main>
@section('content-footer')
@show
@section('app-scripts')
<script src="{{ asset('js/app.js') }}"></script>
@show
@stack('app-scripts')
</body>
</html>