generated from boboko/starter
homepage, new newsletter section, multilang support
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="el">
|
||||
<html lang="{{ $currentLocale ?? app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
@@ -15,6 +15,13 @@
|
||||
<title>@yield('title', config('app.name'))</title>
|
||||
<meta name="description" content="@yield('description', '')">
|
||||
|
||||
{{-- Reciprocal hreflang: self-reference + the alternate locale + x-default --}}
|
||||
@isset($currentLocale)
|
||||
<link rel="alternate" hreflang="{{ $currentLocale }}" href="{{ url()->current() }}" />
|
||||
<link rel="alternate" hreflang="{{ $altLocale }}" href="{{ $altLocaleUrl }}" />
|
||||
<link rel="alternate" hreflang="x-default" href="{{ url('/') }}" />
|
||||
@endisset
|
||||
|
||||
@stack('seo')
|
||||
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
@@ -24,7 +31,7 @@
|
||||
<body class="min-h-screen antialiased">
|
||||
<x-header />
|
||||
|
||||
<main id="main-content" class="px-4 sm:px-8 min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
|
||||
<main id="main-content" class="min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user