fix: blog/index.php missing DOCTYPE, head and CSS — page was completely unstyled

meta-tags.php only defines PHP functions, outputs nothing. The page had no
<!DOCTYPE html>, <html>, <head>, or CSS link — browser rendered it as an
unstyled text document. Replaced with a proper HTML head section.
This commit is contained in:
Peter Foster
2026-03-22 19:34:54 +00:00
parent 76abfc23da
commit 6819689ebd

View File

@@ -1,9 +1,30 @@
<?php
$page_title = "AI Automation Blog | Practical Guides for Legal and Consultancy Firms | UK AI Automation";
$page_description = "Practical articles on AI automation for UK law firms and management consultancies — document extraction, research automation, AI agents, GDPR compliance, and ROI analysis.";
$page_title = "AI Automation Blog | UK AI Automation";
$page_description = "Practical articles on AI automation for UK law firms and management consultancies.";
$canonical_url = "https://ukaiautomation.co.uk/blog/";
include($_SERVER['DOCUMENT_ROOT'] . '/includes/meta-tags.php');
include($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo htmlspecialchars($page_title); ?></title>
<meta name="description" content="<?php echo htmlspecialchars($page_description); ?>">
<meta name="robots" content="index, follow">
<link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>">
<meta property="og:type" content="website">
<meta property="og:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
<meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?>">
<meta property="og:description" content="<?php echo htmlspecialchars($page_description); ?>">
<meta property="og:site_name" content="UK AI Automation">
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700&family=Lato:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/css/main.css?v=20260322">
</head>
<body>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php');
$articles = [
[
@@ -115,3 +136,5 @@ $articles = [
</section>
</main>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); ?>
</body>
</html>