Fix wrong link preview
This commit is contained in:
parent
bdda09cf17
commit
d84d55e061
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ class Page
|
||||||
|
|
||||||
<meta property="og:title" content="<?= $this->title ?>" />
|
<meta property="og:title" content="<?= $this->title ?>" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:image" content="https://<?= $_SERVER['HTTP_HOST'] . '/src/assets/img/link-preview.svg' ?>" />
|
<meta property="og:image" content="<?= $this->link_preview ?>" />
|
||||||
|
|
||||||
<meta property="og:description" content="<?= $this->description ?>" />
|
<meta property="og:description" content="<?= $this->description ?>" />
|
||||||
<meta property="og:locale" content="<?= $this->language ?>" />
|
<meta property="og:locale" content="<?= $this->language ?>" />
|
||||||
|
@ -229,7 +229,7 @@ class Page
|
||||||
<meta property="twitter:url" content="https://<?= $_SERVER['HTTP_HOST'] ?>" />
|
<meta property="twitter:url" content="https://<?= $_SERVER['HTTP_HOST'] ?>" />
|
||||||
<meta name="twitter:title" content="<?= $this->title ?>" />
|
<meta name="twitter:title" content="<?= $this->title ?>" />
|
||||||
<meta name="twitter:description" content="<?= $this->description ?>" />
|
<meta name="twitter:description" content="<?= $this->description ?>" />
|
||||||
<meta name="twitter:image" content="https://<?= $_SERVER['HTTP_HOST'] . '/src/assets/img/link-preview.svg' ?>" />
|
<meta name="twitter:image" content="<?= $this->link_preview ?>" />
|
||||||
|
|
||||||
<?php foreach ($locales as $locale) { ?>
|
<?php foreach ($locales as $locale) { ?>
|
||||||
<?php if ($locale !== $this->language) { ?>
|
<?php if ($locale !== $this->language) { ?>
|
||||||
|
|
Loading…
Reference in a new issue