diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index 1ebb969..3f3cd54 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -5,17 +5,21 @@ {{ with .Get "style"}} box--image-{{ . }}{{ end }} {{ with .Get "link"}}{{ if eq . "lightbox" }} box--image-lightbox{{ end }}{{ end }} " -{{ with .Get "maxwidth"}} maxWidth="{{ . }}"{{ end }} -{{ with .Get "wpad"}} wPad="{{ . }}"{{ end }} +style=" +{{ with .Get "width"}} width:{{ . }};{{ end }} + {{ with .Get "pad"}} padding:{{ . }}{{ end }} +" > -{{ with .Get "title" }} -
{{ . }}
- {{ end }} -{{ with .Get "link"}} -{{ if eq . "lightbox" }}{{ else }}{{ end }} -{{ end }} - -{{ if .Get "link"}}{{ end }} +{{ with .Get "title" }}
{{ . }}
{{ end }} + + + {{ with .Get "caption"}}
{{ . }}
{{ end }} diff --git a/layouts/shortcodes/lorem.html b/layouts/shortcodes/lorem.html index b7ddbfc..8156f40 100644 --- a/layouts/shortcodes/lorem.html +++ b/layouts/shortcodes/lorem.html @@ -1,7 +1,6 @@ - -
+{{/* parameter is number of paragraphs */}} +{{ $lorem := "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse accumsan rutrum consectetur. Vivamus eu ex quis leo posuere convallis. Nunc laoreet velit sed ullamcorper mollis. Mauris porta consequat tortor aliquet maximus. Quisque sed purus condimentum orci sodales aliquam non vel tellus. Praesent lorem arcu, scelerisque a semper at, iaculis eget purus. Etiam ullamcorper orci a porttitor sodales. Nullam tincidunt nibh et hendrerit auctor. Quisque vitae quam ut lorem vehicula condimentum. In commodo cursus elit, non volutpat lectus sagittis non.

" }} + +{{ range seq (.Get 0 | default "2") }} + {{ $lorem | safeHTML }} +{{ end }}