Add custom 'image' shortcode

This commit is contained in:
Luca 2020-11-23 18:56:53 +01:00
parent 494f027241
commit 55f65fdbf8
2 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,17 @@ a {
text-decoration: none;
}
figure {
img {
display: block;
margin: 0 auto;
}
figcaption {
display: none;
}
}
.nav {
max-width: 1200px;
margin: 0 auto;

View File

@ -0,0 +1,4 @@
<figure>
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}">
<figcaption>{{ .Get "alt" }}</figcaption>
</figure>