From 02036581f0ae69682405259bb5fad70e16f4cdea Mon Sep 17 00:00:00 2001 From: budparr Date: Mon, 5 Feb 2018 09:13:16 -0500 Subject: [PATCH] Improve showcase single layout I've made the image-column smaller and replaced the prev/next nav on large screens with a list of other showcase items, for easier sifting. I put site details in a white box to give it some structure. --- .../layouts/showcase/single.html | 109 +++++++++++------- 1 file changed, 66 insertions(+), 43 deletions(-) diff --git a/themes/gohugoioTheme/layouts/showcase/single.html b/themes/gohugoioTheme/layouts/showcase/single.html index e53eb3221..bdf8ebb41 100644 --- a/themes/gohugoioTheme/layouts/showcase/single.html +++ b/themes/gohugoioTheme/layouts/showcase/single.html @@ -1,5 +1,8 @@ {{ define "main" }} -
+ {{$section := where .Site.RegularPages "Section" .Section}} + {{$number_of_entries := $section | len}} + {{$currentPageUrl := $.URL }} +

@@ -8,56 +11,76 @@

-
-
- {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} - {{ with $img }} - {{ $img := .Resize "640x" }} - {{ $img.Title }} - {{ end }} +
+
+ +
+
+ {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} + {{ with $img }} + {{ $img := .Resize "940x" }} + {{ $img.Title }} + {{ end }} {{with .Content}} - -