correct meta tags
This commit is contained in:
parent
e6245524a4
commit
4aeb468fe1
4 changed files with 9 additions and 2 deletions
|
@ -49,6 +49,9 @@ $yaml["rcc"]["api"] = "off";
|
||||||
$langs = getDir('./lang');
|
$langs = getDir('./lang');
|
||||||
$yaml["language"] = get("Choose a language (" . $langs . ")", $yaml["language"], "en");
|
$yaml["language"] = get("Choose a language (" . $langs . ")", $yaml["language"], "en");
|
||||||
|
|
||||||
|
// social media
|
||||||
|
$yaml["social"]["twitter"] = get("Your Twitter username:", $yaml["social"]["twitter"], "");
|
||||||
|
|
||||||
$config->writeConfig($yaml);
|
$config->writeConfig($yaml);
|
||||||
|
|
||||||
function get($question, $value, $default)
|
function get($question, $value, $default)
|
||||||
|
|
|
@ -61,6 +61,9 @@ $yaml["rcc"]["api"] = "off";
|
||||||
$langs = getDir('./lang');
|
$langs = getDir('./lang');
|
||||||
$yaml["language"] = get("Choose a language (" . $langs . ")", $yaml["language"], "en");
|
$yaml["language"] = get("Choose a language (" . $langs . ")", $yaml["language"], "en");
|
||||||
|
|
||||||
|
// social media
|
||||||
|
$yaml["social"]["twitter"] = get("Your Twitter username:", $yaml["social"]["twitter"], "");
|
||||||
|
|
||||||
echo "64\n";
|
echo "64\n";
|
||||||
|
|
||||||
$config->writeConfig($yaml);
|
$config->writeConfig($yaml);
|
||||||
|
|
|
@ -21,3 +21,5 @@ rcc:
|
||||||
rcc: 'on'
|
rcc: 'on'
|
||||||
api: 'on'
|
api: 'on'
|
||||||
language: en
|
language: en
|
||||||
|
social:
|
||||||
|
twitter: ''
|
||||||
|
|
|
@ -114,10 +114,9 @@ $feedurl = $config["blog"]["url"] . "/feed/" . $blog . ".atom";
|
||||||
<meta property="og:url" content="<?php echo $url; ?>"/>
|
<meta property="og:url" content="<?php echo $url; ?>"/>
|
||||||
<meta property="og:image" content="<?php echo $config['design']['favicon']; ?>"/>
|
<meta property="og:image" content="<?php echo $config['design']['favicon']; ?>"/>
|
||||||
<meta property="og:description" content="<?php echo $config['blog']['description']; ?>"/>
|
<meta property="og:description" content="<?php echo $config['blog']['description']; ?>"/>
|
||||||
<meta property="og:locale:alternate" content="<?php echo $lang; ?>"/>
|
|
||||||
<!-- Twitter meta tags -->
|
<!-- Twitter meta tags -->
|
||||||
<meta name="twitter:card" content="summary"/>
|
<meta name="twitter:card" content="summary"/>
|
||||||
<meta name="twitter:site" content="<?php echo $twitter; ?>"/>
|
<meta name="twitter:site" content="<?php echo $config['social']['twitter']; ?>"/>
|
||||||
<meta name="twitter:title" content="<?php echo $hd_subblog_title; ?>"/>
|
<meta name="twitter:title" content="<?php echo $hd_subblog_title; ?>"/>
|
||||||
<meta name="twitter:description" content="<?php echo $config['blog']['description']; ?>"/>
|
<meta name="twitter:description" content="<?php echo $config['blog']['description']; ?>"/>
|
||||||
<meta name="twitter:image" content="<?php echo $config['design']['favicon']; ?>"/>
|
<meta name="twitter:image" content="<?php echo $config['design']['favicon']; ?>"/>
|
||||||
|
|
Reference in a new issue