From 11a4e51804a1c26eb7aab2aba210e63125be9f88 Mon Sep 17 00:00:00 2001 From: antongit Date: Fri, 3 May 2024 15:32:44 +0200 Subject: [PATCH] Splitted showcase in two partials for easier handling. --- layouts/partials/showcase-projects.html | 32 +++++++++ layouts/partials/showcase-showreels.html | 33 +++++++++ layouts/partials/showcase.html | 85 +++--------------------- 3 files changed, 74 insertions(+), 76 deletions(-) create mode 100644 layouts/partials/showcase-projects.html create mode 100644 layouts/partials/showcase-showreels.html diff --git a/layouts/partials/showcase-projects.html b/layouts/partials/showcase-projects.html new file mode 100644 index 00000000..1bf83b71 --- /dev/null +++ b/layouts/partials/showcase-projects.html @@ -0,0 +1,32 @@ +
+
+
+
+
Recent
+
+
+
+
+
+
+ {{ $pages := ((where site.RegularPages "Section" "madewithgamma").ByParam "id").Reverse }} + +
+ +
+ + {{ range $index, $elem:= $pages }} + {{ partial "madeWithGammaCard" (dict "context" $elem "index" $index) }} + {{ end }} +
+
+ + +
+ + +
+
+ +
+
\ No newline at end of file diff --git a/layouts/partials/showcase-showreels.html b/layouts/partials/showcase-showreels.html new file mode 100644 index 00000000..f34421bf --- /dev/null +++ b/layouts/partials/showcase-showreels.html @@ -0,0 +1,33 @@ +
+
+
+
+
Showreels
+
+
+
+
+ +
+
+
+
+
+ {{ partial "vimeo" .Showreel2.vimeo }} +
+
+ {{ partial "vimeo" .Showreel1.vimeo }} +
+
+
diff --git a/layouts/partials/showcase.html b/layouts/partials/showcase.html index 6773097a..9db24842 100644 --- a/layouts/partials/showcase.html +++ b/layouts/partials/showcase.html @@ -1,82 +1,15 @@ {{ "" | safeHTML }}
- {{ with .Site.Params.Showcase }} -
-
-

{{ .headline }}

-
-
-
- {{ end }} - - -
-
-
-
-
Recent
-
-
-
-
-
-
- {{ $pages := ((where .Site.RegularPages "Section" "madewithgamma").ByParam "id").Reverse }} - -
- -
- - {{ range $index, $elem:= $pages }} - {{ partial "madeWithGammaCard" (dict "context" $elem "index" $index) }} - {{ end }} -
-
- - -
- - -
-
- -
-
- {{ with .Site.Params.Showcase }} -
-
-
-
-
Showreels
-
+ {{ with .Site.Params.Showcase }} +
+
+

{{ .headline }}

+
-
- -
-
-
-
-
- {{ partial "vimeo" .Showreel2.vimeo }} -
-
- {{ partial "vimeo" .Showreel1.vimeo }} -
-
-
- {{ end }} + {{ partial "showcase-projects" . }} + {{ partial "showcase-showreels" . }} + {{ end }}
-
\ No newline at end of file + \ No newline at end of file