Skip to content

Instantly share code, notes, and snippets.

<% blog.articles.select {|a| a.data.category != "projects"}[0...1].each do |article| %>
<%= image_tag "#{article.data.image}" %>
<h2><a href="<%= article.url %>"><%= article.title %></a></h2>
<% end %>
blog.sources = "articles/{year}-{month}-{day}-{title}.html"
<%= yield %>
---
layout: projects-layout
---
<% blog.articles.select {|a| a.data.category == "projects"}[0..10].each do |article| %>
<li><a href="<%= article.data.permalink %>"><%= article.title %></a></li>
<% end %>
---
title: Typography Project
date: 2014-02-12
category: projects
permalink: typography-deux
---
.sidebar {
background: #eee;
background-image: -o-linear-gradient(bottom, #F23B1 0%, #293FD5 100%);
background-image: -moz-linear-gradient(bottom, #F23B1 0%, #293FD5 100%);
background-image: -webkit-linear-gradient(bottom, #F23B1 0%, #293FD5 100%);
background-image: -ms-linear-gradient(bottom, #F23B1 0%, #293FD5 100%);
background-image: linear-gradient(to bottom, #F23B1 0%, #293FD5 100%);
border-radius: 5px;
padding: 10px;
width: 200px;
.sidebar {
padding: 10px;
width: 200px;
}
.header {
padding: 10px;
width: 1000px;
}
#sidebar .h3 { ... }
h3 { ... }
h3.special { /* Add what makes this h3 heading special */}