mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Added option for canonical URL
This commit is contained in:
1 parent
fad553e82d
commit
e8fbb506d0
1 file changed
+5
@@ -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; ?>
|
||||
|
||||
Reference in new issue
Block a user