add nolympia announcement #142
2 changed files with 16 additions and 9 deletions
commit
d94b6f74dd
|
|
@ -454,12 +454,17 @@ div.nav-aside {
|
|||
margin: 15px var(--block-spacing-horizontal);
|
||||
}
|
||||
|
||||
img {
|
||||
padding: 15px var(--block-spacing-horizontal);
|
||||
width: 100%;
|
||||
height: 25cqw;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
.image-container {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
img {
|
||||
padding: 15px var(--block-spacing-horizontal);
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,10 @@
|
|||
{{- end }}
|
||||
</div>
|
||||
{{- if isset .Params "header" }}
|
||||
{{- $img := .Resources.GetMatch .Params.header.image }}
|
||||
<img class="container" src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
|
||||
{{- end }}
|
||||
<div class="image-container">
|
||||
{{- $img := .Resources.GetMatch .Params.header.image }}
|
||||
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
|
||||
{{- end }}
|
||||
</div>
|
||||
</header>
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue