summaryrefslogtreecommitdiff
path: root/_layouts/framework.html
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-11 12:19:34 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-11 12:21:17 +0800
commit61eae5c5f9881cab29712f6e696085baa977e1f9 (patch)
treebb301b58b94fee5dcefbdfae8f0c8fc13ee5bd21 /_layouts/framework.html
parentcd3a8163dd997d0a7c4d320816651efa8f7dce60 (diff)
release: v1.0.0
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>