diff options
author | Nathan Lasseter <nathan@4574.co.uk> | 2013-03-06 14:09:16 +0000 |
---|---|---|
committer | Nathan Lasseter <nathan@4574.co.uk> | 2013-03-06 14:09:16 +0000 |
commit | 8229a7413975534fe9c185749facfb21fe505257 (patch) | |
tree | f6155a8c5594b64cea53bfb4a73f30bcca9af74c | |
parent | a73b93840a71b39739563f116ca58040c90720b8 (diff) |
Added Twitter Creator Tag
-rw-r--r-- | settings.sample | 3 | ||||
-rw-r--r-- | viewpost.php | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/settings.sample b/settings.sample index 2280583..59f63b2 100644 --- a/settings.sample +++ b/settings.sample @@ -9,4 +9,7 @@ $blogPosts = "/var/www/posts/"; $blogTitle = "My Clog Blog"; //Header title $blogHead = $blogTitle; + +//Twitter Creator +$twitterCreator = "Example"; ?> diff --git a/viewpost.php b/viewpost.php index c35a01b..2b73cc9 100644 --- a/viewpost.php +++ b/viewpost.php @@ -17,6 +17,7 @@ <link rel="stylesheet" type="text/css" href="<?php echo $blogRoot; ?>styles.css" /> <meta name="twitter:card" content="summary"> <meta name="twitter:url" content="<?php echo "http://{$_SERVER['SERVER_NAME']}{$blogRoot}".$_GET['post']; ?>"> + <meta name="twitter:creator" content="<?php echo $twitterCreator; ?>"> <meta name="twitter:title" content="<?php echo $getpost; ?>"> <meta name="twitter:description" content="<?php echo preg_replace('/"/', '"', substr($post, 0, 196)) . "..."; ?>"> </head> |