1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Added option for canonical URL

This commit is contained in:
eldadfux 2019-08-31 02:09:23 +03:00
parent fad553e82d
commit e8fbb506d0

View file

@ -11,6 +11,8 @@ $isDev = $this->getParam('isDev', false);
$litespeed = $this->getParam('litespeed', true);
$analytics = $this->getParam('analytics', 'UA-26264668-9');
$env = $this->getParam('env', '');
$canonical = $this->getParam('canonical', '');
?>
<!DOCTYPE html><!--
<?php echo Locale::getText('settings.inspire'); ?>
@ -25,6 +27,9 @@ $env = $this->getParam('env', '');
<link href="https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,600" rel="stylesheet">
<link rel="apple-touch-icon" href="/images/apple.png">
<link rel="preconnect" href="<?php echo $api; ?>" />
<?php if(!empty($canonical)): ?>
<link rel="canonical" href="<?php echo $canonical; ?>" />
<?php endif; ?>
<?php foreach ($this->getParam('prefetch', []) as $prefetch): ?>
<link rel="prefetch" href="<?php echo $this->escape($prefetch); ?>" />
<?php endforeach; ?>