From 6c24f7e76eea841a12d0cde7470a6e5bdd4d35a7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 18 Jun 2015 09:22:18 +0100 Subject: [PATCH] Moved things into partials --- source/_layouts/default.html | 43 ++--------------------------------- source/_partials/footer.html | 7 ++++++ source/_partials/head.html | 23 +++++++++++++++++++ source/_partials/meetups.html | 12 ++++++++++ 4 files changed, 44 insertions(+), 41 deletions(-) create mode 100644 source/_partials/footer.html create mode 100644 source/_partials/head.html create mode 100644 source/_partials/meetups.html diff --git a/source/_layouts/default.html b/source/_layouts/default.html index 2f32e56b..94db7d61 100644 --- a/source/_layouts/default.html +++ b/source/_layouts/default.html @@ -3,29 +3,7 @@ - - - {% include 'title' %} - - {% if page.meta.description %} - - {% endif %} - - {% if page.meta.og %}{% include "og" with {og: page.meta.og} %}{% endif %} - - - - - - - {% for size in site.apple_touch_icon_sizes %} - - {% endfor %} - - {% for size in site.favicon_sizes %} - - {% endfor %} - + {% include 'head' %} {% include 'navbar' %} @@ -41,23 +19,6 @@ {# .row #} {# .container #} -
- - -
-

Meetups

-
    - {% for meetup in site.meetups %} -
  • - - {{ meetup.name }} - -
  • - {% endfor %} -
-
-
- - {% include 'footer-scripts' %} + {% include 'footer' %} diff --git a/source/_partials/footer.html b/source/_partials/footer.html new file mode 100644 index 00000000..5d582e3f --- /dev/null +++ b/source/_partials/footer.html @@ -0,0 +1,7 @@ +
+ + + {% include 'meetups' %} +
+ +{% include 'footer-scripts' %} diff --git a/source/_partials/head.html b/source/_partials/head.html new file mode 100644 index 00000000..b59e0c85 --- /dev/null +++ b/source/_partials/head.html @@ -0,0 +1,23 @@ + + {% include 'title' %} + + {% if page.meta.description %} + + {% endif %} + + {% if page.meta.og %}{% include "og" with {og: page.meta.og} %}{% endif %} + + + + + + + + {% for size in site.apple_touch_icon_sizes %} + + {% endfor %} + + {% for size in site.favicon_sizes %} + + {% endfor %} + diff --git a/source/_partials/meetups.html b/source/_partials/meetups.html new file mode 100644 index 00000000..2088f778 --- /dev/null +++ b/source/_partials/meetups.html @@ -0,0 +1,12 @@ +
+

Meetups

+
    + {% for meetup in site.meetups %} +
  • + + {{ meetup.name }} + +
  • + {% endfor %} +
+