sass-site/source/layouts/styleguide.haml
2013-10-09 06:30:53 -04:00

33 lines
1.1 KiB
Plaintext

- wrap_layout :layout_2_column do
= yield
- if current_page.data.previous_page_url or current_page.data.next_page_url
%footer
%ul.pager
- if current_page.data.previous_page_url
%li.previous
- if current_page.data.previous_page_url == "index"
- previous = ""
- else
- previous = current_page.data.previous_page_url
= link_to "/styleguide/" + previous do
←
= current_page.data.previous_page_name
- if current_page.data.next_page_url
%li.next
= link_to "/styleguide/" + current_page.data.next_page_url do
= current_page.data.next_page_name
→
- content_for :complementary do
- root_url = data.sitemap.url
%h3= link_to "Style Guide", "/styleguide"
%ul
- sitemap.resources.each do |page|
- if page.url =~ /styleguide/
- unless page.url =~ /assets/
- unless page.data.title == "Style Guide"
- unless page.data.title == "Responsive Test"
%li= link_to "#{page.data.title}", "#{root_url}#{page.url}"