Render articles using a template like notes
This commit is contained in:
parent
42a85845fe
commit
acbb958475
4 changed files with 16 additions and 37 deletions
11
resources/views/templates/article.blade.php
Normal file
11
resources/views/templates/article.blade.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<article class="h-entry @if ($article->url != '') link @endif">
|
||||
<header>
|
||||
<h1 class="p-name">
|
||||
<a href="{{ $article->url ?? $article->link }}">{{ $article->title }}</a>
|
||||
</h1>
|
||||
<span class="post-info">Posted <time class="dt-published" title="{{ $article->tooltip_time }}" datetime="{{ $article->w3c_time }}">{{ $article->human_time }}</time> - <a title="Permalink" href="{{ $article->link }}">⚓</a></span>
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{!! $article->html !!}
|
||||
</div>
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue