aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-03-24 20:21:59 -0400
committerThedro Neely <thedroneely@gmail.com>2019-03-24 20:21:59 -0400
commit8ef93a2b4261c6fbdcb505d539b282c2261ef873 (patch)
tree1f247a011ea4281c69d290f5c4e9dd9edb1b11ea
parentf140e66dd5492c96c585def542033687c6298b9f (diff)
downloadedwinmattiacci.com-8ef93a2b4261c6fbdcb505d539b282c2261ef873.tar.gz
edwinmattiacci.com-8ef93a2b4261c6fbdcb505d539b282c2261ef873.tar.bz2
edwinmattiacci.com-8ef93a2b4261c6fbdcb505d539b282c2261ef873.zip
views/partials/header: Let Hugo source header
Check if on posts page and adjust accordingly
-rw-r--r--views/partials/header.php31
1 files changed, 16 insertions, 15 deletions
diff --git a/views/partials/header.php b/views/partials/header.php
index 7b8aea7..9891dd6 100644
--- a/views/partials/header.php
+++ b/views/partials/header.php
@@ -1,26 +1,27 @@
-<!DOCTYPE html>
-<html lang="en-us">
+<?php if (strpos($_SERVER['REQUEST_URI'], 'posts') !== false) { ?>
-<head>
+ <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; ?>
+ <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/views/partials/header.common.php'; ?>
- <meta charset="utf-8">
+ </head>
+
+<?php } else { ?>
+
+ <!DOCTYPE html>
+ <html lang="en-us">
+
+ <head>
<title>Edwin Mattiacci - <?php title();?></title>
- <meta name="author" content="Edwin Mattiacci">
- <meta name="description" content="Edwin Mattiacci Voiceover. Narration, Trailers, Commercials, and More.">
<meta name="keywords" content="Edwin, Mattiacci, Voice, Voiceover, Narration, Trailers, Commercials">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/views/snippets/favicons.php'; ?>
+ <meta name="description" content="Edwin Mattiacci Voiceover. Narration, Trailers, Commercials, and More.">
- <link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet">
- <link href="/css/app.css" rel="stylesheet">
- <link href="/dist/bar-ui.css" rel="stylesheet">
+ <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/views/partials/header.common.php'; ?>
- <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/views/snippets/rss.php'; ?>
+ </head>
-</head>
+<?php } ?>
<body class="overflow-y-scroll">
@@ -34,4 +35,4 @@
<div class="w-full xl:w-3/5 h-full">
- <div class="container p-6 sm:p-10 mx-auto" style="max-width: 40em;">
+ <div class="container p-6 mx-auto" style="max-width: 40em;">