about summary refs log tree commit diff stats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/blogs/_blog.html.haml10
-rw-r--r--app/views/layouts/application.html.haml39
2 files changed, 31 insertions, 18 deletions
diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml index 91b1d20..317ef1f 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml
@@ -1,3 +1,9 @@
1%article#blog-post 1%article#blog-post
2 %h2#blog-title= blog.title 2 %header
3 %section#blog-content.entry-content= blog.body.html_safe 3 .post-calendar{ class: "post-date-#{(blog.published_at.year - 2007) % 4 + 1}" }
4 %span.post-month= blog.published_at.strftime("%^b")
5 %span.post-day= blog.published_at.day
6 .blog-title
7 %h2= blog.title
8 .post-author Hatkirby
9 %blockquote#blog-content.entry-content.bubble.rounded.bottom= blog.body.html_safe
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index db45235..d529af6 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml
@@ -11,19 +11,26 @@
11 - if flash[:notice] 11 - if flash[:notice]
12 %div#flash.flash-notice= flash[:notice] 12 %div#flash.flash-notice= flash[:notice]
13 #container 13 #container
14 #sidebar 14 #page-header
15 .sidebar-module 15 %header#banner
16 %h2 I'm Starlight. 16 %h1= link_to "Four Island", root_url
17 %p Coding is what I do. I make a lot of things, including Twitter bots. I really like Pokémon, and I write about it a lot. 17 #page-body
18 %p B.S. in CS, Carnegie Mellon 2017 18 #sidebar
19 .sidebar-module 19 .sidebar-module
20 %h2 Meta 20 %blockquote.pimped.bubble.rounded.bottom
21 %ul 21 %h2 I'm Hatkirby.
22 - if not user_signed_in? 22 %p Coding is what I do. I make a lot of things, including Twitter bots. I really like Pokémon, and I write about it a lot.
23 %li= link_to "Log in", new_user_session_path 23 %p B.S. in CS, Carnegie Mellon 2017
24 - if user_signed_in? 24 %cite.bubble
25 %li= link_to "Admin", admin_url 25 <strong>Hatkirby</strong> on Four Island
26 %li= link_to "Log out", destroy_user_session_path, method: :delete 26 .sidebar-module
27 #main 27 .bubble.rounded
28 %header#banner= link_to "feffernoo.se", root_url 28 %h2 Meta
29 #content= yield 29 %ul
30 - if not user_signed_in?
31 %li= link_to "Log in", new_user_session_path
32 - if user_signed_in?
33 %li= link_to "Admin", admin_url
34 %li= link_to "Log out", destroy_user_session_path, method: :delete
35 #main
36 #content= yield