[PATCH aeolus-website 1/7] Adds gsg_navigation "layout" as a partial

Matt Wagner matt.wagner at redhat.com
Wed Apr 18 18:57:54 UTC 2012


---
 nanocsite/Rules                       |    2 +-
 nanocsite/layouts/gsg_navigation.haml |   23 +++++++++++++++++++++++
 nanocsite/lib/default.rb              |    1 +
 3 files changed, 25 insertions(+), 1 deletions(-)
 create mode 100644 nanocsite/layouts/gsg_navigation.haml

diff --git a/nanocsite/Rules b/nanocsite/Rules
index de34de3..54480a9 100644
--- a/nanocsite/Rules
+++ b/nanocsite/Rules
@@ -54,4 +54,4 @@ route '*' do
   end
 end
 
-layout 'default', :haml
+layout '*', :haml
diff --git a/nanocsite/layouts/gsg_navigation.haml b/nanocsite/layouts/gsg_navigation.haml
new file mode 100644
index 0000000..b356735
--- /dev/null
+++ b/nanocsite/layouts/gsg_navigation.haml
@@ -0,0 +1,23 @@
+.page-listing
+  %h3 Getting Started Guide
+
+  - pages = [ {:href => "basic_glossary.html", :title => "Basic Glossary" },
+    {:href => "configuring_aeolus.html", :title => "Configuring Aeolus" },
+    { :href => "first_login.html", :title => "First login" },
+    { :href => "configure_providers.html", :title => "Configure your Cloud Providers" },
+    { :href => "configure_cli.html", :title => "Configure the Aeolus Command Line Interface tool" },
+    { :href => "make_template.html", :title => "Create a Fedora 15 Template" },
+    { :href => "start_image.html", :title => "Start an Instance of the Image" },
+    { :href => "stop_image.html", :title => "Stop a running Instance" },
+    { :href => "cleaning_up.html", :title => "Cleaning up" } ]
+
+  %ol
+    - pages.each do |page|
+      - if page[:href] == @selected_page
+        %li= page[:title]
+      - else
+        %li
+          %a{:href => page[:href],
+             :title => page[:title] }
+            = page[:title]
+
diff --git a/nanocsite/lib/default.rb b/nanocsite/lib/default.rb
index a4df0cc..c270e76 100644
--- a/nanocsite/lib/default.rb
+++ b/nanocsite/lib/default.rb
@@ -1,2 +1,3 @@
 # All files in the 'lib' directory will be loaded
 # before nanoc starts compiling.
+include Nanoc3::Helpers::Rendering  # Needed to use partials
-- 
1.7.7.6




More information about the aeolus-devel mailing list