diff options
author | Thedro Neely <thedroneely@gmail.com> | 2024-01-06 19:16:12 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2024-01-06 19:16:12 -0500 |
commit | 6d745f1e8c7b870524e01ee7a4886db38634e2ae (patch) | |
tree | 4d5964c37fb3d66ed07e5ac0fad46a54d76e979d /app/views/partials | |
parent | 3c1a341d42994efd4addb942c623bff18b2d034c (diff) | |
download | thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.tar.gz thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.tar.bz2 thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.zip |
app/partials: Unify headers
Make easier to maintain. Use native upload and add htm.
Diffstat (limited to 'app/views/partials')
-rw-r--r-- | app/views/partials/footer.php | 2 | ||||
-rw-r--r-- | app/views/partials/head.css.php | 15 | ||||
-rw-r--r-- | app/views/partials/head.discovery.php | 5 | ||||
-rw-r--r-- | app/views/partials/head.js.php | 1 | ||||
-rw-r--r-- | app/views/partials/head.manifests.php | 7 | ||||
-rw-r--r-- | app/views/partials/head.meta.php | 11 | ||||
-rw-r--r-- | app/views/partials/header.error.php | 5 | ||||
-rw-r--r-- | app/views/partials/header.php | 19 | ||||
-rw-r--r-- | app/views/partials/header.posts.php | 7 | ||||
-rw-r--r-- | app/views/partials/header.resume.php | 22 | ||||
-rw-r--r-- | app/views/partials/header.upload.php | 18 |
11 files changed, 95 insertions, 17 deletions
diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php index 0a7b37b..fe9d9d3 100644 --- a/app/views/partials/footer.php +++ b/app/views/partials/footer.php @@ -35,5 +35,3 @@ </p> </footer> - -<script src="/js/app.js"></script> diff --git a/app/views/partials/head.css.php b/app/views/partials/head.css.php new file mode 100644 index 0000000..62b2ad9 --- /dev/null +++ b/app/views/partials/head.css.php @@ -0,0 +1,15 @@ +<link rel="stylesheet" href="/css/tdro.css"> + +<?php if ($theme->color() === 'dark') { ?> +<link rel="stylesheet" href="/css/tdro-dark.css"> +<?php } ?> + +<noscript> + <style> + article-comments, + [href="#isso-thread"], + article header aside:nth-child(2) svg:first-child { + display: none; + } + </style> +</noscript> diff --git a/app/views/partials/head.discovery.php b/app/views/partials/head.discovery.php new file mode 100644 index 0000000..a37df92 --- /dev/null +++ b/app/views/partials/head.discovery.php @@ -0,0 +1,5 @@ +<link href="/rss.xml" rel="alternate" type="application/rss+xml" title="All at Thedro Neely"/> +<link href="/index.json" rel="alternate" type="application/json" title="All at Thedro Neely"/> +<link href="/posts/rss.xml" rel="alternate" type="application/rss+xml" title="Posts at Thedro Neely"/> +<link href="/projects/rss.xml" rel="alternate" type="application/rss+xml" title="Projects at Thedro Neely"/> +<link href="/abstracts/rss.xml" rel="alternate" type="application/rss+xml" title="Abstracts at Thedro Neely"/> diff --git a/app/views/partials/head.js.php b/app/views/partials/head.js.php new file mode 100644 index 0000000..f1ccc3a --- /dev/null +++ b/app/views/partials/head.js.php @@ -0,0 +1 @@ +<script src="/js/app.js"></script> diff --git a/app/views/partials/head.manifests.php b/app/views/partials/head.manifests.php new file mode 100644 index 0000000..f052ee5 --- /dev/null +++ b/app/views/partials/head.manifests.php @@ -0,0 +1,7 @@ +<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> +<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,<?php echo base64('/public/favicon-32x32.png'); ?>"> +<link rel="icon" type="image/png" sizes="16x16" href="data:image/png;base64,<?php echo base64('/public/favicon-16x16.png'); ?>"> +<link rel="manifest" href="data:application/manifest+json;base64,<?php echo base64('/public/site.webmanifest'); ?>"> +<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> +<meta name="msapplication-TileColor" content="#b91d47"> +<meta name="theme-color" content="#ffffff"> diff --git a/app/views/partials/head.meta.php b/app/views/partials/head.meta.php new file mode 100644 index 0000000..9f92e77 --- /dev/null +++ b/app/views/partials/head.meta.php @@ -0,0 +1,11 @@ +<title> + <?php echo $title = $title ?? 'Portfolio - '; ?> + Thedro Neely +</title> + +<meta charset="utf-8"> +<meta name="robots" content="index,follow"> +<meta name="author" content="Thedro Neely"> +<meta name="description" content="Thedro's Portfolio Website"> +<meta name="keywords" content="Thedro,Neely,Portfolio,Website"> +<meta name="viewport" content="width=device-width, initial-scale=1"> diff --git a/app/views/partials/header.error.php b/app/views/partials/header.error.php deleted file mode 100644 index 5e11869..0000000 --- a/app/views/partials/header.error.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/header.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/navigator.php'; ?> diff --git a/app/views/partials/header.php b/app/views/partials/header.php index e5439be..c52ca19 100644 --- a/app/views/partials/header.php +++ b/app/views/partials/header.php @@ -1,9 +1,15 @@ <!DOCTYPE html> -<html lang="en-us" itemscope itemtype="http://schema.org/WebPage"> +<html + itemscope="" + itemtype="http://schema.org/WebPage" + lang="en-us" +> <head> -<title><?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely</title> +<title> + <?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely +</title> <meta charset="utf-8"> <meta name="robots" content="index,follow"> @@ -12,10 +18,9 @@ <meta name="keywords" content="Thedro,Neely,Portfolio,Website"> <meta name="viewport" content="width=device-width, initial-scale=1"> -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; ?> </head> diff --git a/app/views/partials/header.posts.php b/app/views/partials/header.posts.php index d98d3c4..a473e24 100644 --- a/app/views/partials/header.posts.php +++ b/app/views/partials/header.posts.php @@ -1,6 +1,7 @@ <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; -require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; -require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; -require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; diff --git a/app/views/partials/header.resume.php b/app/views/partials/header.resume.php new file mode 100644 index 0000000..92c3a41 --- /dev/null +++ b/app/views/partials/header.resume.php @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html + data-page="resume" + lang="en-us" +> + +<head> + +<title>Resume - Thedro Neely</title> + +<meta charset="utf-8"> +<meta name="description" content="Thedro's Web Development Resume"> +<meta name="keywords" content="Thedro,Neely,Portfolio,Website,Resume"> +<meta name="author" content="Thedro Neely"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<meta name="robots" content="index,follow"> + +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?> + +</head> diff --git a/app/views/partials/header.upload.php b/app/views/partials/header.upload.php new file mode 100644 index 0000000..3710280 --- /dev/null +++ b/app/views/partials/header.upload.php @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html + lang="en-us" + itemscope="" + itemtype="http://schema.org/WebPage" +> + +<head> + +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.meta.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; ?> + +<script type="module" src="/js/upload.js"></script> + +</head> |