Add head component for html page head tag

This commit is contained in:
philipp lang 2024-12-06 16:38:43 +01:00
parent 612b782c9b
commit e664255d7c
2 changed files with 13 additions and 12 deletions

View File

@ -0,0 +1,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>{{ session()->get('title') }} | {{ config('app.name') }}</title>
<meta name="socketport" content="{{env('SOCKET_PORT')}}" />
<meta name="adrema_base_url" content="/">
@if(auth()->id())
<meta name="meilisearch_key" content="{{config('scout.meilisearch.key')}}" />
@endif
@vite('resources/livewire-js/app.js')
</head>

View File

@ -1,17 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html class="h-full" lang="de"> <html class="h-full" lang="de">
<head> <x-head></x-head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>{{ session()->get('title') }} | {{ config('app.name') }}</title>
<meta name="socketport" content="{{env('SOCKET_PORT')}}" />
<meta name="adrema_base_url" content="/">
@if(auth()->id())
<meta name="meilisearch_key" content="{{config('scout.meilisearch.key')}}" />
@endif
@vite('resources/livewire-js/app.js')
</head>
<body class="min-h-full flex flex-col"> <body class="min-h-full flex flex-col">
<livewire:page.sidebar /> <livewire:page.sidebar />
{{ $slot }} {{ $slot }}