summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/page.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/page.js b/lib/page.js
index 7288fb9..047f3e4 100644
--- a/lib/page.js
+++ b/lib/page.js
@@ -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,
};