categories: shorten website description

This commit is contained in:
Zankaria 2024-10-02 17:58:39 +02:00
parent 4684d08764
commit 27286cdcee

View file

@ -14,7 +14,7 @@
class Categories { class Categories {
public static function build($action, $settings) { public static function build($action, $settings) {
global $config; global $config;
if ($action == 'all' || if ($action == 'all' ||
$action == 'boards' || $action == 'boards' ||
$action == 'news' || $action == 'news' ||
@ -34,8 +34,8 @@
// Build homepage // Build homepage
public static function homepage($settings) { public static function homepage($settings) {
global $config; global $config;
$description = "Leftypol is an imageboard where users can post anonymously.</br>We engage in both serious political discourse and informal discussion on various topics related to leftist thought. </br></br>They are... an interesting group of people - <i><a href='https://www.youtube.com/watch?v=rJvAxRCxxCg'>Senpai Wolff</a></i> "; $description = "Leftypol is an anonymous imageboard.</br>We engage in both serious political discourse and informal discussion on various topics related to leftist thought. </br></br>They are... an interesting group of people - <i><a href='https://www.youtube.com/watch?v=rJvAxRCxxCg'>Senpai Wolff</a></i> ";
$metadescription = "Leftypol is an imageboard where users can post anonymously about both serious political discourse and informal discussion on various topics related to leftist thought."; $metadescription = "Leftypol is an anonymous imageboard about both serious political discourse and informal discussion on various topics related to leftist thought.";
$metaextra = '<link rel="canonical" href="https://leftypol.org" />'. $metaextra = '<link rel="canonical" href="https://leftypol.org" />'.
'<script type="application/ld+json">{"@context": "https://schema.org","@type": "Organization","url": "https://leftypol.org","logo": "https://leftypol.org/static/leftypol_logo.png"}</script>'; // other sites should delete this! '<script type="application/ld+json">{"@context": "https://schema.org","@type": "Organization","url": "https://leftypol.org","logo": "https://leftypol.org/static/leftypol_logo.png"}</script>'; // other sites should delete this!
$query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error()); $query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error());
@ -119,7 +119,7 @@
foreach (array_merge(... $config['boards']) as $uri) { foreach (array_merge(... $config['boards']) as $uri) {
$_board = getBoardInfo($uri); $_board = getBoardInfo($uri);
if (!$_board) { if (!$_board) {
// board doesn't exist. // board doesn't exist.
continue; continue;
} }
@ -164,4 +164,3 @@
}; };
?> ?>