generated from boboko/starter
stoic settings and site meta and legal
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('title', $page->meta_title)
|
||||
@section('description', $page->meta_description)
|
||||
@section('og_image', $page->og_image)
|
||||
|
||||
{{-- Organization structured data, home page only. Name from core's StoreDetails,
|
||||
social profiles (sameAs) from Stoic settings.md. --}}
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
{{-- Falls back to Stoic's default when a page sets none, or sets it to an
|
||||
empty meta_description (@yield's own default only covers "not set"). --}}
|
||||
<meta name="description" content="{{ trim($__env->yieldContent('description')) ?: $stoicSettings->get('meta_description', '') }}">
|
||||
{{-- A page's own Stoic og_image (via @section('og_image')), else the default from settings.md. --}}
|
||||
@if ($ogImage = $stoicSettings->ogImageUrl(trim($__env->yieldContent('og_image'))))
|
||||
<meta property="og:image" content="{{ $ogImage }}">
|
||||
@endif
|
||||
|
||||
{{-- Reciprocal hreflang: self-reference + every alternate locale + x-default --}}
|
||||
@isset($currentLocale)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('title', $page->meta_title ?: $page->name)
|
||||
@section('description', $page->meta_description)
|
||||
@section('og_image', $page->og_image)
|
||||
|
||||
@if($page->noindex ?? false)
|
||||
@push('seo')
|
||||
|
||||
Reference in New Issue
Block a user