From 0ca1257cf4ecbea549c0587c15bebf722b9b6ac6 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Mon, 28 Apr 2014 09:52:46 +0200 Subject: implement new navigation structure (WIP) --- source/_nav_mitmachen.html.erb | 10 ++++++++++ source/_navigation.html.erb | 9 +++++---- source/layouts/layout.erb | 19 +++++++------------ source/mitmachen/gruppen.html.erb | 8 ++++++++ source/mitmachen/index.html.erb | 7 +++++++ source/mitmachen/treffen.html.erb | 8 ++++++++ 6 files changed, 45 insertions(+), 16 deletions(-) create mode 100644 source/_nav_mitmachen.html.erb create mode 100644 source/mitmachen/gruppen.html.erb create mode 100644 source/mitmachen/index.html.erb create mode 100644 source/mitmachen/treffen.html.erb (limited to 'source') diff --git a/source/_nav_mitmachen.html.erb b/source/_nav_mitmachen.html.erb new file mode 100644 index 0000000..14fe44d --- /dev/null +++ b/source/_nav_mitmachen.html.erb @@ -0,0 +1,10 @@ + diff --git a/source/_navigation.html.erb b/source/_navigation.html.erb index c7b0d88..e4bf1ba 100644 --- a/source/_navigation.html.erb +++ b/source/_navigation.html.erb @@ -1,15 +1,16 @@
- -
<%= partial "navigation" %> -
- <%= partial "banner" %> -
- <%= partial "status" %> -
+
+ <% if (section = current_page.data.section) %> + <%= partial "nav_#{section}" %> + <% end %> + +
<%= yield %>
- -
+ diff --git a/source/mitmachen/gruppen.html.erb b/source/mitmachen/gruppen.html.erb new file mode 100644 index 0000000..429e531 --- /dev/null +++ b/source/mitmachen/gruppen.html.erb @@ -0,0 +1,8 @@ +--- +section: "mitmachen" +--- + +
+

<%= lorem.paragraphs(2) %>

+

<%= lorem.paragraphs(2) %>

+
diff --git a/source/mitmachen/index.html.erb b/source/mitmachen/index.html.erb new file mode 100644 index 0000000..84f48b2 --- /dev/null +++ b/source/mitmachen/index.html.erb @@ -0,0 +1,7 @@ +--- +section: "mitmachen" +--- + +
+ <%= lorem.paragraphs(2) %> +
diff --git a/source/mitmachen/treffen.html.erb b/source/mitmachen/treffen.html.erb new file mode 100644 index 0000000..5371dc4 --- /dev/null +++ b/source/mitmachen/treffen.html.erb @@ -0,0 +1,8 @@ +--- +section: "mitmachen" +--- + +
+

<%= lorem.paragraphs(2) %>

+ "> +
-- cgit v1.2.1