]> git.bts.cx Git - cx.git/blobdiff - cx/templates/public/pages/base.php
Add meta data for YT embeds to work
[cx.git] / cx / templates / public / pages / base.php
index 5caac0dd596660e950409972449f6427822913bd..41aed00d3ad131f1a4d96dc3efd7b2b7f2cecc01 100644 (file)
@@ -22,6 +22,8 @@
        <meta property="og:title" content="<?= cx_site_name(); ?>">
        <?php endif; ?>
 
+       <meta name="referrer" content="strict-origin-when-cross-origin" />
+
        <?php if (isset($cx_post_meta)): ?>
        
        <meta property="og:type" content="article" />
@@ -52,7 +54,7 @@
 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
 
 <?php foreach (cx_pages_get() as $page): ?>
-<li><a href="<?= cx_url('/' . $page->slug); ?>"><?= $page->title ?></a></li>
+<li><a href="<?= cx_url($page->get_permalink_path()); ?>"><?= $page->title ?></a></li>
 <?php endforeach; ?>
 </ul>