diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html index d5e6d8c..f2d8c70 100644 --- a/layouts/shortcodes/button.html +++ b/layouts/shortcodes/button.html @@ -1,5 +1,3 @@ -{{ $style := default "btn-outline-dark" (.Get "style" )}} - - + {{ .Inner }} diff --git a/layouts/shortcodes/resource.html b/layouts/shortcodes/resource.html index 3d003b1..cb0fe58 100644 --- a/layouts/shortcodes/resource.html +++ b/layouts/shortcodes/resource.html @@ -1,18 +1,7 @@ {{ $original := .Page.Resources.GetMatch (.Get "src") }} {{ $options := default "1000x" (.Get "options") }} -{{ .Scratch.Set "image" $original }} - -{{ $command := (default "Resize" (.Get "command")) }} - -{{ if eq $command "Fit"}} - {{ .Scratch.Set "image" ($original.Fit $options) }} -{{ else if eq $command "Resize"}} - {{ .Scratch.Set "image" ($original.Resize $options) }} -{{ else if eq $command "Fill"}} - {{ .Scratch.Set "image" ($original.Fill $options) }} -{{ end }} - +{{ .Scratch.Set "image" ($original.Resize $options) }} {{ define "img" }} {{ $image := .Scratch.Get "image" }}