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

Commit

Permalink
Tweak the sponsor margins
Browse files Browse the repository at this point in the history
Fixes #73

Signed-off-by: Matt Stratton <[email protected]>
  • Loading branch information
mattstratton committed Jan 7, 2017
1 parent e781aea commit cb53d2e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 0 additions & 2 deletions exampleSite/data/events/2017-hoofington.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ sponsors:
level: gold
- id: panopta
level: gold
- id: evident
level: gold
- id: pagerduty
level: gold
- id: 2016-newrelic
Expand Down
2 changes: 0 additions & 2 deletions exampleSite/data/events/2017-ponyville.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ sponsors:
level: gold
- id: panopta
level: gold
- id: evident
level: gold
- id: pagerduty
level: gold
- id: 2016-newrelic
Expand Down
9 changes: 1 addition & 8 deletions layouts/partials/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,12 @@ <h4>{{ $level.label }} Sponsors</h4>
{{- end -}}

<div class="row">
{{ $.Scratch.Set "i" 0 }}
{{- range where $e.sponsors "level" $level.id -}}
{{ $s := (index $.Site.Data.sponsors .id) }}
{{ if isset $.Site.Data.sponsors .id }}
{{ $.Scratch.Add $level.id 1 }}
{{ $.Scratch.Add "i" 1 }}
<div class = "col-md-3 col-sm-6 col-xs-6">
<div class = "col-lg-2 col-md-3 col-sm-6 col-xs-6">
<a href = "{{ $s.url }}"><img alt = "{{ $s.name }}" title = "{{ $s.name }}" src = "/img/sponsors/{{ .id }}.png" class="img-responsive"></a>
</div>
{{ if modBool ($.Scratch.Get "i") 4 }}
</div>
<div class="row">
{{ end }}
{{- end -}}
{{- end -}}
</div>
Expand Down
1 change: 1 addition & 0 deletions static/css/site.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions static/site.less
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ a.footer-content {
font-weight: 700;
color: #0082AB;
}


/* Sponsors */

0 comments on commit cb53d2e

Please sign in to comment.