From 60fc4ce43a0dd360a5f8e20d7151f153bfe19489 Mon Sep 17 00:00:00 2001 From: Capi Etheriel Date: Mon, 3 Dec 2012 12:37:55 -0200 Subject: [PATCH] turn html5 boilerplate into a layout set hbp5 as the DEFAULT layout use titles from YAML options --- .../middleman-core/templates/html5/source/index.html.erb | 6 ++++++ .../html5/source/{index.html => layouts/layout.erb} | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 middleman-core/lib/middleman-core/templates/html5/source/index.html.erb rename middleman-core/lib/middleman-core/templates/html5/source/{index.html => layouts/layout.erb} (92%) diff --git a/middleman-core/lib/middleman-core/templates/html5/source/index.html.erb b/middleman-core/lib/middleman-core/templates/html5/source/index.html.erb new file mode 100644 index 00000000..9af2d2d5 --- /dev/null +++ b/middleman-core/lib/middleman-core/templates/html5/source/index.html.erb @@ -0,0 +1,6 @@ +--- +title: HTML5 Boilerplate Middleman +--- + + +

Hello world! This is HTML5 Boilerplate.

diff --git a/middleman-core/lib/middleman-core/templates/html5/source/index.html b/middleman-core/lib/middleman-core/templates/html5/source/layouts/layout.erb similarity index 92% rename from middleman-core/lib/middleman-core/templates/html5/source/index.html rename to middleman-core/lib/middleman-core/templates/html5/source/layouts/layout.erb index fe4527a1..96b3da22 100755 --- a/middleman-core/lib/middleman-core/templates/html5/source/index.html +++ b/middleman-core/lib/middleman-core/templates/html5/source/layouts/layout.erb @@ -6,7 +6,8 @@ - + + <%= data.page.title || "HTML5 Boilerplate" %> @@ -21,8 +22,7 @@

You are using an outdated browser. Upgrade your browser today or install Google Chrome Frame to better experience this site.

- -

Hello world! This is HTML5 Boilerplate.

+ <%= yield %>