Skip to content

Commit 7901a69

Browse files
authored
Merge pull request #1567 from hydephp/add-new-head-stack-to-match-scripts-stack
Add a `@head` stack to the `head.blade.php` component
2 parents 53d6aea + 51e0ed8 commit 7901a69

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

RELEASE_NOTES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This serves two purposes:
1010
2. At release time, you can move the Unreleased section changes into a new release version section.
1111

1212
### Added
13-
- for new features.
13+
- Added a `@head` stack to the `head.blade.php` component in https://github.com/hydephp/develop/pull/1567
1414

1515
### Changed
1616
- for changes in existing functionality.

packages/framework/resources/views/layouts/head.blade.php

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
<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>
1919
@endif
2020

21+
{{-- Add any extra code to include before the closing <head> tag --}}
22+
@stack('head')
23+
2124
{{-- If the user has defined any custom head tags, render them here --}}
2225
{!! config('hyde.head') !!}
2326
{!! Includes::html('head') !!}

0 commit comments

Comments
 (0)