1
0

Show coauthor

This commit is contained in:
Richard Dern 2024-04-25 18:04:59 +02:00
parent 798ebc2c63
commit 41ce35b3e9
2 changed files with 12 additions and 0 deletions

View File

@ -14,6 +14,10 @@ #article-main {
line-height: 125%; line-height: 125%;
padding: 0 1em; padding: 0 1em;
} }
small {
font-size: 1rem;
}
} }
> #article-body { > #article-body {

View File

@ -19,6 +19,10 @@ class="{!! $mainLink['classes'] !!}"
<time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time> <time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time>
@endif @endif
@if (!empty($bundle->metadata()->get('coauthor')))
<p><small>Article coécrit avec {{ $bundle->metadata()->get('coauthor.0.name') }}</small></p>
@endif
@if (!empty($cover)) @if (!empty($cover))
{!! $cover !!} {!! $cover !!}
@endif @endif
@ -47,6 +51,10 @@ class="{!! $mainLink['classes'] !!}"
@endif @endif
</section> </section>
@endif @endif
<footer>
@dump($bundle->virtualMetadata()->all())
</footer>
</article> </article>
@if (!empty($pagination['items'])) @if (!empty($pagination['items']))