feat: add SEO meta tags, Open Graph, Twitter Cards, JSON-LD schema, sitemap, robots.txt

This commit is contained in:
2026-06-14 10:21:12 -04:00
parent c76f92886c
commit 9bb25b3c40
5 changed files with 75 additions and 0 deletions

View File

@@ -4,6 +4,13 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= htmlspecialchars($title ?? 'ServerManager') ?></title>
<meta name="description" content="ServerManager — Linux server management platform. Monitor, manage, and control your servers with real-time metrics and web terminal.">
<link rel="canonical" href="<?= htmlspecialchars(($_ENV['APP_URL'] ?? 'https://sysadmin.lan') . parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH)) ?>">
<meta property="og:title" content="<?= htmlspecialchars($title ?? 'ServerManager') ?>">
<meta property="og:description" content="ServerManager — Linux server management platform.">
<meta property="og:type" content="website">
<meta property="og:image" content="<?= htmlspecialchars(($_ENV['APP_URL'] ?? 'https://sysadmin.lan') . '/assets/img/icon-512.png') ?>">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" type="image/svg+xml" href="/assets/img/server.svg">
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#0f1117">