28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
{[
|
||
$ogTitle = defined('TITLE') ? TITLE : 'Pisi GNU/Linux';
|
||
$ogDesc = defined('DESC') ? DESC : 'Pisi GNU/Linux - Özgürlük Şimdi Başladı...';
|
||
$ogUrl = defined('LINK') ? LINK : URL::base();
|
||
$ogImg = defined('IMG') ? IMG : URL::base('upload/pisilinux_pisi.png');
|
||
|
||
// Resim URL'sinin mutlak (absolute) olup olmadığını kontrol ediyoruz
|
||
if ( ! preg_match('/^(http|https):/i', $ogImg) ) {
|
||
$ogImg = URL::base(ltrim($ogImg, '/'));
|
||
}
|
||
]}
|
||
<!-- Open Graph / Facebook -->
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:url" content="{{ $ogUrl }}">
|
||
<meta property="og:title" content="{{ $ogTitle }}">
|
||
<meta property="og:description" content="{{ $ogDesc }}">
|
||
<meta property="og:image" content="{{ $ogImg }}">
|
||
|
||
<!-- Twitter / X -->
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:url" content="{{ $ogUrl }}">
|
||
<meta name="twitter:title" content="{{ $ogTitle }}">
|
||
<meta name="twitter:description" content="{{ $ogDesc }}">
|
||
<meta name="twitter:image" content="{{ $ogImg }}">
|
||
|
||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
|
||
<link rel="stylesheet" href="css/main.css">
|
||
<link rel="stylesheet" href="fontawesome/css/all.css"> |