Move canonical site URL to .phpenv

dev
gravel 2 years ago
parent 1345028eac
commit f8bde220ad
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -138,11 +138,17 @@
*/
$REPOSITORY_CANONICAL_URL_FILES="$REPOSITORY_CANONICAL_URL/src/branch/main";
/**
* @var string $SITE_CANONICAL_URL
* The base URL for this project's website.
*/
$SITE_CANONICAL_URL="https://sessioncommunities.online";
/**
* @var string $API_CANONICAL_URL
* The base URL for the listing provider API.
*/
$API_CANONICAL_URL="https://lp.sessioncommunities.online/";
$API_CANONICAL_URL="https://lp.sessioncommunities.online";
set_include_path(implode(PATH_SEPARATOR, array(
get_include_path(),

@ -1,4 +1,6 @@
<?php
require_once '+getenv.php';
$NUM_PARTICLES = 20;
$DELAYS = range(0, 240 - 1, 240 / $NUM_PARTICLES);
shuffle($DELAYS);
@ -13,7 +15,7 @@
<html>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/donate.html">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/donate.html">
<link rel="stylesheet" href="css/common-dark.css">
<title>Donate — sessioncommunities.online</title>
<style>

@ -34,7 +34,7 @@
<head>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/">
<link rel="stylesheet" href="./index.css">
<script type="module" src="./main.js"></script>
<link rel="modulepreload" href="js/util.js">
@ -51,7 +51,7 @@
property="og:description"
content="<?=count($rooms)?> Communities and counting — updated every day!"
>
<meta property="og:url" content="https://sessioncommunities.online/">
<meta property="og:url" content="<?=$SITE_CANONICAL_URL?>/">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US"/>
<meta name="timestamp" content="<?=$timestamp?>">
@ -138,7 +138,7 @@
<br>
Communities shown are fetched automatically from
<a
href="https://codeberg.org/gravel/sessioncommunities.online#which-sources-are-crawled"
href="<?=$REPOSITORY_CANONICAL_URL?>#which-sources-are-crawled"
target="_blank"
>various sources</a>.
<br>

@ -1,5 +1,6 @@
<?php
require_once '+getenv.php';
$instruction_files = glob("+instructions/*.txt");
function file_language($file) { return pathinfo($file)['filename']; }
?>
@ -8,7 +9,7 @@
<head>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/instructions.php">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/instructions.php">
<link rel="stylesheet" href="css/common-dark.css">
<link rel="stylesheet" href="css/instructions.css">
<style type="text/css">
@ -29,7 +30,7 @@
">
<meta property="og:title" content="How to join Session Communities">
<meta property="og:description" content="Learn how to use sessioncommunities.online to join">
<meta property="og:url" content="https://sessioncommunities.online/instructions.php">
<meta property="og:url" content="<?=$SITE_CANONICAL_URL?>/instructions.php">
<meta property="og:type" content="article">
<title>Instructions — sessioncommunities.online</title>
</head>

@ -3,6 +3,8 @@
If you're hosting your own version of the site, please replace this file!
*/
require_once '+getenv.php';
$HIGHLIGHTED_FIELDS = ["ip", "datetime", "resource", "status", "bytes", "referer", "user-agent"];
?>
<!DOCTYPE html>
@ -10,7 +12,7 @@
<head>
<?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/privacy.html">
<link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/privacy.html">
<title>Privacy — sessioncommunities.online</title>
<meta name="description" content="Read what data sessioncommunities.online collects">
<meta property="og:title" content="sessioncommunities.online — Privacy">

Loading…
Cancel
Save