From 3b97799837681735b4a8e8977a16e8a1ee01e3f7 Mon Sep 17 00:00:00 2001 From: Joel Glovier Date: Sat, 15 Feb 2014 22:53:48 -0500 Subject: [PATCH] Separate global components into includes for convenience, and to familiarize users with includes structure --- lib/site_template/_includes/footer.html | 15 +++++++++++ lib/site_template/_includes/head.html | 13 +++++++++ lib/site_template/_includes/header.html | 4 +++ lib/site_template/_layouts/default.html | 35 ++++--------------------- 4 files changed, 37 insertions(+), 30 deletions(-) create mode 100644 lib/site_template/_includes/footer.html create mode 100644 lib/site_template/_includes/head.html create mode 100644 lib/site_template/_includes/header.html diff --git a/lib/site_template/_includes/footer.html b/lib/site_template/_includes/footer.html new file mode 100644 index 00000000..3f089589 --- /dev/null +++ b/lib/site_template/_includes/footer.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/lib/site_template/_includes/head.html b/lib/site_template/_includes/head.html new file mode 100644 index 00000000..58fe7f3d --- /dev/null +++ b/lib/site_template/_includes/head.html @@ -0,0 +1,13 @@ + + + + {{ page.title }} + + + + + + + + + \ No newline at end of file diff --git a/lib/site_template/_includes/header.html b/lib/site_template/_includes/header.html new file mode 100644 index 00000000..6192b8d4 --- /dev/null +++ b/lib/site_template/_includes/header.html @@ -0,0 +1,4 @@ +
+

{{ site.name }}

+ home +
\ No newline at end of file diff --git a/lib/site_template/_layouts/default.html b/lib/site_template/_layouts/default.html index 22e7e3f2..947f3879 100644 --- a/lib/site_template/_layouts/default.html +++ b/lib/site_template/_layouts/default.html @@ -1,43 +1,18 @@ - - - - {{ page.title }} - - - + {% include head.html %} - - - -
- + + {% include header.html %} {{ content }} - + {% include footer.html %} +