Add date to paragraph title template
This commit is contained in:
parent
ea1c1a1a37
commit
2e7f90350d
2 changed files with 17 additions and 2 deletions
|
@ -150,7 +150,17 @@
|
|||
font-size: $size-5;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
.title + .subtitle {
|
||||
.authors {
|
||||
color: currentColor;
|
||||
font-size: $size-5;
|
||||
line-height: 1em;
|
||||
}
|
||||
.created-date {
|
||||
color: currentColor;
|
||||
font-size: $size-5;
|
||||
line-height: 1em;
|
||||
}
|
||||
.title + .subtitle, .created-date {
|
||||
margin-top: 1em;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,8 +78,13 @@
|
|||
<div class="hero-body">
|
||||
{{ content.field_title }}
|
||||
{{ content.field_subtitle }}
|
||||
<div class="authors">
|
||||
{{ authors }}
|
||||
</div>
|
||||
<div class="created-date">
|
||||
Posted on {{ date }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="hero-body">
|
||||
|
|
Loading…
Reference in a new issue