From 9a34a7eda78839f0632ea28d3e50fea126d6d691 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Tue, 3 May 2011 12:02:51 -0400 Subject: [PATCH] docs : add index pages --- _layouts/index-page.html | 17 +++++++++++++++++ _posts/demos/2010-01-01-index.yml | 7 +++++++ _posts/docs/2010-01-01-index.yml | 5 +++++ _posts/tests/2010-01-01-index.yml | 6 ++++++ index.html | 8 ++++++-- 5 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 _layouts/index-page.html create mode 100644 _posts/demos/2010-01-01-index.yml create mode 100644 _posts/docs/2010-01-01-index.yml create mode 100644 _posts/tests/2010-01-01-index.yml diff --git a/_layouts/index-page.html b/_layouts/index-page.html new file mode 100644 index 0000000..d6e5a32 --- /dev/null +++ b/_layouts/index-page.html @@ -0,0 +1,17 @@ +{% include html-head.html %} + +

{{ site.name }}

+ +

{{ page.title }}

+ + + + {% include footer.html %} + +{% include html-foot.html %} \ No newline at end of file diff --git a/_posts/demos/2010-01-01-index.yml b/_posts/demos/2010-01-01-index.yml new file mode 100644 index 0000000..cd6b18e --- /dev/null +++ b/_posts/demos/2010-01-01-index.yml @@ -0,0 +1,7 @@ +--- +title: Demos +layout: index-page +category: demos +body_class: doc +--- + diff --git a/_posts/docs/2010-01-01-index.yml b/_posts/docs/2010-01-01-index.yml new file mode 100644 index 0000000..09fdca6 --- /dev/null +++ b/_posts/docs/2010-01-01-index.yml @@ -0,0 +1,5 @@ +--- +title: Docs +layout: index-page +category: docs +--- diff --git a/_posts/tests/2010-01-01-index.yml b/_posts/tests/2010-01-01-index.yml new file mode 100644 index 0000000..6a965a0 --- /dev/null +++ b/_posts/tests/2010-01-01-index.yml @@ -0,0 +1,6 @@ +--- +title: Tests +layout: index-page +category: tests +body_class: doc +--- diff --git a/index.html b/index.html index 6f57e89..7232267 100644 --- a/index.html +++ b/index.html @@ -56,10 +56,14 @@ layout: nil
  • Powerful methods, simple syntax
  • Progressively enhanced for CSS3 transforms & transitions
  • {% for doc in site.categories.docs reversed %} -
  • Docs: {{ doc.title }}
  • + {% if doc.layout != 'index-page' %} +
  • Docs: {{ doc.title }}
  • + {% endif %} {% endfor %} {% for demo in site.categories.demos reversed %} -
  • Demo: {{ demo.title }}
  • + {% if demo.layout != 'index-page' %} +
  • Demo: {{ demo.title }}
  • + {% endif %} {% endfor %}