Fix canonical URL

dev
gravel 2 years ago
parent 95bbaf26f2
commit 85ada40083
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -7,7 +7,7 @@
<head>
<?php include('+components/page-head.php'); ?>
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/about">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/about/index.html">
<link rel="stylesheet" href="/css/common-dark.css">
<meta name="description" content="Learn more about sessioncommunities.online, the online self-updating list of Session Communities.">
<title>About — sessioncommunities.online</title>

@ -15,7 +15,7 @@
<html>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/donate">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/donate/index.html">
<link rel="stylesheet" href="/css/common-dark.css">
<meta name="description" content="<?php
?>Support sessioncommunities.online development with donations if you have disposable income. <?php

@ -35,7 +35,7 @@
<head>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/index.html">
<link rel="stylesheet" href="/index.css?<?=md5_file("$DOCUMENT_ROOT/index.css")?>">
<script type="module" src="/main.js?<?=md5_file("$DOCUMENT_ROOT/main.js")?>"></script>
<link rel="modulepreload" href="/js/util.js?<?=md5_file("$DOCUMENT_ROOT/js/util.js")?>">

@ -12,7 +12,7 @@
<head>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/instructions.php">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/instructions/index.html">
<link rel="stylesheet" href="/css/common-dark.css">
<link rel="stylesheet" href="/css/instructions.css">
<style type="text/css">

@ -12,7 +12,7 @@
<head>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/privacy">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/privacy/index.html">
<title>Privacy — sessioncommunities.online</title>
<meta name="description" content="<?php
?>This page covers the Privacy Policy of sessioncommunities.online <?php

@ -7,7 +7,7 @@
$root = $changes_under_root ?? $TEMPLATES_ROOT;
$ext = ($root == $TEMPLATES_ROOT) ? "php" : "html";
?>
<loc><?=$SITE_CANONICAL_URL . $rel_loc?></loc>
<loc><?=$SITE_CANONICAL_URL . $rel_loc?>/index.html</loc>
<lastmod><?=date('c', filemtime("$root$rel_loc/index.$ext"))?></lastmod>
<?php
}

Loading…
Cancel
Save