mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Updated
This commit is contained in:
parent
80a749cf06
commit
6ddee254f1
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ require __DIR__ . '/common.php';
|
||||||
$page_cfg['load_tpl_vars'] = [
|
$page_cfg['load_tpl_vars'] = [
|
||||||
'post_icons'
|
'post_icons'
|
||||||
];
|
];
|
||||||
|
$page_cfg['canonical_link'] = true;
|
||||||
|
|
||||||
// Show last topic
|
// Show last topic
|
||||||
$show_last_topic = true;
|
$show_last_topic = true;
|
||||||
|
|
|
@ -125,7 +125,7 @@ $template->assign_vars([
|
||||||
'ALLOW_ROBOTS' => !$bb_cfg['board_disable'] && (!isset($page_cfg['allow_robots']) || $page_cfg['allow_robots'] === true),
|
'ALLOW_ROBOTS' => !$bb_cfg['board_disable'] && (!isset($page_cfg['allow_robots']) || $page_cfg['allow_robots'] === true),
|
||||||
'META_CANONICAL' => (isset($page_cfg['canonical_link']) && $page_cfg['canonical_link'] === true)
|
'META_CANONICAL' => (isset($page_cfg['canonical_link']) && $page_cfg['canonical_link'] === true)
|
||||||
? getCanonicalUrl()
|
? getCanonicalUrl()
|
||||||
: ((is_string($page_cfg['canonical_link'])) ? $page_cfg['canonical_link'] : false),
|
: ((isset($page_cfg['canonical_link']) && is_string($page_cfg['canonical_link'])) ? $page_cfg['canonical_link'] : false),
|
||||||
'META_DESCRIPTION' => $page_cfg['meta_description'] ?? '',
|
'META_DESCRIPTION' => $page_cfg['meta_description'] ?? '',
|
||||||
|
|
||||||
'SITENAME' => $bb_cfg['sitename'],
|
'SITENAME' => $bb_cfg['sitename'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue