Skip to content

Commit

Permalink
actually render tutorial content (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Aug 3, 2015
1 parent 620c85e commit 651988d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/publishjob.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ PublishJob.prototype.generateTutorials = function(tutorials) {
pageTitle: title,
pageTitlePrefix: this.pageTitlePrefix,
header: title,
content: child.parse(),
children: child.children
tutorialContent: child.content,
tutorialChildren: child.children
};
var url = helper.tutorialToUrl(child.name);

Expand Down
6 changes: 3 additions & 3 deletions views/layouts/tutorial.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{{#content 'body-banner'}}{{/content}}
{{#content 'body-main-content'}}
{{#block 'body-tutorial-header'}}
{{#any children}}
{{#any tutorialChildren}}
<ul>
{{#each children}}
{{#each tutorialChildren}}
<li>{{tutorialLink this.name}}</li>
{{/each}}
</ul>
Expand All @@ -13,7 +13,7 @@
{{/block}}
{{#block 'body-tutorial-content'}}
<article>
{{content}}
{{#markdown}}{{tutorialContent}}{{/markdown}}
</article>
{{/block}}
{{/content}}
Expand Down

0 comments on commit 651988d

Please sign in to comment.