-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all head tags into blade component
- Loading branch information
1 parent
a61db68
commit 3093ebf
Showing
3 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta property="og:site_name" content="{{ config('hyde.name', 'HydePHP') }}"> | ||
<title>{{ isset($title) ? config('hyde.name', 'HydePHP') . ' - ' . $title : config('hyde.name', 'HydePHP') }}</title> | ||
|
||
@if (file_exists(Hyde::path('_media/favicon.ico'))) | ||
<link rel="shortcut icon" href="{{ Hyde::relativePath('media/favicon.ico', $currentPage) }}" type="image/x-icon"> | ||
@endif | ||
|
||
{{-- Config Defined Tags --}} | ||
@foreach (config('hyde.meta', []) as $name => $content) | ||
<meta name="{{ $name }}" content="{{ $content }}"> | ||
@endforeach | ||
|
||
@stack('meta') | ||
|
||
{{-- App Stylesheets --}} | ||
@include('hyde::layouts.styles') | ||
|
||
{{-- Include any extra tags to include in the <head> section --}} | ||
@include('hyde::layouts.meta') | ||
|
||
@if(Hyde::features('darkmode')) | ||
{{-- Check the local storage for theme preference to avoid FOUC --}} | ||
<script>if (localStorage.getItem('color-theme') === 'dark' || (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark') } </script> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters