{{-- SEO Foundation: Base component, fallback to legacy yields --}} @php $__seoTitle = null; $__seoDesc = null; $__seoCanonical = null; if (View::hasSection('title')) { $__seoTitle = trim($__env->yieldContent('title')); } if (View::hasSection('meta_description')) { $__seoDesc = trim($__env->yieldContent('meta_description')); } if (View::hasSection('seo_title')) { $__seoTitle = trim($__env->yieldContent('seo_title')); } if (View::hasSection('seo_desc')) { $__seoDesc = trim($__env->yieldContent('seo_desc')); } if (View::hasSection('seo_canonical')) { $__seoCanonical = trim($__env->yieldContent('seo_canonical')); } $__seoNoIndex = false; if (View::hasSection('seo_noindex')) { $__seoNoIndex = true; } $__seoNoCanonical = false; if (View::hasSection('seo_no_canonical')) { $__seoNoCanonical = true; } $__seoType = 'website'; if (View::hasSection('seo_type')) { $__seoType = trim($__env->yieldContent('seo_type')); if ($__seoType === '') $__seoType = 'website'; } $__seoOgImage = null; if (View::hasSection('seo_og_image')) { $__seoOgImage = trim($__env->yieldContent('seo_og_image')); } @endphp @include('components.seo', [ 'title' => $__seoTitle ?: null, 'description' => $__seoDesc ?: null, 'canonical' => $__seoNoCanonical ? false : ($__seoCanonical ?: null), 'ogImage' => $__seoOgImage ?: null, 'type' => $__seoType, 'noindex' => $__seoNoIndex, ]) @stack('seo') {{-- Favicon ICO --}} {{-- Favicon PNG multi-size --}} {{-- Apple Touch Icon --}} {{-- Web App Manifest --}} {{-- Preload Critical Fonts --}} {{-- Bundled CSS: Tailwind + colors + global + header + hero + fonts (minified) --}} @php $publicCache = \Illuminate\Support\Facades\Cache::store(config('cache.public_store', 'file')); $assetsVersion = $publicCache->remember('assets_version_hashes_v3', 86400, function () { $appCssPath = public_path('css/app.min.css'); $srCssPath = public_path('vendor/scroll/scroll-reveal.css'); $srJsPath = public_path('vendor/scroll/scroll-reveal.js'); $publicSiteJsPath = public_path('js/public-site.js'); return [ 'appCssV' => file_exists($appCssPath) ? filemtime($appCssPath) : 1, 'srCssV' => file_exists($srCssPath) ? filemtime($srCssPath) : 1, 'srJsV' => file_exists($srJsPath) ? filemtime($srJsPath) : 1, 'publicSiteJsV' => file_exists($publicSiteJsPath) ? filemtime($publicSiteJsPath) : 1, ]; }); $appCssV = $assetsVersion['appCssV']; $srCssV = $assetsVersion['srCssV']; $srJsV = $assetsVersion['srJsV']; $publicSiteJsV = $assetsVersion['publicSiteJsV']; $inlinePublicCss = $publicCache->remember( 'inline_public_css_v2_'.$appCssV.'_'.$srCssV, 86400, fn () => (file_get_contents(public_path('css/app.min.css')) ?: '') .(file_get_contents(public_path('vendor/scroll/scroll-reveal.css')) ?: '') ); @endphp {{-- Scroll Reveal — Mode A Vanilla Light --}} {{-- Legacy sections support: blog show pakai @section('head') untuk article CSS (harus tetap dirender) --}} @hasSection('head') @yield('head') @endif @stack('head') @stack('schema') @include('components.header')
@yield('content')
@yield('scripts') {{-- Scroll Reveal Engine — Mode A --}}