diff --git a/src/index.py b/src/index.py index fd73979..04aae79 100644 --- a/src/index.py +++ b/src/index.py @@ -1,7 +1,5 @@ from bottle import route, run, template -nav = - @route('/') def index(): """home page""" diff --git a/src/views/footer.tpl b/src/views/footer.tpl new file mode 100644 index 0000000..72980ed --- /dev/null +++ b/src/views/footer.tpl @@ -0,0 +1,6 @@ + + diff --git a/src/views/frame.tpl b/src/views/frame.tpl new file mode 100644 index 0000000..50a526b --- /dev/null +++ b/src/views/frame.tpl @@ -0,0 +1,17 @@ + + + +% include('header.tpl') + + +
+% include('logo-bar.tpl') +% include('nav.tpl') + +{{!base}} + +
+ +% include('footer.tpl') + + diff --git a/src/views/header.tpl b/src/views/header.tpl new file mode 100644 index 0000000..2cfdc85 --- /dev/null +++ b/src/views/header.tpl @@ -0,0 +1,3 @@ + chimchooree's dev space - blessfrey + + diff --git a/src/views/index.tpl b/src/views/index.tpl index 8279c9f..1d55b68 100644 --- a/src/views/index.tpl +++ b/src/views/index.tpl @@ -1,27 +1,5 @@ - - - - - chimchooree's dev space - blessfrey - - - - - - - -
-
- blessfrey.me
-
- - - - - - {{nav}} - +% rebase('frame.tpl')
@@ -45,12 +23,3 @@
.            ★            ..             •           .            ☆
-
- - - - diff --git a/src/views/index.tpl.old b/src/views/index.tpl.old new file mode 100644 index 0000000..ccdf933 --- /dev/null +++ b/src/views/index.tpl.old @@ -0,0 +1,37 @@ + + + +{{header}} + + +
+{{logo-bar}} +{{nav}} +
+ +
+ +
+ +
+ +
+ + + +
+ +
+ +
+
.      •        . news ☆            ..   .
+
+ {{news}} +
+
.            ★            ..             •           .            ☆
+
+
+ +{{footer}} + + diff --git a/src/views/logo-bar.tpl b/src/views/logo-bar.tpl new file mode 100644 index 0000000..d704897 --- /dev/null +++ b/src/views/logo-bar.tpl @@ -0,0 +1,6 @@ + +
+ blessfrey.me
+
+ + diff --git a/src/views/nav.tpl b/src/views/nav.tpl new file mode 100644 index 0000000..dc2f9e8 --- /dev/null +++ b/src/views/nav.tpl @@ -0,0 +1,25 @@ + + +