@props([ 'sTitle' => config('app.title').' - '.config('app.name'), 'sDesc' => config('app.desc'), 'sKeywords' => config('app.keywords'), 'sSlug' => '', 'sOgType' => 'website', 'sOgImg' => '/sites/'.config("app.site_code_short").'/siteimg.jpg', 'sRobots' => 'index, follow', 'bEditorialPreview' => false, 'seo' => [], 'pagination' => null, ]) @php $sTitle = $seo['title'] ?? $sTitle; $sDesc = \App\Services\Seo::text($seo['description'] ?? $sDesc); $sCanonical = $seo['canonical'] ?? \App\Services\Seo::url(request()->path()); $sRobots = $bEditorialPreview ? 'noindex, nofollow' : ($seo['robots'] ?? $sRobots); $sOgType = $seo['type'] ?? $sOgType; $sOgImg = str_starts_with($sOgImg ?? '', '/') ? \App\Services\Seo::url($sOgImg) : $sOgImg; @endphp {{-- SEO 三杰 --}} {{ $sTitle }} {{-- 社交媒体 Meta (Open Graph) - 现在的标准配置 --}} @unless($bEditorialPreview) @foreach($seo['schema'] ?? [] as $schema) @endforeach @endunless @if($pagination) @if($pagination->previousPageUrl())@endif @if($pagination->nextPageUrl())@endif @endif {{-- 声明它是 PNG,并告诉浏览器它的实际尺寸 --}} {{-- 强行喂给苹果,虽然它推荐 180,但 166 总比没有强 --}} {{-- 暂时没错颜色切换 --}} @vite(['resources/css/app.css', "resources/sites/".config("app.site_code_short")."/css/app.css",'resources/js/app.js']) @if(config('app.site_code_short') === 'cfn') @endif @stack('styles') @if(app()->environment('production') && ! $bEditorialPreview && config('app.site_code_short') == 'cfn') @endif {{ $slot }} @stack('scripts')