Files
markamoser.com/source/layouts/blog.html.haml
2014-09-16 21:13:50 -05:00

49 lines
1.5 KiB
Plaintext

!!!
/[if lt IE 7] <html class="no-js lt-ie9 lt-ie8 lt-ie7">
/ [if IE 7] <html class="no-js lt-ie9 lt-ie8"> <![endif]
/ [if IE 8] <html class="no-js lt-ie9"><![endif]
%html
%head
%meta{charset: "utf-8"}/
%meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/
%meta{content: "width=device-width,initial-scale=1.0", name: "viewport"}/
%meta{content: page_description, name: "description"}/
%meta{content: page_keywords, name: "keywords"}/
= feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed"
%title
= page_title
- # Blog Title#{' - ' + current_article.title unless current_article.nil?}
= stylesheet_link_tag "all"
= javascript_include_tag "vendor/modernizr"
= partial "shared/analytics"
= yield_content :head
%body{class: page_classes}
/[if lt IE 8]
<haml_loud> partial "shared/compatibility-notice" </haml_loud>
= partial "shared/header"
- if current_page.data.poster.present?
.poster
= tag :img, src: current_page.data.poster
.container
.row
.col-sm-9#main{:role => "main"}
= yield
.col-sm-3
.spacer-50
.side-links
%ul
%li.bolder Recent Posts
- blog.articles[0...10].each do |article|
%li
= link_to article.title, article
%ul
%li Tags
- blog.tags.each do |tag, articles|
%li= link_to "#{tag}", tag_path(tag)
.spacer-50
= javascript_include_tag "app"