title | image | |||||
---|---|---|---|---|---|---|
example srcset implementation |
|
{% assign image = page.image[0] %} {% include srcset.html %}
#!/usr/bin/env ruby | |
require Dir | |
unless ARGV[0] | |
puts 'Usage: newpost "the post title"' | |
exit(-1) | |
end | |
blog_root = "/Users/jrk/proj/blog" |
require 'rake' | |
task :default => :compile_templates | |
task :clean_compiled_file do | |
if File.exist?('release.js') | |
File.unlink('release.js') | |
end | |
end |
alistapart.com | |
animoto.com | |
behance.net | |
cato.org | |
ceskatelevize.cz | |
creativemarket.com | |
dribbble.com | |
evernote.com | |
extra.cz | |
flavorwire.com |
--- | |
layout: invoice | |
status: paid | unpaid | late | |
deliverables: | |
item: | |
description: made site responsive | |
price: $1,000 | |
item: | |
description: changed logo color | |
price: $300 |
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AddPermissions", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
title | image | |||||
---|---|---|---|---|---|---|
example srcset implementation |
|
{% assign image = page.image[0] %} {% include srcset.html %}
You might be expecting a long rant on why code style matters and tabs are sinful in your JavaScript code. This isn't that, thankfully.
If you've been snooping around ★★REDACTED★★★, you may have noticed that, in contrast to our other projects, it uses 2 spaces for indentation instead of 4. This was a decision Eden, Lauren, and I made, given that we kind of just started out that way, and that two-tab indentation makes our somewhat absurd functional chains easier on the eyes and the widths.
This also allows us to say that we simply use the Airbnb code style rather than saying we use it with a carveout as we've written for mapbox.js and iD.
This isn't an announcement that we're switching to 2 spaces, but rather a statement of how we treat code style and deal with these differences:
/* | |
Show a progress element for any form submission via POST. | |
Prevent the form element from being submitted twice. | |
*/ | |
(function (win, doc) { | |
'use strict'; | |
if (!doc.querySelectorAll || !win.addEventListener) { | |
// doesn't cut the mustard. | |
return; | |
} |
.table-list-triage { | |
display: none; | |
} | |
.triage-mode .table-list-non-triage, .triage-mode .table-list-filters { | |
display: none; | |
} | |
.boxed-group-list>li.approved .btn-sm, .boxed-group-list>li.rejected .btn-sm { | |
display: none; | |
} | |
.repo-list .participation-graph.disabled { |
# An example Jekyll Liquid tag. Utilizes the new plugin system. | |
# | |
# 1. Make a _plugins directory in your jekyll site, and put this class in a file there. | |
# 2. In anyone of your pages, you can use the 'render_time' liquid tag like so: | |
# {% render_time Page generated at: %} | |
module Jekyll | |
class RenderTimeTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) |