]> git.bts.cx Git - cx.git/blob - cx/templates/public/base.php
correctly mark feed as atom
[cx.git] / cx / templates / public / base.php
1 <!DOCTYPE html>
2 <html lang="en">
3
4 <head>
5 <meta charset="UTF-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
9 <?php if (isset($cx_post_title)): ?>
10 <title><?= cx_site_name(); ?> - <?= $cx_post_title; ?></title>
11 <?php else: ?>
12 <title><?= cx_site_name(); ?></title>
13 <?php endif; ?>
14
15 <link rel="stylesheet" href="<?= cx_url('/design/css/style.css') ?>">
16 <link rel="alternate" type="application/atom+xml" title="bts.cx" href="<?= cx_url('/feed/') ?>" />
17
18 <?php if (isset($cx_post_meta)): ?>
19
20 <meta property="og:title" content="<?= cx_site_name(); ?> - <?= $cx_post_title; ?>">
21 <meta property="og:type" content="article" />
22
23 <?php if (isset($cx_post_meta->hero_image)): ?>
24 <meta property="og:image" content="<?= $cx_post_meta->hero_image; ?>">
25 <?php endif; ?>
26
27 <meta property="og:url" content="<?= cx_url_site($cx_post_permalink); ?>">
28 <meta name="twitter:card" content="summary_large_image">
29
30 <?php if (isset($cx_post_meta->hero_image_alt)): ?>
31 <meta name="twitter:image:alt" content="<?= $cx_post_meta->hero_image_alt; ?>">
32 <?php endif; ?>
33
34 <?php /*<meta property="og:description" content="Offering tour packages for individuals or groups.">
35 <meta property="og:site_name" content="<?= cx_site_name(); ?>">
36 <meta name="twitter:image:alt" content="Alt text for image">*/ ?>
37
38 <?php endif; ?>
39 </head>
40
41 <body>
42 <header>
43 <h1><a href="<?= cx_url('/'); ?>"><?= cx_site_name(); ?></a></h1>
44 <p>Find me <a href="https://mastodon.gamedev.place/@btsherratt" rel="me">@btsherratt</a> or on <a href="https://bts.itch.io/">itch.io</a></p>
45 </header>
46
47 <?php /*<nav>
48
49 <ul role="list">
50 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
51
52 <?php foreach (cx_pages_get() as $page): ?>
53 <li><a href="<?= cx_url($page->url); ?>"><?= $page->title ?></a></li>
54 <?php endforeach; ?>
55 </ul>
56
57 </nav> */ ?>
58
59 <?= cx_template_content(); ?>
60
61 <footer>
62
63 <div>
64 <p>&copy; <?= date('Y'); ?> <?= cx_site_name(); ?> &middot; <?= cx_site_author(); ?></p>
65 </div>
66
67 </footer>
68
69 </body>
70 </html>