@php // Get theme fonts from active preset $headingFont = 'Inter'; $bodyFont = 'Inter'; if ($website && $website->activeTheme && $website->activeTheme->theme) { $defaultPreset = $website->activeTheme->theme->presets()->where('is_default', true)->first(); if ($defaultPreset && isset($defaultPreset->font_scheme)) { $headingFont = $defaultPreset->font_scheme['heading'] ?? 'Inter'; $bodyFont = $defaultPreset->font_scheme['body'] ?? 'Inter'; } } // Build Google Fonts URL dynamically $fontsToLoad = []; if ($headingFont !== 'Default') { $fontsToLoad[] = str_replace(' ', '+', $headingFont) . ':wght@300;400;500;600;700;800;900'; } if ($bodyFont !== 'Default' && $bodyFont !== $headingFont) { $fontsToLoad[] = str_replace(' ', '+', $bodyFont) . ':wght@300;400;500;600;700;800;900'; } $googleFontsUrl = 'https://fonts.googleapis.com/css2?family=' . implode('&family=', $fontsToLoad) . '&display=swap'; @endphp
@if($post->meta_keywords) @endif