diff --git a/bin/init.php b/bin/init.php index f38a892..145c214 100644 --- a/bin/init.php +++ b/bin/init.php @@ -49,6 +49,9 @@ $yaml["rcc"]["api"] = "off"; $langs = getDir('./lang'); $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); function get($question, $value, $default) diff --git a/bin/init_debug.php b/bin/init_debug.php index aaf81c7..810c1d7 100644 --- a/bin/init_debug.php +++ b/bin/init_debug.php @@ -61,6 +61,9 @@ $yaml["rcc"]["api"] = "off"; $langs = getDir('./lang'); $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"; $config->writeConfig($yaml); diff --git a/config.yaml b/config.yaml index eb983bc..8d97c14 100644 --- a/config.yaml +++ b/config.yaml @@ -21,3 +21,5 @@ rcc: rcc: 'on' api: 'on' language: en +social: + twitter: '' diff --git a/index.php b/index.php index 9829d37..531ce39 100644 --- a/index.php +++ b/index.php @@ -114,10 +114,9 @@ $feedurl = $config["blog"]["url"] . "/feed/" . $blog . ".atom"; - - +