Skip to content

Commit e75df16

Browse files
committed
Add meta description
1 parent 59ddccc commit e75df16

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/Views/_layouts/default.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
/**
3+
* @var string|null $description
34
* @var string|null $title
45
* @var Framework\MVC\View $view
56
*/
@@ -10,6 +11,9 @@
1011
<head>
1112
<meta charset="utf-8">
1213
<meta name="viewport" content="width=device-width, initial-scale=1">
14+
<meta name="description" content="<?= isset($description)
15+
? esc($description)
16+
: 'Website built with Aplus Framework' ?>">
1317
<title><?= isset($title) ? esc($title) : 'Aplus Framework' ?></title>
1418
<link rel="shortcut icon" href="/favicon.ico">
1519
<style>

0 commit comments

Comments
 (0)