@php $isSearch = $query !== ''; $siteSeoTitle = $platformSiteSettings?->effectiveSeoTitle() ?: ($platformSiteSettings?->effectiveSiteName() ?? 'qpost platform'); $siteSeoDescription = $platformSiteSettings?->effectiveSeoDescription() ?: ($platformSiteSettings?->site_description ?? '새 글과 추천 채널'); $siteSeoKeywords = $platformSiteSettings?->effectiveSeoKeywords() ?: ''; $siteSeoCanonicalUrl = rtrim(url()->current(), '/') . '/'; $siteSeoOgTitle = $platformSiteSettings?->effectiveSeoOgTitle() ?: $siteSeoTitle; $siteSeoOgDescription = $platformSiteSettings?->effectiveSeoOgDescription() ?: $siteSeoDescription; $siteSeoOgImage = $platformSiteSettings?->effectiveSeoOgImageUrl() ?: ''; @endphp @extends('components.layouts.platform-home', ['platformSiteSettings' => $platformSiteSettings ?? null]) @section('title', $isSearch ? '[' . $query . '] 검색결과' : $siteSeoTitle) @section('meta-description', $isSearch ? '검색 결과 페이지' : $siteSeoDescription) @if (! $isSearch && $siteSeoKeywords !== '') @section('meta-keywords', $siteSeoKeywords) @endif @section('canonical-url', $isSearch ? url()->current() : $siteSeoCanonicalUrl) @section('og-title', $isSearch ? '[' . $query . '] 검색결과' : $siteSeoOgTitle) @section('og-description', $isSearch ? '검색 결과 페이지' : $siteSeoOgDescription) @if (! $isSearch && $siteSeoOgImage !== '') @section('og-image', $siteSeoOgImage) @endif @section('og-type', 'website') @section('meta-robots', $isSearch ? 'noindex,follow' : (($platformSiteSettings?->indexable ?? true) ? 'index,follow' : 'noindex,follow')) @section('content') @if (! $isSearch)