Skip to content

Commit

Permalink
Merge pull request #1567 from hydephp/add-new-head-stack-to-match-scr…
Browse files Browse the repository at this point in the history
…ipts-stack

Add a `@head` stack to the `head.blade.php` component hydephp/develop@7901a69
  • Loading branch information
github-actions committed Feb 13, 2024
1 parent 8f76868 commit 883e9fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/views/layouts/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<script>if (localStorage.getItem('color-theme') === 'dark' || (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { document.documentElement.classList.add('dark'); document.getElementById('meta-color-scheme').setAttribute('content', 'dark');} else { document.documentElement.classList.remove('dark') } </script>
@endif

{{-- Add any extra code to include before the closing <head> tag --}}
@stack('head')

{{-- If the user has defined any custom head tags, render them here --}}
{!! config('hyde.head') !!}
{!! Includes::html('head') !!}

0 comments on commit 883e9fa

Please sign in to comment.