Add Context::addLink() and Context::getLinks() to register HTML header content such as <link rel="preconnect">

This commit is contained in:
Kijin Sung 2024-05-05 16:29:56 +09:00
parent ac895d64cb
commit b951d50841
2 changed files with 27 additions and 1 deletions

View file

@ -50,6 +50,9 @@
@if (!empty($mobicon_url))
<link rel="apple-touch-icon" href="{{ $mobicon_url }}" />
@endif
@foreach (Context::getLinks() as $link_url => $link_rel)
<link rel="{{ $link_rel }}" href="{{ $link_url }}" />
@endforeach
<!-- OTHER HEADERS -->
@foreach (Context::getOpenGraphData() as $og_metadata)