<?php
    include 'config.php';
    include 'functions.php';
?>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="<?php echo description ?>">
        <link rel="icon" href="<?php echo favicon ?>">
        <meta name="twitter:card" content="summary_large_image">
        <meta name="twitter:site" content="@OldgateORG">
        <meta name="twitter:title" content="<?php echo title?>">
        <meta name="twitter:description" content="<?php echo description ?>">
        <meta name="keywords" content="SOP.wtf, SOP Link Shortener, SOP">
        <meta property="og:url" content="<?php $YOURLS_SITE ?>">
        <meta property="og:type" content="website">
        <meta property="og:title" content="<?php echo title?>">
        <meta property="og:description" content="<?php echo description ?>">
        <meta property="og:image" content="https://sop.wtf/frontend/assets/img/cover.png">
        <meta name="twitter:image" content="https://sop.wtf/frontend/assets/img/cover.png">
        <title><?php echo title ?></title>
        <link rel="stylesheet" href="<?php $YOURLS_SITE ?>/frontend/dist/styles.css">

        <?php if (defined('backgroundImage')) : ?>
            <style>
                body {
                    background: url(<?php echo backgroundImage ?>) no-repeat center center fixed !important; 
                    background-size: cover !important;
                }
            </style>
        <?php else : ?>
            <style>
                body {
                    background-color: <?php echo colour ?>;
                }
            </style>
        <?php endif; ?>
    </head>