add announcements and make the github api calls more robust

This commit is contained in:
Michael Q Larson
2015-02-16 17:48:42 -08:00
parent 762ee8aa26
commit d279ac6d1b
6 changed files with 47 additions and 39 deletions

View File

@@ -8,6 +8,16 @@ block content
var challengeName = 'Learn to code'
.row
.col-xs-12.col-sm-12.col-md-6
.panel.panel-info
.panel-heading.landing-panel-heading.text-center Announcements
.panel-body
.landing-panel-body.text-center
for announcement in announcements
h2
if (announcement.length > 1)
a(href=announcement[1])= announcement[0]
else
= announcement[0]
include ../partials/faq
.col-xs-12.col-sm-12.col-md-6
.panel.panel-info