-
{{ $author.greeting }} {{ $name }}
diff --git a/layouts/shortcodes/rimg.html b/layouts/shortcodes/rimg.html
new file mode 100644
index 0000000..3b07819
--- /dev/null
+++ b/layouts/shortcodes/rimg.html
@@ -0,0 +1,53 @@
+{{/* Combination of code taken from: https://alexlakatos.com/web/2020/07/17/hugo-image-processing/ & https://dev.to/stereobooster/responsive-images-for-hugo-dn9}}
+
+{{/* get file that matches the filename as specified as src="" in shortcode */}}
+{{ $src := resources.GetMatch (.Get "src") }}
+
+{{ if in (.Get "src") "http" }}
+

+{{ else }}
+{{ if in (.Get "src") ".gif" }}
+

+{{ else }}
+{{/* set image sizes, these are hardcoded for now */}}
+
+{{ $tinyw := default "500x" }}
+{{ $smallw := default "800x" }}
+{{ $mediumw := default "1200x" }}
+{{ $largew := default "1500x" }}
+
+{{/* resize the src image to the given sizes */}}
+
+{{ $tiny := $src.Resize $tinyw }}
+{{ $small := $src.Resize $smallw }}
+{{ $medium := $src.Resize $mediumw }}
+{{ $large := $src.Resize $largew }}
+
+{{/* add the processed images to the scratch */}}
+
+
+{{/* only use images smaller than or equal to the src (original) image size */}}
+

+{{ end }}
+{{ end }}
\ No newline at end of file
diff --git a/static/assets/js/home.js b/static/assets/js/home.js
index fd248b4..fe93469 100644
--- a/static/assets/js/home.js
+++ b/static/assets/js/home.js
@@ -329,6 +329,19 @@ var projectCards;
this.parentElement.classList.toggle("col-lg-12");
this.parentElement.classList.toggle("col-md-12");
this.parentElement.classList.toggle("col-sm-12");
+ if (this.children["SmallImage"].hasAttribute("active")) {
+ let mainLogo = this.children["LargeImage"].getAttribute("Style");
+ this.children["LargeImage"].setAttribute("active",true);
+ this.children["SmallImage"].removeAttribute("active");
+
+ this.setAttribute("Style", mainLogo);
+ } else {
+ let mainLogo = this.children["SmallImage"].getAttribute("Style");
+ this.children["SmallImage"].setAttribute("active",true);
+ this.children["LargeImage"].removeAttribute("active");
+ this.setAttribute("Style", mainLogo);
+ }
+
if (this.children["caption"] != undefined) {
this.children["caption"].classList.toggle("hidden");
}