diff --git a/hugo/layouts/shortcodes/image-resize.html b/hugo/layouts/shortcodes/image-resize.html deleted file mode 100644 index 99b729910fba4a60949cf7ddfa0919b2254e6f12..0000000000000000000000000000000000000000 --- a/hugo/layouts/shortcodes/image-resize.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ $original := .Page.Resources.GetMatch (printf "%s*" (.Get 0)) }} -{{ $options := .Get 1 }} -{{ with ($original.Resize $options) }} - <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"> -{{ end }} - - diff --git a/hugo/layouts/shortcodes/imgproc.html b/hugo/layouts/shortcodes/imgproc.html deleted file mode 100644 index 57f3cf9566e5b3fc4307b1300227c38ae0016fae..0000000000000000000000000000000000000000 --- a/hugo/layouts/shortcodes/imgproc.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ $imagename := .Get "src" }} -{{ $command := .Get "command" }} -{{ $options := .Get "options" }} -{{ $caption := .Get "caption" }} - -{{ $original := .Page.Resources.GetMatch (printf "%s*" $imagename) }} - - {{ 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) }} - {{ else }} - {{ errorf "Invalid image processing command: Must be one of Fit, Fill or Resize."}} - {{ end }} - {{ $image := .Scratch.Get "image" }} - <div class="col-sm-12 col-md-6"> - <figure> - <a class="lightbox" href="{{ $original.RelPermalink }}" data-caption="{{ $caption}}" > - <img class="img-fluid" src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt="{{$caption}}"> - </a> - <figcaption> - <p> {{- $caption -}} </p> - </figcaption> - </figure> -</div> \ No newline at end of file diff --git a/hugo/layouts/shortcodes/link.html b/hugo/layouts/shortcodes/link.html deleted file mode 100644 index 79a0c4de64b5e036e850ed58139171930c814017..0000000000000000000000000000000000000000 --- a/hugo/layouts/shortcodes/link.html +++ /dev/null @@ -1,3 +0,0 @@ -<a class="linktofile" href="{{ .Site.BaseURL }}/{{ .Get 0 }}"/> - {{ .Inner }} -</a>