-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from devopsdays/mattstratton/refactor-event-slug
Refactor for event path
- Loading branch information
Showing
40 changed files
with
65 additions
and
30 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
content/events/2016-washingtondc/welcome.md → content/events/2016-washington-dc/welcome.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ cfp_date_end: 2016-06-01 | |
cfp_date_announce: 2016-07-01 | ||
coordinates: "41.882219, -87.640530" | ||
location: "Summit West" | ||
navigationelements: ["welcome", "contact", "location", "program", "propose", "proposals", "registration", "conduct", "sponsor"] | ||
navigationelements: ["welcome", "contact", "location", "program", "propose", "proposals", "conduct", "sponsor"] | ||
team: ["Jerry Cattell", "Brian Devlin", "Michael Lanyon", "Aaron Lindstrom", "Chris Read", "Kevin Reedy", "Sasha Rosenbaum", "Matt Stratton"] | ||
organizer_email: "[email protected]" | ||
proposal_email: "[email protected]" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
data/events/2016washingtondc.yml → data/events/2016-washington-dc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{{ $event := (print .Page.Params.year (lower .Page.Params.city)) }} | ||
{{ $e := (index $.Page.Site.Data.events $event) }} | ||
|
||
{{ $cfp_date_start := $e.organizer_email }} | ||
|
||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $e := (index .Page.Site.Data.events $event_slug) }} | ||
<a href='mailto:{{ $e.organizer_email }}'>{{ $e.organizer_email }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{{ $event := (print .Page.Params.year (lower .Page.Params.city)) }} | ||
{{ $e := (index $.Page.Site.Data.events $event) }} | ||
|
||
{{ $cfp_date_start := $e.proposal_email }} | ||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $e := (index .Page.Site.Data.events $event_slug) }} | ||
|
||
<a href='mailto:{{ $e.proposal_email }}'>{{ $e.proposal_email }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{{ $event := (print .Page.Params.year (lower .Page.Params.city)) }} | ||
{{ $e := (index $.Page.Site.Data.events $event) }} | ||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $e := (index .Page.Site.Data.events $event_slug) }} | ||
{{ $enddate := $e.enddate}} | ||
{{ dateFormat "Monday, Jan 2, 2006" $enddate }} | ||
|
||
{{ if isset $e "enddate" }} | ||
{{ dateFormat "Monday, Jan 2, 2006" $enddate }} | ||
{{ else }} | ||
TBD | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<a href = "/events/{{ .Page.Params.year }}-{{ lower .Page.Params.city }}/{{ .Get "page" }}">{{ .Get "text" }}</a> | ||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
|
||
<a href = "/events/{{ $event_slug }}/{{ .Get "page" }}">{{ .Get "text" }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{ $event := (print .Page.Params.year (lower .Page.Params.city)) }} | ||
{{ $e := (index $.Page.Site.Data.events $event) }} | ||
<a href = "/events/{{ .Page.Params.year }}-{{ lower .Page.Params.city }}/location">{{ $e.location }}</a> | ||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $e := (index .Page.Site.Data.events $event_slug) }} | ||
<a href = "/events/{{ $event_slug }}/location">{{ $e.location }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<img alt="DevOpsDays {{ .Page.Params.city }} {{ .Page.Params.year }}" src="/img/events/{{ .Page.Params.year }}-{{lower .Page.Params.city }}/logo.png"/> | ||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $e := (index .Page.Site.Data.events $event_slug) }} | ||
|
||
<img alt="DevOpsDays {{ $e.city }} {{ $e.year }}" src="/img/events/{{ $event_slug }}/logo.png"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{{ $event := (print .Page.Params.year (lower .Page.Params.city)) }} | ||
{{ $e := (index $.Page.Site.Data.events $event) }} | ||
{{ $path := split .Page.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $e := (index .Page.Site.Data.events $event_slug) }} | ||
|
||
{{ $startdate := $e.startdate}} | ||
{{ dateFormat "Monday, Jan 2, 2006" $startdate }} | ||
|
||
{{ if isset $e "startdate" }} | ||
{{ dateFormat "Monday, Jan 2, 2006" $startdate }} | ||
{{ else }} | ||
TBD | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{ $path := split $.Source.File.Path "/" }} | ||
{{ $event_slug := index $path 1 }} | ||
{{ $event_slug }} |