Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Add content from welcome page to welcome partial
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mattstratton committed Jan 7, 2017
1 parent bbe0343 commit 8e2c4b9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions layouts/partials/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@

<div class="row">
<div class="col-md-4 col-sm-push-8">
{{ $.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" }}
<img src="{{ printf ("/events/%s/logo.png") ($.Scratch.Get "subdir")}}" class="img-responsive"/>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ .Content }}
</div>
<div class="col-md-8 col-sm-pull-4">
<h2>DevOpsDays {{ $e.city }}</h2> {{- dateFormat "January 2" $e.startdate -}} - {{- dateFormat "2, 2006" $e.enddate -}}
Expand Down

0 comments on commit 8e2c4b9

Please sign in to comment.