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

Change homepage grid images#149 #152

Merged
merged 5 commits into from
Jan 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-amsterdam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-06-30
cfp_date_start: 2017-01-15 # start accepting talk proposals.
cfp_date_end: 2017-04-01 # close your call for proposals.
cfp_date_announce: 2017-05-15 # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-atlanta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-04-19
cfp_date_start: 2017-01-05
cfp_date_end: 2017-02-27
cfp_date_announce: 2017-03-01
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-austin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ enddate: 2017-05-05
cfp_date_start: 2017-01-23
cfp_date_end: 2017-02-14
cfp_date_announce: 2017-03-01
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-baltimore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-03-08
cfp_date_start: 2016-05-26
cfp_date_end: 2016-12-09
cfp_date_announce: 2017-01-06
homepage_image: 'logo-square.png'
event_logo_square: 'logo-square.png'


# Location
coordinates: "39.286400, -76.605606" # The coordinates of your city. Get Latitude and Longitude of a Point: http://itouchmap.com/latlong.html
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-beijing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-03-18 # The end date of your event. Leave blank if you don't have
cfp_date_start: # start accepting talk proposals.
cfp_date_end: # close your call for proposals.
cfp_date_announce: # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-cape-town.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ enddate: 2017-11-07
cfp_date_start: 2017-02-01 # start accepting talk proposals.
cfp_date_end: 2017-04-30 # close your call for proposals.
cfp_date_announce: 2017-05-07 # inform proposers of status
homepage_image: ""
event_logo_square: ""



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-charlotte.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-02-07 # The end date of your event. Leave blank if you don't have
cfp_date_start: # start accepting talk proposals.
cfp_date_end: # close your call for proposals.
cfp_date_announce: # inform proposers of status
homepage_image: 'logo-square.png'
event_logo_square: 'logo-square.png'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-chicago.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: # The end date of your event. Leave blank if you don't have a venue re
cfp_date_start: # start accepting talk proposals.
cfp_date_end: # close your call for proposals.
cfp_date_announce: # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-denver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ cfp_date_end: 2017-02-17
cfp_date_announce: 2017-03-01
coordinates: "39.739236, -104.990251" # The corrodinates of your venue. Get Latitude and Longitude of a Point: http://itouchmap.com/latlong.html
location: "Denver" # The name of your location
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



nav_elements: # List of pages you want to show up in the navigation of your page.
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-detroit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ enddate: 2017-09-28
cfp_date_start: # start accepting talk proposals.
cfp_date_end: # close your call for proposals.
cfp_date_announce: # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-hoofington.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ cfp_date_end: 2016-12-30
cfp_date_announce: 2017-01-01
coordinates: "-22.242517, 25.859375"
location: "Hoofington Palace"
homepage_image: 'logo-square.png'
event_logo_square: 'logo-square.png'

newnav: "yes"
# navigationelements: ["welcome", "contact", "location", "program", "propose", "proposals", "conduct", "sponsor"]
nav_elements:
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-minneapolis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ enddate: 2017-07-26
cfp_date_start: 2016-12-22
cfp_date_end: 2017-04-09
cfp_date_announce: 2017-05-07
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



coordinates: "44.972610,-93.272960"
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-moscow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-03-11 # The end date of your event. Leave blank if you don't have
cfp_date_start: 2016-12-01 # start accepting talk proposals.
cfp_date_end: 2017-02-17 # close your call for proposals.
cfp_date_announce: 2017-02-17 # inform proposers of status
homepage_image: 'logo-square.png'
event_logo_square: 'logo-square.png'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-ponyville.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ cfp_date_announce: 2017-01-01
coordinates: "41.882219, -87.640530"
location: "Applejack House"
newnav: "yes"
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'

# navigationelements: ["welcome", "contact", "location", "program", "propose", "proposals", "conduct", "sponsor"]
nav_elements:
- name: welcome
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-salt-lake-city.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-05-17 # The end date of your event. Leave blank if you don't have
cfp_date_start: 2016-12-14 # start accepting talk proposals.
cfp_date_end: 2017-02-15 # close your call for proposals.
cfp_date_announce: 2017-03-01 # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-seattle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-04-27 # The end date of your event. Leave blank if you don't have
cfp_date_start: 2016-10-24 # start accepting talk proposals.
cfp_date_end: 2017-01-24 # close your call for proposals.
cfp_date_announce: 2017-02-07 # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-stockholm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-05-09 # The end date of your event. Leave blank if you don't have
cfp_date_start: # start accepting talk proposals.
cfp_date_end: # close your call for proposals.
cfp_date_announce: # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-toronto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-05-26 # The end date of your event. Leave blank if you don't have
cfp_date_start: 2016-12-21 # start accepting talk proposals.
cfp_date_end: 2017-01-31 # close your call for proposals.
cfp_date_announce: 2017-02-28 # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-vancouver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ enddate: 2017-04-01 # The end date of your event. Leave blank if you don't have
cfp_date_start: 2016-12-01 # start accepting talk proposals.
cfp_date_end: 2017-02-01 # close your call for proposals.
cfp_date_announce: 2017-02-11 # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
3 changes: 2 additions & 1 deletion exampleSite/data/events/2017-zurich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ enddate: 2017-05-04
cfp_date_start: 2016-11-01 # start accepting talk proposals.
cfp_date_end: 2017-02-01 # close your call for proposals.
cfp_date_announce: 2017-04-01 # inform proposers of status
homepage_image: 'logo-square.jpg'
event_logo_square: 'logo-square.jpg'



# Location
Expand Down
7 changes: 4 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
{{- if ge (dateFormat "2006-01-02" .startdate) (dateFormat "2006-01-02" ($.Now.Format "2006-01-02")) -}}
<div class="col-md-3 homepage-grid-col">
<a href = "/events/{{ .name }}">
{{- if .homepage_image }}
{{- if ne .homepage_image "" }}
<img src = "/events/{{ .name }}/{{ .homepage_image }}" class="img-fluid"/>
{{- if .event_logo_square }}
{{- if ne .event_logo_square "" }}
<img src = "/events/{{ .name }}/{{ .event_logo_square }}" class="img-fluid"/>

{{- end -}}
{{- else -}}
<img src="/img/event-logo-default.png" class="img-fluid"/>
Expand Down