Add share button

Add share button: Twitter, Facebook and Google+.
This commit is contained in:
Danang Probo Sayekti 2014-01-08 17:56:56 +07:00
commit d184a29037
6 changed files with 62 additions and 10 deletions

View file

@ -149,7 +149,7 @@ get('/:year/:month/:name', function($year, $month, $name){
render('post',array(
'title' => $current->title .' - ' . config('blog.title'),
'p' => $current,
'authorinfo' => '<div class="author-info"><div class="separator">&rarr;</div><h4><strong>by ' . $bio->title . '</strong></h4>' . $bio->body . '</div>',
'authorinfo' => '<div class="author-info"><h4>by <strong>' . $bio->title . '</strong></h4>' . $bio->body . '</div>',
'canonical' => $current->url,
'description' => $description = get_description($current->body),
'bodyclass' => 'inpost',