From fd2e44d152cffe703d27fea73a91fafc5f932bf4 Mon Sep 17 00:00:00 2001 From: Hariadi Hinta Date: Mon, 17 Mar 2014 09:06:46 +0800 Subject: [PATCH] fix handlebars context not showing --- app/templates/_layouts/handlebars-default.html | 4 ++-- app/templates/_layouts/handlebars.html | 12 ------------ package.json | 2 +- 3 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 app/templates/_layouts/handlebars.html diff --git a/app/templates/_layouts/handlebars-default.html b/app/templates/_layouts/handlebars-default.html index 7c35986..8cdddbe 100644 --- a/app/templates/_layouts/handlebars-default.html +++ b/app/templates/_layouts/handlebars-default.html @@ -7,8 +7,8 @@

Blog Posts

{{#if articles }} {{#each articles }} -

{{ article.title }}

- +

{{ title }}

+ {{/each}} {{/if}} diff --git a/app/templates/_layouts/handlebars.html b/app/templates/_layouts/handlebars.html deleted file mode 100644 index b39d581..0000000 --- a/app/templates/_layouts/handlebars.html +++ /dev/null @@ -1,12 +0,0 @@ - - - <%= _.capitalize(msTitle) %> - {{ title }} - - -

{{ title }}

- - - {{{ contents }}} - - - diff --git a/package.json b/package.json index 8843bde..7aee674 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-metalsmith", - "version": "0.2.0", + "version": "0.2.1", "homepage": "https://github.com/hariadi/generator-metalsmith", "description": "Yeoman generator for Metalsmith", "author": {