mirror of
https://github.com/danog/sass-site.git
synced 2024-12-12 17:37:36 +01:00
c5b0886812
I plan to phase out the idea of a version name in favor of a purely-numeric identifier.
84 lines
3.1 KiB
Plaintext
84 lines
3.1 KiB
Plaintext
!!!5
|
|
%html.no-js(lang="en"){:class => data.page.head_classes}
|
|
%head
|
|
%meta(charset="utf-8")/
|
|
%meta(http-equiv="X-UA-Compatible" content="IE=edge")/
|
|
%title= page_title
|
|
= partial "layouts/head/meta"
|
|
= partial "layouts/head/link"
|
|
= partial "layouts/head/css"
|
|
= partial "layouts/head/js"
|
|
|
|
%body{class: page_classes}
|
|
.page
|
|
= partial "layouts/roles/alert"
|
|
.pop-stripe
|
|
= partial "layouts/regions/banner"
|
|
= partial "layouts/regions/page_header"
|
|
|
|
.body
|
|
.container
|
|
.content
|
|
- if content_for?(:introduction)
|
|
%p.introduction= yield_content :introduction
|
|
|
|
%main.main.content-primary(role="main")
|
|
= 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.gsub!(/(\/)+$/,'')}"
|
|
|
|
|
|
- if content_for?(:complementary)
|
|
.complementary.content-secondary(role="complementary")= yield_content :complementary
|
|
|
|
|
|
- if content_for?(:section_middle)
|
|
%section.section-middle
|
|
.container= yield_content :section_middle
|
|
|
|
.alert.release
|
|
.container
|
|
%ul
|
|
- if data.respond_to?(:version)
|
|
%li Current Release: <span class="release-name">#{data.version.number}</span>
|
|
- else
|
|
%li Current Release: <span class="release-name">???</span>
|
|
%li= link_to "Release Notes", "/documentation/file.SASS_CHANGELOG.html"
|
|
%li= link_to "Fork on GitHub", "https://github.com/sass/sass"
|
|
%li= link_to "Implementation Guide", "implementation"
|
|
|
|
- if content_for?(:section_bottom)
|
|
%section.section-bottom
|
|
.container= yield_content :section_bottom
|
|
|
|
= partial "layouts/regions/contentinfo"
|
|
= partial "layouts/foot/js"
|