summaryrefslogtreecommitdiff
path: root/_layouts/framework.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/framework.html')
-rw-r--r--_layouts/framework.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/_layouts/framework.html b/_layouts/framework.html
new file mode 100644
index 0000000..f7186c6
--- /dev/null
+++ b/_layouts/framework.html
@@ -0,0 +1,35 @@
+---
+layout: default
+---
+
+<div class="framework">
+ <section class="main">
+
+ {{ content }}
+
+ </section>
+ <section class="sidebar" style="margin-left: 15px;">
+ <!-- Get sidebar items -->
+ {%- if page.sidebar -%}
+ {%- assign sidebar = page.sidebar -%}
+ {%- elsif site.defaults[page.layout].sidebar -%}
+ {%- assign sidebar = site.defaults[page.layout].sidebar -%}
+ {%- elsif layout.sidebar -%}
+ {%- assign sidebar = layout.sidebar -%}
+ {%- endif -%}
+
+ {%- for item in sidebar -%}
+
+ {%- assign file = item -%}
+ {%- assign array = file | split: '.' -%}
+ {%- if array.size == 1 -%}
+ {%- assign file = file | append: '.html' -%}
+ {%- endif -%}
+
+ {%- assign file = 'sidebar/' | append: file -%}
+
+ {%- include {{ file }} %}
+
+ {%- endfor -%}
+ </section>
+<div>