First commit
This commit is contained in:
24
app/Views/site/post.html
Normal file
24
app/Views/site/post.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<article class="article" aria-labelledby="post-title">
|
||||
<header class="article-header">
|
||||
<h1 class="article-title" id="post-title">{{ @post.title }}</h1>
|
||||
<p class="meta-text">
|
||||
Publié le <time datetime="{{ @post.created_at }}">{{ @post.created_at_label }}</time>
|
||||
<check if="{{ @post.has_updated_at }}">
|
||||
<true><br>Mis à jour le <time datetime="{{ @post.updated_at }}">{{ @post.updated_at_label }}</time></true>
|
||||
</check>
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<check if="{{ @post.cover_url }}">
|
||||
<true>
|
||||
<img class="media-frame media-frame--large article-cover" src="{{ @post.cover_url }}"
|
||||
alt="{{ @post.title }}">
|
||||
</true>
|
||||
<false>
|
||||
<div class="media-frame media-frame--large media-frame--placeholder article-cover">Aucune image
|
||||
</div>
|
||||
</false>
|
||||
</check>
|
||||
|
||||
<div class="prose">{{ @post.body_html | raw }}</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user