feat(*): refactor dynamic vs. static structure and distinctions; make additional elements dynamic

This commit is contained in:
Cory Dransfeldt 2025-06-13 16:31:36 -07:00
parent 7a0b808f24
commit 203012eef7
No known key found for this signature in database
129 changed files with 983 additions and 960 deletions

View file

@ -0,0 +1,16 @@
<title><?= cleanMeta($page['metadata']['title']) ?></title>
<meta name="description" content="<?= cleanMeta($page['metadata']['description']) ?>" />
<meta property="og:title" content="<?= cleanMeta($page['metadata']['title']) ?>" />
<meta property="og:description" content="<?= cleanMeta($page['metadata']['description']) ?>" />
<meta property="og:image" content="<?= cleanMeta($globals['url'] . '/og/w800' . $page['metadata']['open_graph_image']) ?>" />
<meta property="og:url" content="<?= cleanMeta($page['metadata']['url'] ?? $fullUrl) ?>" />
<link rel="alternate" type="application/json+oembed" href="<?= cleanMeta($oembedUrl) ?>" title="<?= cleanMeta($page['metadata']['title']) ?>">
<link rel="canonical" href="<?= cleanMeta($page['metadata']['url'] ?? $fullUrl) ?>" />
<?php if (!empty($pagination)): ?>
<?php if (!empty($pagination['href']['next'])): ?>
<link rel="next" href="<?= cleanMeta($pagination['href']['next']) ?>">
<?php endif; ?>
<?php if (!empty($pagination['href']['previous'])): ?>
<link rel="prev" href="<?= cleanMeta($pagination['href']['previous']) ?>">
<?php endif; ?>
<?php endif; ?>