From c8dede58ba12ad283e388147d2f7ed869d40b9f2 Mon Sep 17 00:00:00 2001 From: Anselm Hannemann Date: Thu, 15 Jan 2015 18:19:16 +0100 Subject: [PATCH] Add sample page and template to generator. This is a sample implementation of a handlebar template and page that gets generated as HTML through the new static site generator used to target #123. --- grunt/config.js | 2 +- src/pages/test.md | 8 ++++++++ src/templates/index.html | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/pages/test.md diff --git a/grunt/config.js b/grunt/config.js index 93391e3..d6c2999 100644 --- a/grunt/config.js +++ b/grunt/config.js @@ -104,7 +104,7 @@ module.exports = { }, options: { partialsglob: 'pages/partials/*.html', - templates: 'templates', + templates: 'src/templates', environment: 'dev' } } diff --git a/src/pages/test.md b/src/pages/test.md new file mode 100644 index 0000000..a32b62a --- /dev/null +++ b/src/pages/test.md @@ -0,0 +1,8 @@ +{ + "title" : "Test Title" +} +--- + +## Headline + +This is a test of how the markdown file works with the grunt-generator. diff --git a/src/templates/index.html b/src/templates/index.html index 5185c28..5207d45 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1 +1,3 @@ -

Hello world! This is INIT.

+

{{title}}

+ +{{body}}