Skip to content

Instantly share code, notes, and snippets.

Our favorite cruise was on the <i>Explorer of the Seas</i>, --> italicize the name of a ship
which we read about in <cite>Cruising</cite> magazine, --> reference the name of a publication
and we <em>loved</em> it. --> emphasize a feeling
(<b>Note:</b> This was before everyone got all sick --> start a note with bolded text
and was throwing up <strong>everywhere</strong>.) --> make a strong statement
@neilkinnish
neilkinnish / gist:27daa4e2c7354762f7bd
Created August 1, 2014 19:26
Example of what I mean
Instead of this...
{{ i | append: "-750x510.jpg" | asset_url | image_tag }}
Do this...
{% capture newImg %}{{ i | append: "-750x510.jpg" }}{% endcapture %}
{{ newImg | asset_url | image_tag }}
@benedfit
benedfit / _critical.scss
Last active November 25, 2021 12:36
Critical CSS using Sass and Jekyll
$critical-css-only:true !default;
@mixin critical($critical-only:true){
@if (($critical-css-only and $critical-only) or (not $critical-css-only and not $critical-only)){
@content;
}
}