forked from leftypol/leftypol
Update frontpage, improve meta tags
This commit is contained in:
parent
1f9891006a
commit
76911be92a
|
@ -122,7 +122,10 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<title>{{ settings.title }}</title>
|
<title>{{ settings.title }}</title>
|
||||||
<meta name="description" content="{{ description }}">
|
<meta name="description" content="{{ metadescription|striptags }}">
|
||||||
|
{{ metaextra }}
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include 'themes/categories/' ~ settings.file_sidebar %}
|
{% include 'themes/categories/' ~ settings.file_sidebar %}
|
||||||
|
|
|
@ -34,9 +34,10 @@
|
||||||
// Build homepage
|
// Build homepage
|
||||||
public static function homepage($settings) {
|
public static function homepage($settings) {
|
||||||
global $config;
|
global $config;
|
||||||
$description = 'Leftypol is a fun and enjoyable space where users can post anonymously.<br>' .
|
$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> ";
|
||||||
'We engage in both serious political discourse and less serious informal discussions ' .
|
$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.";
|
||||||
'on various topics related to leftist thought.';
|
$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>';
|
||||||
$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());
|
||||||
$news = $query->fetchAll(PDO::FETCH_ASSOC);
|
$news = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||||
$stats = Categories::getPostStatistics($settings);
|
$stats = Categories::getPostStatistics($settings);
|
||||||
|
@ -46,6 +47,8 @@
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
|
'metadescription' => $metadescription,
|
||||||
|
'metaextra' => $metaextra,
|
||||||
'categories' => Categories::getCategories($config),
|
'categories' => Categories::getCategories($config),
|
||||||
'news' => $news,
|
'news' => $news,
|
||||||
'stats' => $stats,
|
'stats' => $stats,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user