1
0

Display sub-title

This commit is contained in:
Richard Dern 2024-04-26 17:32:59 +02:00
parent 5700c2ec65
commit 544af4e2a7
4 changed files with 17 additions and 2 deletions

View File

@ -38,6 +38,10 @@ .article-list {
flex-grow: 1;
align-content: center;
margin: .5rem;
small {
display: block;
}
}
&:hover {

View File

@ -13,6 +13,11 @@ #article-main {
color: #fff;
line-height: 125%;
padding: 0 1em;
small {
display: block;
font-size: 1.5rem;
}
}
small {

View File

@ -10,7 +10,10 @@
</div>
@endif
<h2>{!! $bundle->getArticleTitle() !!}</h2>
<h2>{!! $bundle->getArticleTitle() !!}
@if (!empty($bundle->metadata()->get('subTitle')))
<small>{{ $bundle->metadata()->get('subTitle') }}</small>
@endif</h2>
<section class="article-card-body">
@if (!empty($date))
<p><time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time></p>

View File

@ -4,7 +4,10 @@
<article id="article-main">
<header>
@if (empty($bundle->metadata()->get('hide_title')))
<h1>{{ $articleTitle }}</h1>
<h1>{{ $articleTitle }}
@if (!empty($bundle->metadata()->get('subTitle')))
<small>{{ $bundle->metadata()->get('subTitle') }}</small>
@endif</h1>
@endif
@if(!empty($mainLink))