Improve section classification

This commit is contained in:
Aaron O'Mullan
2014-03-31 01:34:37 -07:00
parent 7ab78b420a
commit d18da55a18
+2 -2
View File
@@ -38,9 +38,9 @@ function parsePage(src) {
section.type = sectionType(section);
return section;
})
.map(function(section) {
.map(function(section, idx) {
// Transform given type
if(section.type === 'exercise') {
if(section.type === 'exercise' && (idx % 2) == 1) {
return {
type: section.type,
};