From 8e2c4b9dd4a5e3e34e5e5abf641974c2852e7ee9 Mon Sep 17 00:00:00 2001 From: Matt Stratton Date: Sat, 7 Jan 2017 10:59:40 -0600 Subject: [PATCH] Add content from welcome page to welcome partial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The styling is not great yet, but it’s there. This also takes away the whole “try to find the logo and then put it there if it’s there” nonsense. Fixes #75 Signed-off-by: Matt Stratton --- layouts/partials/welcome.html | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/layouts/partials/welcome.html b/layouts/partials/welcome.html index 7adea40ff..fa03e52fe 100644 --- a/layouts/partials/welcome.html +++ b/layouts/partials/welcome.html @@ -6,18 +6,7 @@
- {{ $.Scratch.Set "subdir" $e.name }} - {{ $.Scratch.Set "contentdir" (printf "static/events/%s/" ($.Scratch.Get "subdir")) }} - {{ $.Scratch.Set "city" (chomp $e.city) }} - {{ range (readDir "static/events") }} - {{ if eq .Name ($.Scratch.Get "subdir") }} - {{ range (readDir ($.Scratch.Get "contentdir"))}} - {{ if eq .Name "logo.png" }} - - {{ end }} - {{ end }} - {{ end }} - {{ end }} + {{ .Content }}

DevOpsDays {{ $e.city }}

{{- dateFormat "January 2" $e.startdate -}} - {{- dateFormat "2, 2006" $e.enddate -}}