SEO improvements

main
gravel 3 years ago
parent dfd2d463af
commit 3fdd0b7325
Signed by: gravel
SSH Key Fingerprint: SHA256:p4HP49CCk4YQMkJpWJ09L8peEPQWjERtdCRAFxPfbOY

@ -11,7 +11,8 @@
global $TABLE_COLUMNS; global $TABLE_COLUMNS;
$column = $TABLE_COLUMNS[$colno]; $column = $TABLE_COLUMNS[$colno];
if (!column_sortable($column['id'])) return ""; if (!column_sortable($column['id'])) return "";
return " onclick='sortTable($colno)' title='Click to sort this column'"; $name = $column['name'];
return " onclick='sortTable($colno)' title='Click to sort by $name'";
} }
$TABLE_COLUMNS = [ $TABLE_COLUMNS = [
@ -88,8 +89,8 @@
</td> </td>
<td class="td_join_url"> <td class="td_join_url">
<div class="join_url_container" data-url="<?=$room->join_link?>"> <div class="join_url_container" data-url="<?=$room->join_link?>">
<a class="join_url show-from-w5" title="<?=$room->join_link?>" <span class="join_url show-from-w5" title="<?=$room->join_link?>"
><?=truncate($room->join_link, 32)?></a> ><?=truncate($room->join_link, 32)?></span>
<a class="noscript" href="<?=$room->join_link?>" <a class="noscript" href="<?=$room->join_link?>"
>Copy link</a> >Copy link</a>
</div> </div>

@ -16,6 +16,11 @@
<link rel="stylesheet" href="styles2.css"> <link rel="stylesheet" href="styles2.css">
<script type="module" src="main.js"></script> <script type="module" src="main.js"></script>
<title>Self-updating list of active Session communities</title> <title>Self-updating list of active Session communities</title>
<meta name="description" content="
Directory of Session Open Groups — public chatrooms within Session Messenger.
Copy these Communities into the Session app
and talk anonymously about Privacy, Security, or Cryptocurrency.
">
</head> </head>
<body onload="onLoad(<?php echo $timestamp ?>)"> <body onload="onLoad(<?php echo $timestamp ?>)">
<header> <header>
@ -65,8 +70,13 @@
only available with JS enabled. only available with JS enabled.
</p> </p>
<p> <p>
<label for="toggle-show-room-ids" class="clickable anchorstyle"> <label
Toggle room identifier display for="toggle-show-room-ids"
class="clickable anchorstyle"
tabindex="0"
title="Shows a column with community identifiers
for developers or language data contributors.">
Toggle room identifier display
</label> </label>
</p> </p>
<nav> <nav>

@ -1,6 +1,7 @@
<?php <?php
include_once "+getenv.php"; include_once "+getenv.php";
$instruction_files = glob("+instructions/*.txt"); $instruction_files = glob("+instructions/*.txt");
function filename($file) { return pathinfo($file)['filename']; }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -16,6 +17,14 @@
} }
<?php endforeach; ?> <?php endforeach; ?>
</style> </style>
<meta name="description" content="
Discover how to use the sessioncommunities.online website
to help you join Session Open Groups; available in <?php
// Print languages instructions are available in.
$languages = array_map('filename', array_slice($instruction_files, 0, 10));
echo(join(", ", $languages));
?>. In short: Use the Copy button or scan the QR code!
">
</head> </head>
<body> <body>
<header> <header>
@ -35,7 +44,7 @@
<?= <?=
// Name of the language // Name of the language
// Can be later parsed from i.e. first line of file // Can be later parsed from i.e. first line of file
pathinfo($file)['filename'] filename($file);
?> ?>
</label> </label>
<?php endforeach; ?> <?php endforeach; ?>

Loading…
Cancel
Save