aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.sample3
-rw-r--r--viewpost.php1
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('/"/', '&quot;', substr($post, 0, 196)) . "..."; ?>">
</head>