From 8f542e8455cf04d73a973601e3126f745dad27c8 Mon Sep 17 00:00:00 2001 From: Matt Stratton Date: Mon, 7 Mar 2016 00:29:26 -0600 Subject: [PATCH] add error checking for cfp shortcode --- content/events/2016-kiel/propose.md | 33 ++++++++++++++++++++++++++ content/events/sample-event/propose.md | 2 -- layouts/shortcodes/cfp_dates.html | 19 ++++++++------- 3 files changed, 44 insertions(+), 10 deletions(-) diff --git a/content/events/2016-kiel/propose.md b/content/events/2016-kiel/propose.md index 9dfdc47ea74..e51638c2805 100644 --- a/content/events/2016-kiel/propose.md +++ b/content/events/2016-kiel/propose.md @@ -8,3 +8,36 @@ title = "propose" type = "event" +++ + +{{< cfp_dates >}} + +
+There are three ways to propose a session: +
    +
  1. A proposal for a talk/panel during the conference part : these are 30 minute slots that will have the full attention of all attendees, as everybody will be in that one room.
  2. +
  3. An Ignite talk that will be presented during the Ignite sessions. These are 5 minutes slots with slides changing every 15 seconds (20 slides total) which are also presented to all attendees in one room
  4. +
  5. Open Space session : even without a prepared presentation we welcome the discussion and interaction by having people propose a session on the fly during Open Space. Check the Open Space explanation for more information. +
+ +### Even if you don't propose, please consider {{< event_link page="proposals" text="commenting on proposals submitted by others" >}} + +Our main criteria to make it to the top selection are: + +- _original content_: content not yet presented at other conferences, or a new angle to an existing problem +- _new presenters_: people who are new to the space and have insightful stuff to say; we want to hear everybody's voice +- _no vendor pitches_: as much as we value vendors and sponsors, we just don't think this is the right forum. You can demo at your table or during Open Space. + +How to submit a proposal: Send an email to [{{< email_proposals >}}] with the following information +
    +
  1. Proposal working title (can be changed later)
  2. +
  3. Type (presentation, panel discussion, moderated general discussion, debate, etc.,ignite)
  4. +
  5. Description or abstract
  6. +
+Rules: + diff --git a/content/events/sample-event/propose.md b/content/events/sample-event/propose.md index 7e3c4a741e9..03db882700e 100644 --- a/content/events/sample-event/propose.md +++ b/content/events/sample-event/propose.md @@ -6,9 +6,7 @@ title = "propose" type = "event" +++ -
{{< cfp_dates >}} -

There are three ways to propose a session: diff --git a/layouts/shortcodes/cfp_dates.html b/layouts/shortcodes/cfp_dates.html index a31ae6675ee..b90144de670 100644 --- a/layouts/shortcodes/cfp_dates.html +++ b/layouts/shortcodes/cfp_dates.html @@ -1,12 +1,15 @@ {{ $event := (print .Page.Params.year (lower .Page.Params.city)) }} {{ $e := (index $.Page.Site.Data.events $event) }} -{{ $cfp_date_start := $e.cfp_date_start }} -{{ $cfp_date_end := $e.cfp_date_end }} -{{ $cfp_date_announce := $e.cfp_date_announce }} +{{ if isset $e "cfp_date_start" }} -
-Call for proposals opens {{ dateFormat "Monday, Jan 2, 2006" $cfp_date_start }}.
-Call for proposals closes {{ dateFormat "Monday, Jan 2, 2006" $cfp_date_end }}.
-Selected proposals will be announced on {{ dateFormat "Monday, Jan 2, 2006" $cfp_date_announce }}. -
+ {{ $cfp_date_start := $e.cfp_date_start }} + {{ $cfp_date_end := $e.cfp_date_end }} + {{ $cfp_date_announce := $e.cfp_date_announce }} + +
+ Call for proposals opens {{ dateFormat "Monday, Jan 2, 2006" $cfp_date_start }}.
+ Call for proposals closes {{ dateFormat "Monday, Jan 2, 2006" $cfp_date_end }}.
+ Selected proposals will be announced on {{ dateFormat "Monday, Jan 2, 2006" $cfp_date_announce }}. +
+{{ end }}