@extends('tenant.layouts.app') @php $isHomeSeoContext = (($seoContext ?? null) === 'home') || request()->routeIs('tenant.home'); $boardDescription = trim((string) ($board->description ?? '')); $currentUser = auth('tenant')->user(); $isPagesBoard = $board->skin === 'pages' || $board->slug === 'pages'; $showPagesToolbar = $isPagesBoard && $currentUser?->isManager(); $canCreatePost = $board->canWritePosts($currentUser); $siteSeoTitle = $tenantSiteSettings?->effectiveSeoTitle() ?: ($tenantSiteSettings?->effectiveSiteName() ?? 'qpost'); $siteSeoDescription = $tenantSiteSettings?->effectiveSeoDescription() ?: ($tenantSiteSettings?->site_description ?? 'qpost'); $siteSeoKeywords = $tenantSiteSettings?->effectiveSeoKeywords() ?: ''; $siteSeoOgTitle = $tenantSiteSettings?->effectiveSeoOgTitle() ?: $siteSeoTitle; $siteSeoOgDescription = $tenantSiteSettings?->effectiveSeoOgDescription() ?: $siteSeoDescription; $boardCategories = $boardCategories ?? collect(); $boardIndexAction = $boardIndexAction ?? tenant_url() . '/'; $createAction = $createAction ?? tenant_url(null, $board->slug . '/create'); $searchAction = $searchAction ?? tenant_url(null, $board->slug); $showActions = $showActions ?? ! $isPagesBoard; $emptyCtaLabel = $emptyCtaLabel ?? '글쓰기'; $pageCanonicalUrl = $canonicalUrl ?? tenant_canonical_url(null, $board->slug); @endphp @section('title', $pageTitle ?? ($isHomeSeoContext ? tenant_home_title($tenantSiteSettings) : tenant_page_title($board->title, $tenantSiteSettings))) @section('header', $board->title) @if ($isHomeSeoContext) @section('meta-description', $siteSeoDescription) @if ($siteSeoKeywords !== '') @section('meta-keywords', $siteSeoKeywords) @endif @section('og-title', $siteSeoOgTitle) @section('og-description', $siteSeoOgDescription) @elseif ($boardDescription !== '') @section('meta-description', $boardDescription) @section('og-description', $boardDescription) @section('og-title', $board->title) @endif @section('og-type', 'website') @section('canonical-url', $pageCanonicalUrl) @if (($query ?? '') !== '' || ($tag ?? '') !== '' || ($category ?? '') !== '' || ($onlyMine ?? false)) @section('meta-robots', 'noindex,follow') @endif @if ($showPagesToolbar) @section('body-top') @endsection @endif @section('content') @endsection