         </div>
         """)
 
-      if conf.talks
-        conf.talks.forEach (talk) ->
-          talkID = confID + '/' + slugify talk.title
+      if event.talks
+        event.talks.forEach (talk) ->
+          talkID = eventID + '/' + slugify talk.title
 
           speaker = if talk.speaker
             """

    else
      ""

    for label, conf of year
      continue unless new Date(conf.end) > today || yearOnly

      numberOfEvents += 1

      confID = prefix + slugify label

      location = if conf.location
        """
        <h3 class="location">
          <a href="https://maps.google.com/maps?q=#{ conf.location }" target="_blank">
            #{ conf.location }
          </a>
        </h3>
        """

      description = if conf.description
        """
        <div class="description">#{ conf.description }</div>
        """

      confEnd = if conf.end
          """
                  -
                  <abbr class="dtend" title="#{ conf.end }">#{
                    humanizeDate conf.end
                  }</abbr>
          """
        else
          ''

      $conf = $("""
        <div class="conference">
          <a class="top" href="##{ prefix }quicklinks">Back to top</a>
          <div class="vevent">
            <h2 class="event summary" id="#{ confID }">
              <a href="##{ confID }" title="Link to this conference directly">
                #{ conf.name }
              </a>
            </h2>
            <div class="conference-info">
              #{ location || '' }
              <h3 class="date">
                <abbr class="dtstart" title="#{ conf.start }">#{ 
                  humanizeDate conf.start
                  }</abbr>
                #{ confEnd }
              </h3>
              #{ description || '' }
            </div>

            </div>
            """)

          $event.append($talk)

      $allEvents.append($event)

  $allEvents.prepend(makeQuickLinks $allEvents)

  $list.html($allEvents.children())

  scrollTo(document.location.hash)

