Added support for OpenGraph

- Linking to index and individual posts produces thumbs on sites like Facebook
- Thumbnails theoretically support custom sizes
This commit is contained in:
Marcin Kurczewski
2013-11-18 14:33:43 +01:00
parent a5d0a3f9ef
commit 17bd7a7572
4 changed files with 23 additions and 11 deletions

View File

@ -41,6 +41,7 @@ class IndexController
$this->context->featuredPost = $featuredPost;
$this->context->featuredPostUser = $featuredPostUser;
$this->context->featuredPostDate = $featuredPostDate;
$this->context->pageThumb = \Chibi\UrlHelper::route('post', 'thumb', ['name' => $featuredPost->name]);
}
}