resolve figure size

This commit is contained in:
Tobias Pfandzelter 2020-11-18 18:12:55 +01:00
parent 2563883c1c
commit f2dbf084a7
2 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,8 @@
<figcaption>{{ .Title }}</figcaption>
</figure>
{{ else }}
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
</figure>
{{ end }}

View file

@ -6,4 +6,4 @@ article{padding:24px 0}
.center {display: block;margin-left: auto;margin-right: auto;width: 100%;}
img {display: block; max-width: 100%; height: auto;}
figcaption {color: #888; font: 12px/1.5 monospace; text-align: center;}
figure {margin: auto}