-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.haml
More file actions
28 lines (26 loc) · 894 Bytes
/
index.haml
File metadata and controls
28 lines (26 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
!!!
%head
%link{ rel: 'stylesheet', href: 'css/styles.css', type: 'text/css' }
%script{ src: 'js/jquery-2.2.2.min.js'}
:javascript
blog = {
adminMode: false,
colors: ["#EAAE15", "#178290", "#DF5A8C", "#E24F5B", "#30A5C0", "#BFC030", "#F4CC15", "#F4840D"]
}
%script{ src: 'bundle.js', type: 'text/javascript' }
:javascript
myBlog = new blog.Posts()
%body
#container
#header
%h1#blog-title
%a{ href: 'javascript:void(0)' } This Is My Blog
%p#admin-buttons
%a#create{ href: 'javascript: myBlog.createNew(); void(0)', style: 'display: none' } New Post
%a#toggle-admin{ href: 'javascript: myBlog.toggleAdminMode(); void(0) ' } Turn on Admin Mode
#posts
#current-post
#older-posts
%h1 Older Posts
#load-error{ style: 'display: none' }
%p There was a problem loading posts :( }