2015-03-02 21:57:49 +01:00
|
|
|
{% extends "::base.html.twig" %}
|
|
|
|
|
|
|
|
{% block breadcrumb %}
|
2015-05-22 12:58:07 +02:00
|
|
|
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
|
|
|
<li class="sep"> » </li>
|
|
|
|
<li>Article « <a href="{{ cms_path('post', {id: page.object.id, post: page.object.slug}) }}">{{ page.object }}</a> »</li>
|
2015-03-02 21:57:49 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-05-21 14:22:03 +02:00
|
|
|
{% block header_title %}
|
2015-05-22 12:58:07 +02:00
|
|
|
{{ page.object.title }}
|
2015-05-21 14:22:03 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-05-22 22:37:41 +02:00
|
|
|
{% block header_subtitle %}
|
2015-05-23 00:11:59 +02:00
|
|
|
{% set post = page.object %}
|
|
|
|
|
|
|
|
<address class="author">
|
|
|
|
<a rel="author" href="{{ cms_path('about') }}">{{ post.user.username|capitalize }}</a>,
|
|
|
|
</address>
|
|
|
|
|
|
|
|
<time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}">
|
|
|
|
le {{ post.publishedAt|date("d/m/Y à H\\hi") }}
|
|
|
|
</time>
|
2015-05-22 22:37:41 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-03-02 21:57:49 +01:00
|
|
|
{% block body %}
|
2015-05-22 12:58:07 +02:00
|
|
|
{% set post = page.object %}
|
2015-03-02 21:57:49 +01:00
|
|
|
|
2015-05-22 12:58:07 +02:00
|
|
|
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
2015-03-02 21:57:49 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block metas %}
|
|
|
|
{% spaceless %}
|
2015-05-22 12:58:07 +02:00
|
|
|
{{ parent() }}
|
2015-03-02 21:57:49 +01:00
|
|
|
|
2015-05-22 12:58:07 +02:00
|
|
|
<meta property="og:title" content="{{ page.object.title }}" />
|
|
|
|
<meta property="og:url" content="{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: page.object.id, post: page.object.slug}) }}" />
|
|
|
|
<meta property="og:image" content="{{ app.request.getSchemeAndHttpHost() ~ asset(page.object.getWebPathForPicture) }}" />
|
|
|
|
<meta property="og:site_name" content="Deblan" />
|
2015-03-02 21:57:49 +01:00
|
|
|
{% endspaceless %}
|
|
|
|
{% endblock %}
|