Add image hack for better display
This commit is contained in:
parent
e49f30d87a
commit
3292d58007
3 changed files with 8 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<img class="mb-3" src="{{ .Params.image }}" style="width: 100%; max-height: 30vh"/>
|
<div class="mb-3 image" data-image="{{ .Params.image }}" style="width: 100%; height: 30vh"></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1 class="display-5">{{ .Title }}</h1>
|
<h1 class="display-5">{{ .Title }}</h1>
|
||||||
<h5 class="my-3">{{ .Params.subtitle }}</h5>
|
<h5 class="my-3">{{ .Params.subtitle }}</h5>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<div class="d-none d-md-block align-self-center img-wrapper mr-3">
|
<div class="d-none d-md-block align-self-center img-wrapper mr-3">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<img src="{{ .Params.image }}" alt="{{ .Title }} image" />
|
<div class="image" data-image="{{ .Params.image }}"></div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -145,8 +145,9 @@ footer {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
.image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 10vh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue