Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
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
1 change: 0 additions & 1 deletion exampleSite/content/events/2017-minneapolis/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ aliases = ["/events/2017-minneapolis"]

+++

**devopsdays is returning to {{< event_location >}} for a fourth year!**

<div class = "row">
<div class = "col-md-2">
Expand Down
1 change: 1 addition & 0 deletions exampleSite/data/events/2017-minneapolis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "2017-minneapolis"
year: "2017"
city: "Minneapolis"
description: "devopsdays is returning to Minneapolis for a fourth year!"

startdate: 2017-07-25
enddate: 2017-07-26
Expand Down
1 change: 1 addition & 0 deletions layouts/event/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
{{ else }}
{{ .Content }}
{{ end }}
<br />
<!-- need to add else statement for the rest of the content types -->
{{ partial "sponsors.html" . }}

Expand Down
6 changes: 0 additions & 6 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
{{- dateFormat "Jan 2, 2006" .enddate -}}<br/>
</span>
<span class="homepage-grid-city"><a href = "/events/{{ .name }}">{{ .city }}</a></span>
<br/>
{{- if .description -}}
{{- if ne .description "" -}}
<span class="homepage-grid-desc">{{ .description | markdownify }}</span>
{{- end -}}
{{- end -}}
</div>
{{- if modBool ($.Scratch.Get "i") 4 -}}
</div>
Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/event_navbar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{/* site data query copypasta */}}
{{ $path := split $.Source.File.Path .Site.Params.pathseperator }}
{{ $event_slug := index $path 1 }}

{{ $e := (index $.Site.Data.events $event_slug) }}
{{/* end site data query */}}

<nav class="navbar navbar-toggleable-md navbar-light">

Expand All @@ -9,6 +11,7 @@
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item event-navigation"><a class="nav-link" href="/events/{{ $event_slug }}/index">{{ $e.city }}</a></li>
<li class="nav-item event-navigation"><a class="nav-link" href="/events/{{ $event_slug }}/program">Program</a></li>
<li class="nav-item event-navigation"><a class="nav-link" href="/events/{{ $event_slug }}/register">Register</a></li>
<li class="nav-item event-navigation"><a class="nav-link" href="/events/{{ $event_slug }}/speakers">Speakers</a></li>
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<div class="row cta-row">
<!--first sponsor row-->
<div class="col-md-12">
<hr>
<h4>{{ $level.label }} Sponsors</h4>
{{- if ( $e.startdate) or (ge (dateFormat "2006-01-02" $e.startdate) (dateFormat "2006-01-02" ($.Now.Format "2006-01-02"))) -}}
{{- if ne $e.sponsors_accepted "no" -}}
Expand Down Expand Up @@ -40,3 +41,4 @@ <h4>{{ $level.label }} Sponsors</h4>
{{- end -}}
{{- end -}}
{{- end -}}
<hr><br />
33 changes: 22 additions & 11 deletions layouts/partials/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
{{/* end site data query */}}

<div class="row">

<div class="col-xs-12 col-md-8">
{{ if $e.city }}
<h2>DevOpsDays {{ $e.city }}</h2>
{{ end }}


{{ if $e.startdate }}
{{- if ne $e.startdate $e.enddate }}
{{- dateFormat "January 2" $e.startdate -}} - {{- dateFormat "2, 2006" $e.enddate -}}
Expand All @@ -17,34 +17,45 @@ <h2>DevOpsDays {{ $e.city }}</h2>
{{- end }}
{{ end }}
<br />

{{if $e.location }}
<span>{{- $e.location -}}</span>
<br />
{{ end }}

{{ if $e.description }}
{{ $e.description | markdownify }}
<br /><br />
{{ end }}
</div>

<div class="col-xs-12 col-md-4">
{{ partial "events/cta.html" . }}
</div>

<div class="col-xs-12 col-md-8">

<i>Past {{ $e.city }} Events</i><br />
{{if $e.city }}
{{- $.Scratch.Set "past-counter" 0 -}}
{{- range sort $.Site.Data.events "startdate" -}}
{{- if .startdate -}} <!-- for some reason, it bails on the city Chicago, and also Paris -->
{{- if eq (lower .city) (lower $e.city) -}}
{{- if ne .startdate $e.startdate -}}
<i>Past {{ $e.city }} Events</i><br />
{{- $.Scratch.Set "past-counter" 1 -}}
{{- end -}}
{{- end -}}
{{- if eq (lower .city) (lower $e.city)}}
{{- if ne .startdate $e.startdate -}}
<a href = "/events/{{ .name }}">{{ dateFormat "2006" .startdate }}</a> <br />
<a href = "/events/{{ .name }}">{{ dateFormat "2006" .startdate }}</a> &nbsp;&nbsp;
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
<br />
{{ end }}
{{ partial "events/cta.html" . }}
{{ if $e.description }}
{{ $e.description | markdownify }}
<br /><br />
{{ end }}


</div>
<div class="col-xs-12 col-md-4">
</div>
Expand Down