|
1 | 1 | <html lang="en" class="h-dvh flex flex-col scroll-smooth"> |
2 | 2 | <head> |
3 | | - <title :if="isset($fullTitle)">{{ $fullTitle }}</title> |
4 | | - <title :elseif="isset($title)">{{ $title }} — Tempest</title> |
5 | | - <title :else>Tempest</title> |
| 3 | + <!-- Meta title --> |
| 4 | + <?php $title = match (true) { |
| 5 | + isset($fullTitle) => $fullTitle, |
| 6 | + isset($title) => "{$title} — Tempest", |
| 7 | + default => 'Tempest', |
| 8 | + }; ?> |
| 9 | + |
| 10 | + <title>{{ $title }}</title> |
| 11 | + <meta name="title" :content="$title"> |
| 12 | + <meta name="twitter:title" :content="$title"> |
| 13 | + <meta property="og:title" :content="$title"> |
| 14 | + <meta itemprop="name" :content="$title"> |
6 | 15 |
|
7 | 16 | <meta charset="UTF-8"/> |
8 | 17 | <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
9 | 18 |
|
10 | | - <!-- Current meta image --> |
11 | | - <?php |
12 | | - $metaImageUri ??= ($meta ?? \App\Web\Meta\MetaType::HOME)->uri(); |
13 | | - ?> |
| 19 | + <!-- Meta description --> |
| 20 | + <?php $description = match (true) { |
| 21 | + isset($description) => $description, |
| 22 | + default => 'The PHP framework that gets out of your way.', |
| 23 | + }; ?> |
| 24 | + |
| 25 | + <meta name="description" :content="$description"> |
| 26 | + <meta name="twitter:description" :content="$description"> |
| 27 | + <meta property="og:description" :content="$description"> |
| 28 | + <meta itemprop="description" :content="$description"> |
14 | 29 |
|
15 | | - <!-- Social --> |
16 | | - <meta property="og:image" content="<?= $metaImageUri ?>"/> |
17 | | - <meta property="twitter:image" content="<?= $metaImageUri ?>"/> |
18 | | - <meta name="image" content="<?= $metaImageUri ?>"/> |
| 30 | + <!-- Meta image --> |
| 31 | + <?php $metaImageUri ??= ($meta ?? \App\Web\Meta\MetaType::HOME)->uri(); ?> |
| 32 | + <meta property="og:image" :content="$metaImageUri"/> |
| 33 | + <meta property="twitter:image" :content="$metaImageUri"/> |
| 34 | + <meta name="image" :content="$metaImageUri"/> |
19 | 35 | <meta name="twitter:card" content="summary_large_image"/> |
| 36 | + <meta property="og:type" content="article"> |
20 | 37 |
|
21 | 38 | <!-- Favicon --> |
22 | 39 | <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"/> |
|
0 commit comments