Add dynamic meta description and page-specific CSS
Add meta description tag when available Include page-specific CSS when provided
This commit is contained in:
parent
09b014a756
commit
b8d944cc9d
1 changed files with 6 additions and 0 deletions
|
|
@ -17,8 +17,14 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<?php if (!empty($metaDescription)): ?>
|
||||
<meta name="description" content="<?= htmlspecialchars($metaDescription) ?>">
|
||||
<?php endif; ?>
|
||||
<meta name="fediverse:creator" content="@stopplidelsen@oslo.town">
|
||||
<link rel="stylesheet" href="<?= $cssUrl ?>?v=<?= $cssHash ?>">
|
||||
<?php if (!empty($pageCssUrl)): ?>
|
||||
<link rel="stylesheet" href="<?= $pageCssUrl ?>?v=<?= $pageCssHash ?? '' ?>">
|
||||
<?php endif; ?>
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link href="/app/fonts/pt-serif/pt-serif.css" rel="stylesheet">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue