updated various snippets
This commit is contained in:
@ -19,10 +19,11 @@
|
||||
<meta name="rating" content="General">
|
||||
|
||||
<meta name="url" content="{{ url('/') }}">
|
||||
<meta name="subject" content="your website's subject">
|
||||
<meta name="description" content="A description of the page">
|
||||
<meta name="subject" content="{{$pageSubject ?? "your website's subject" }}"">
|
||||
<meta name="description" content="{{ $pageDescription ?? 'A description of the page' }}">
|
||||
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
<meta name="application-name" content="Application Name">
|
||||
|
||||
<!-- Privacy -->
|
||||
<meta name="twitter:dnt" content="on">
|
||||
@ -31,33 +32,41 @@
|
||||
<!-- -->
|
||||
|
||||
<!-- Helps prevent duplicate content issues -->
|
||||
<link href="{{ route()->current() }}" rel="canonical">
|
||||
{{-- <link href="{{ route()->current() }}" rel="canonical"> --}}
|
||||
|
||||
<!-- Gives a reference to a location in your document that may be in another language -->
|
||||
<link href="#" rel="alternate" hreflang="de">
|
||||
{{-- <link href="#" rel="alternate" hreflang="de"> --}}
|
||||
|
||||
<link href="{{ url('copyright.html') }}" rel="copyright" integrity="{{ env('INTEGRITY_HASH_COPYRIGHT_HTML') }}">
|
||||
|
||||
<!-- Favicon -->
|
||||
<link href="{{ url('/favicon.ico') }}" rel="icon" sizes="16x16" type="image/icon">
|
||||
<link href="{{ url('/favicon.svg') }}" rel="icon" type="image/svg+xml">
|
||||
<link href="{{ url('/favicon.png') }}" rel="icon" sizes="192x192">
|
||||
<link href="{{ url('/favicon.ico') }}" rel="icon" sizes="16x16" type="image/icon" integrity="{{ env('INTEGRITY_HASH_FAVICON_ICO') }}">
|
||||
<link href="{{ url('/favicon.svg') }}" rel="icon" type="image/svg+xml" integrity="{{ env('INTEGRITY_HASH_FAVICON_SVG') }}">
|
||||
<link href="{{ url('/favicon.png') }}" rel="icon" sizes="192x192" integrity="{{ env('INTEGRITY_HASH_FAVICON_PNG') }}">
|
||||
|
||||
<!-- Font preloads (should be done for each font file) -->
|
||||
<link href="{{ asset('fonts/fontfam/font.woff2') }}" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link href="{{ url('fonts/fontfam/font.woff2') }}" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet" media="screen">
|
||||
<link href="{{ mix('css/app.css') }}" rel="stylesheet" media="all" integrity="{{ env('INTEGRITY_HASH_APP_CSS') }}">
|
||||
@yield('css')
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ asset('js/app.js') }}" defer></script>
|
||||
@yield('js')
|
||||
<script>
|
||||
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||||
document.documentElement.classList.remove('light')
|
||||
document.documentElement.classList.add('dark')
|
||||
}
|
||||
</script>
|
||||
|
||||
@routes
|
||||
<script src="{{ mix('js/app.js') }}" integrity="{{ env('INTEGRITY_HASH_APP_JS') }}" defer></script>
|
||||
@inertiaHead
|
||||
|
||||
</head>
|
||||
<body class="font-sans antialiased">
|
||||
<div id="app" class="min-h-screen bg-slate-50">
|
||||
@yield('body')
|
||||
@inertia
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Reference in New Issue
Block a user