]> git.bts.cx Git - cx.git/blobdiff - cx/templates/public/base.php
correctly mark feed as atom
[cx.git] / cx / templates / public / base.php
index d031247a2463a16dec049b55ca6858141615afd4..927c09bcaf989bb75bb62b80d1330d2429a0d63d 100644 (file)
        <?php endif; ?>
 
        <link rel="stylesheet" href="<?= cx_url('/design/css/style.css') ?>">
        <?php endif; ?>
 
        <link rel="stylesheet" href="<?= cx_url('/design/css/style.css') ?>">
-       <link rel="alternate" type="application/rss+xml" title="bts.cx" href="<?= cx_url('/feed/') ?>" />
+       <link rel="alternate" type="application/atom+xml" title="bts.cx" href="<?= cx_url('/feed/') ?>" />
 
        <?php if (isset($cx_post_meta)): ?>
        
        <meta property="og:title" content="<?= cx_site_name(); ?> - <?= $cx_post_title; ?>">
        <meta property="og:type" content="article" />
 
        <?php if (isset($cx_post_meta)): ?>
        
        <meta property="og:title" content="<?= cx_site_name(); ?> - <?= $cx_post_title; ?>">
        <meta property="og:type" content="article" />
+
+       <?php if (isset($cx_post_meta->hero_image)): ?>
        <meta property="og:image" content="<?= $cx_post_meta->hero_image; ?>">
        <meta property="og:image" content="<?= $cx_post_meta->hero_image; ?>">
+       <?php endif; ?>
+
        <meta property="og:url" content="<?= cx_url_site($cx_post_permalink); ?>">
        <meta name="twitter:card" content="summary_large_image">
        <meta property="og:url" content="<?= cx_url_site($cx_post_permalink); ?>">
        <meta name="twitter:card" content="summary_large_image">
+
+       <?php if (isset($cx_post_meta->hero_image_alt)): ?>
        <meta name="twitter:image:alt" content="<?= $cx_post_meta->hero_image_alt; ?>">
        <meta name="twitter:image:alt" content="<?= $cx_post_meta->hero_image_alt; ?>">
+       <?php endif; ?>
 
        <?php /*<meta property="og:description" content="Offering tour packages for individuals or groups.">
        <meta property="og:site_name" content="<?= cx_site_name(); ?>">
 
        <?php /*<meta property="og:description" content="Offering tour packages for individuals or groups.">
        <meta property="og:site_name" content="<?= cx_site_name(); ?>">
 
 <body>
 <header>
 
 <body>
 <header>
-  <h1><?= cx_site_name(); ?></h1>
+  <h1><a href="<?= cx_url('/'); ?>"><?= cx_site_name(); ?></a></h1>
+  <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>
 </header>
 
 </header>
 
-<nav>
+<?php /*<nav>
 
 <ul role="list">
 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
 
 <ul role="list">
 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
@@ -45,7 +53,8 @@
 <li><a href="<?= cx_url($page->url); ?>"><?= $page->title ?></a></li>
 <?php endforeach; ?>
 </ul>
 <li><a href="<?= cx_url($page->url); ?>"><?= $page->title ?></a></li>
 <?php endforeach; ?>
 </ul>
-</nav>
+
+</nav> */ ?>
 
 <?= cx_template_content(); ?>
 
 
 <?= cx_template_content(); ?>