Skip to content

Commit 908cd9f

Browse files
authored
Create imagebox.html
1 parent 8accaae commit 908cd9f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

layouts/_shortcodes/imagebox.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="image-box {{ with .Get "align" }}{{ . }}{{ else }}right{{ end }}">
2+
<img
3+
src="{{ .Get "src" }}"
4+
alt="{{ .Get "alt" }}"
5+
>
6+
{{ with .Get "title" }}
7+
<p>{{ . }}</p>
8+
{{ end }}
9+
</div>

0 commit comments

Comments
 (0)