fix: remove the space before the title in Open Graph and X (Twitter) cards
This commit is contained in:
parent
971a377516
commit
d0e549a2e7
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ if (isset($_SESSION['user'])) {
|
||||||
<link rel="stylesheet" href="<?php echo htmlspecialchars(APP_ROOT); ?>css/cookieconsent.min.css">
|
<link rel="stylesheet" href="<?php echo htmlspecialchars(APP_ROOT); ?>css/cookieconsent.min.css">
|
||||||
<title><?php echo htmlentities(isset($pageTitle) && $pageTitle ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods"); ?></title>
|
<title><?php echo htmlentities(isset($pageTitle) && $pageTitle ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods"); ?></title>
|
||||||
<meta name="description" content="<?php echo htmlspecialchars((isset($pageDescription) && $pageDescription) ? $pageDescription : "Expand the functionality of SVR.JS with mods! Visit the SVR.JS Mods directory to explore and install a variety of mods for a better web server experience.") ?>">
|
<meta name="description" content="<?php echo htmlspecialchars((isset($pageDescription) && $pageDescription) ? $pageDescription : "Expand the functionality of SVR.JS with mods! Visit the SVR.JS Mods directory to explore and install a variety of mods for a better web server experience.") ?>">
|
||||||
<meta name="og:title" content=" <?php echo htmlspecialchars((isset($pageTitle) && $pageTitle) ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods") ?>">
|
<meta name="og:title" content="<?php echo htmlspecialchars((isset($pageTitle) && $pageTitle) ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods") ?>">
|
||||||
<meta name="og:type" content="website">
|
<meta name="og:type" content="website">
|
||||||
<meta name="og:description" content="<?php echo htmlspecialchars((isset($pageDescription) && $pageDescription) ? $pageDescription : "Expand the functionality of SVR.JS with mods! Visit the SVR.JS Mods directory to explore and install a variety of mods for a better web server experience.") ?>">
|
<meta name="og:description" content="<?php echo htmlspecialchars((isset($pageDescription) && $pageDescription) ? $pageDescription : "Expand the functionality of SVR.JS with mods! Visit the SVR.JS Mods directory to explore and install a variety of mods for a better web server experience.") ?>">
|
||||||
<meta name="og:url" content="<?php echo htmlspecialchars((isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : 'localhost')) . $_SERVER['REQUEST_URI']); ?>">
|
<meta name="og:url" content="<?php echo htmlspecialchars((isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : 'localhost')) . $_SERVER['REQUEST_URI']); ?>">
|
||||||
|
@ -42,7 +42,7 @@ if (isset($_SESSION['user'])) {
|
||||||
<meta name="og:image:height" content="600">
|
<meta name="og:image:height" content="600">
|
||||||
<meta name="og:image:alt" content="<?php echo htmlspecialchars((isset($pageTitle) && $pageTitle) ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods") ?>">
|
<meta name="og:image:alt" content="<?php echo htmlspecialchars((isset($pageTitle) && $pageTitle) ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods") ?>">
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:title" content=" <?php echo htmlspecialchars((isset($pageTitle) && $pageTitle) ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods") ?>">
|
<meta name="twitter:title" content="<?php echo htmlspecialchars((isset($pageTitle) && $pageTitle) ? "$pageTitle - SVR.JS Mods" : "SVR.JS Mods") ?>">
|
||||||
<meta name="twitter:description" content="<?php echo htmlspecialchars((isset($pageDescription) && $pageDescription) ? $pageDescription : "Expand the functionality of SVR.JS with mods! Visit the SVR.JS Mods directory to explore and install a variety of mods for a better web server experience.") ?>">
|
<meta name="twitter:description" content="<?php echo htmlspecialchars((isset($pageDescription) && $pageDescription) ? $pageDescription : "Expand the functionality of SVR.JS with mods! Visit the SVR.JS Mods directory to explore and install a variety of mods for a better web server experience.") ?>">
|
||||||
<meta name="twitter:image" content="<?php echo htmlspecialchars((isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : 'localhost')) . APP_ROOT . 'img/' . (isset($pageImage) && $pageImage ? $pageImage : 'cover.png')); ?>">
|
<meta name="twitter:image" content="<?php echo htmlspecialchars((isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : 'localhost')) . APP_ROOT . 'img/' . (isset($pageImage) && $pageImage ? $pageImage : 'cover.png')); ?>">
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue