diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..e8e2312 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +danbarber.me diff --git a/Gemfile b/Gemfile index 8241201..c8fb566 100644 --- a/Gemfile +++ b/Gemfile @@ -8,6 +8,10 @@ gem 'jekyll-assets' gem 'octopress', '~> 3.0.0.rc.5' gem 'octopress-deploy', '~> 1.0.0.rc.2' +gem 'kramdown', '~> 1.3.3' + +gem 'facets' + gem 'uglifier' gem 'sass' gem 'bourbon' diff --git a/Gemfile.lock b/Gemfile.lock index 22ca88c..5bda1a8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,6 +11,7 @@ GEM commander (4.1.6) highline (~> 1.6.11) execjs (2.0.2) + facets (2.9.3) fast-stemmer (1.0.2) ffi (1.9.3) highline (1.6.21) @@ -30,6 +31,7 @@ GEM jekyll (~> 1.0) sprockets (~> 2.10) json (1.8.1) + kramdown (1.3.3) liquid (2.5.5) listen (1.3.1) rb-fsevent (>= 0.9.3) @@ -79,8 +81,10 @@ PLATFORMS DEPENDENCIES bourbon + facets jekyll jekyll-assets + kramdown (~> 1.3.3) octopress (~> 3.0.0.rc.5) octopress-deploy (~> 1.0.0.rc.2) rake diff --git a/_assets/fonts/icomoon.dev.svg b/_assets/fonts/icomoon.dev.svg new file mode 100644 index 0000000..5716f8b --- /dev/null +++ b/_assets/fonts/icomoon.dev.svg @@ -0,0 +1,38 @@ + + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + \ No newline at end of file diff --git a/_assets/fonts/icomoon.eot b/_assets/fonts/icomoon.eot new file mode 100644 index 0000000..9c46b6b Binary files /dev/null and b/_assets/fonts/icomoon.eot differ diff --git a/_assets/fonts/icomoon.svg b/_assets/fonts/icomoon.svg new file mode 100644 index 0000000..dcee0bc --- /dev/null +++ b/_assets/fonts/icomoon.svg @@ -0,0 +1,38 @@ + + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + \ No newline at end of file diff --git a/_assets/fonts/icomoon.ttf b/_assets/fonts/icomoon.ttf new file mode 100644 index 0000000..b465652 Binary files /dev/null and b/_assets/fonts/icomoon.ttf differ diff --git a/_assets/fonts/icomoon.woff b/_assets/fonts/icomoon.woff new file mode 100644 index 0000000..0ca8141 Binary files /dev/null and b/_assets/fonts/icomoon.woff differ diff --git a/_assets/icons/apple-touch-icon-114x114.png b/_assets/icons/apple-touch-icon-114x114.png new file mode 100644 index 0000000..9357dc4 Binary files /dev/null and b/_assets/icons/apple-touch-icon-114x114.png differ diff --git a/_assets/icons/apple-touch-icon-144x144.png b/_assets/icons/apple-touch-icon-144x144.png new file mode 100644 index 0000000..ad5a838 Binary files /dev/null and b/_assets/icons/apple-touch-icon-144x144.png differ diff --git a/_assets/icons/apple-touch-icon-72x72.png b/_assets/icons/apple-touch-icon-72x72.png new file mode 100644 index 0000000..6a4c01a Binary files /dev/null and b/_assets/icons/apple-touch-icon-72x72.png differ diff --git a/_assets/icons/apple-touch-icon.png b/_assets/icons/apple-touch-icon.png new file mode 100644 index 0000000..4ef9384 Binary files /dev/null and b/_assets/icons/apple-touch-icon.png differ diff --git a/_assets/icons/favicon.ico b/_assets/icons/favicon.ico new file mode 100644 index 0000000..51e6062 Binary files /dev/null and b/_assets/icons/favicon.ico differ diff --git a/_assets/icons/speeddial-icon.png b/_assets/icons/speeddial-icon.png new file mode 100644 index 0000000..b9ef6d0 Binary files /dev/null and b/_assets/icons/speeddial-icon.png differ diff --git a/_assets/icons/win8-pinsite.png b/_assets/icons/win8-pinsite.png new file mode 100644 index 0000000..6ccf248 Binary files /dev/null and b/_assets/icons/win8-pinsite.png differ diff --git a/_assets/stylesheets/includes/colors.css.sass b/_assets/stylesheets/includes/colors.css.sass new file mode 100644 index 0000000..164e0e3 --- /dev/null +++ b/_assets/stylesheets/includes/colors.css.sass @@ -0,0 +1,15 @@ +$background-color: white + +$text-color: #333 +$text-color-light: lighten($text-color, 45%) +$heading-color: #333 +$meta-text-color: lighten($text-color, 45%) +$header-color: #518F00 + +$border-color: #ccc + +$link-color: rgb(24, 99, 161) +$link-color-hover: lighten($link-color, 10%) + +$footer-link-color: lighten($text-color, 25%) +$footer-link-color-hover: lighten($link-color, 10%) diff --git a/_assets/stylesheets/includes/icons.css.sass b/_assets/stylesheets/includes/icons.css.sass new file mode 100644 index 0000000..b40a438 --- /dev/null +++ b/_assets/stylesheets/includes/icons.css.sass @@ -0,0 +1,33 @@ +@font-face + font-family: 'icomoon' + src: asset_url('icomoon.eot') + src: asset_url('icomoon.eot?#iefix') format("embedded-opentype"), asset_url('icomoon.woff') format("woff"), asset_url('icomoon.ttf') format("truetype"), asset_url('icomoon.svg#icomoon') format('svg') + font-weight: normal + font-style: normal + +[class^="icon-"]:before, [class*=" icon-"]:before + font-family: 'icomoon' + font-style: normal + speak: none + font-weight: normal + -webkit-font-smoothing: antialiased + +.icon-logomark:before + content: "\e000" + +.icon-twitter:before + position: relative + top: 0.1em + content: "\e001" + margin-right: 0.2em + color: #05ADE7 + +.icon-github:before + content: "\e002" + +.icon-app-net:before + position: relative + top: 0.1em + content: "\e003" + margin-right: 0.2em + color: #8A8E91 diff --git a/_assets/stylesheets/includes/layout.css.sass b/_assets/stylesheets/includes/layout.css.sass new file mode 100644 index 0000000..cb04e69 --- /dev/null +++ b/_assets/stylesheets/includes/layout.css.sass @@ -0,0 +1,55 @@ +$max-width: 800px !default +$pad-min: 8.5% !default + +header[role=banner] + h1 + font-size: 3.43em + line-height: 0 + color: white + margin: 0.52em 0 0.42em + text-shadow: 0 0 10px rgba(0, 0, 0, 0.2) + span + position: absolute + right: 100% + +article img + max-width: 100% + height: auto + +article img.left + float: left + margin-right: 1em + +article img.right + float: right + margin-left: 1em + +#content, hgroup, footer + padding: 0 $pad-min + margin: 0 auto + max-width: $max-width + +nav[role=navigation] + font-size: 1em + +@media only screen and (min-width: 450px) + body + font-size: 110% + header[role=banner] h1 img + height: 50px + +@media only screen and (min-width: 650px) + body + font-size: 125% + header[role=banner] h1 img + height: 60px + +@media only screen and (min-width: 768px) + body + font-size: 135% + header[role=banner] h1 img + height: 80px + +@media only screen and (min-width: 892px) + body + font-size: 145% diff --git a/_assets/stylesheets/includes/main.css.sass b/_assets/stylesheets/includes/main.css.sass new file mode 100644 index 0000000..ba70ec3 --- /dev/null +++ b/_assets/stylesheets/includes/main.css.sass @@ -0,0 +1,4 @@ +body + margin: 0 + font-size: 100% + -webkit-text-size-adjust: 100% diff --git a/_assets/stylesheets/includes/styles.css.sass b/_assets/stylesheets/includes/styles.css.sass new file mode 100644 index 0000000..7e4d1fd --- /dev/null +++ b/_assets/stylesheets/includes/styles.css.sass @@ -0,0 +1,115 @@ +// This File is imported last, and will override other styles in the cascade +// Add styles here to make changes without digging in too much +html + background: $background-color + +body + font-weight: 300 + +body > div > div + border: none + +body > header + border-color: $header-color + +background(linear-gradient(top, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.15) 100%)) + background-color: $header-color + border-width: 0 0 1px + border-style: solid + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 -1px 0px rgba(255, 255, 255, 0.4) + padding-top: 0.8em + padding-bottom: 0.9em + h1 + display: inline-block + margin-top: 0 + font-weight: 700 + line-height: 0 + +a + +transition(color 0.25s 0s ease) + color: $link-color + &:hover + color: $link-color-hover + +header nav + display: inline + position: relative + ul + list-style: none + float: right + display: block + margin: 0 + padding: 0 + border: 0 + li + padding-left: 1.25em + float: left + padding-top: .15em + a + +transition(text-shadow 0.25s 0s ease) + text-shadow: 0 0 8px rgba(0, 0, 0, 0.2) + color: white + text-decoration: none + &:hover, &:focus + color: white + text-shadow: 0 0 5px rgba(255, 255, 255, 0.6) + +article > header + text-align: left + +article > header h1, #content .blog-index article h1 + font-size: 1.5em + +body > nav + border: none + +body > nav a + text-shadow: none + display: inline + +@media only screen and (max-width: 400px) + header + text-align: center + header nav + display: none + +blockquote + font-size: 1em + border: none + +#content div.pagination, #content div.navigation + text-align: center + font-size: .95em + height: 1.5em + position: relative + padding: + top: 1.5em + bottom: 1.5em + &:after + display: block + content: "" + clear: both + a + text-decoration: none + color: $text-color-light + &:hover + color: $link-color-hover + &[href*=archive] + &:before, &:after + content: '\2014' + padding: 0 .3em + +#content div.navigation + a + &.prev + float: left + &.next + float: right + +#content div.pagination + a + &.prev + position: absolute + left: 0 + &.next + position: absolute + right: 0 diff --git a/_assets/stylesheets/includes/syntax.css.sass b/_assets/stylesheets/includes/syntax.css.sass new file mode 100644 index 0000000..c756a4b --- /dev/null +++ b/_assets/stylesheets/includes/syntax.css.sass @@ -0,0 +1,160 @@ +.highlight + background: #ffffff + .c + color: #999988 + font-style: italic + .err + color: #a61717 + background-color: #e3d2d2 + .k, .o + font-weight: bold + .cm + color: #999988 + font-style: italic + .cp + color: #999999 + font-weight: bold + .c1 + color: #999988 + font-style: italic + .cs + color: #999999 + font-weight: bold + font-style: italic + .gd + color: #000000 + background-color: #ffdddd + .x + color: #000000 + background-color: #ffaaaa + .ge + font-style: italic + .gr + color: #aa0000 + .gh + color: #999999 + .gi + color: #000000 + background-color: #ddffdd + .x + color: #000000 + background-color: #aaffaa + .go + color: #888888 + .gp + color: #555555 + .gs + font-weight: bold + .gu + color: #aaaaaa + .gt + color: #aa0000 + .kc, .kd, .kp, .kr + font-weight: bold + .kt + color: #445588 + font-weight: bold + .m + color: #009999 + .s + color: #dd1144 + .na + color: teal + .nb + color: #0086b3 + .nc + color: #445588 + font-weight: bold + .no + color: teal + .ni + color: purple + .ne, .nf + color: #990000 + font-weight: bold + .nn + color: #555555 + .nt + color: navy + .nv + color: teal + .ow + font-weight: bold + .w + color: #bbbbbb + .mf, .mh, .mi, .mo + color: #009999 + .sb, .sc, .sd, .s2, .se, .sh, .si, .sx + color: #dd1144 + .sr + color: #009926 + .s1 + color: #dd1144 + .ss + color: #990073 + .bp + color: #999999 + .vc, .vg, .vi + color: teal + .il + color: #009999 + +/* Comment +/* Error +/* Keyword +/* Operator +/* Comment.Multiline +/* Comment.Preproc +/* Comment.Single +/* Comment.Special +/* Generic.Deleted +/* Generic.Deleted.Specific +/* Generic.Emph +/* Generic.Error +/* Generic.Heading +/* Generic.Inserted +/* Generic.Inserted.Specific +/* Generic.Output +/* Generic.Prompt +/* Generic.Strong +/* Generic.Subheading +/* Generic.Traceback +/* Keyword.Constant +/* Keyword.Declaration +/* Keyword.Pseudo +/* Keyword.Reserved +/* Keyword.Type +/* Literal.Number +/* Literal.String +/* Name.Attribute +/* Name.Builtin +/* Name.Class +/* Name.Constant +/* Name.Entity +/* Name.Exception +/* Name.Function +/* Name.Namespace +/* Name.Tag +/* Name.Variable +/* Operator.Word +/* Text.Whitespace +/* Literal.Number.Float +/* Literal.Number.Hex +/* Literal.Number.Integer +/* Literal.Number.Oct +/* Literal.String.Backtick +/* Literal.String.Char +/* Literal.String.Doc +/* Literal.String.Double +/* Literal.String.Escape +/* Literal.String.Heredoc +/* Literal.String.Interpol +/* Literal.String.Other +/* Literal.String.Regex +/* Literal.String.Single +/* Literal.String.Symbol +/* Name.Builtin.Pseudo +/* Name.Variable.Class +/* Name.Variable.Global +/* Name.Variable.Instance +/* Literal.Number.Integer.Long diff --git a/_assets/stylesheets/includes/typography.css.sass b/_assets/stylesheets/includes/typography.css.sass new file mode 100644 index 0000000..758fe17 --- /dev/null +++ b/_assets/stylesheets/includes/typography.css.sass @@ -0,0 +1,282 @@ +// $blockquote: $type-border !default +$sans: "adelle", sans-serif !default +$serif: "rooney-web", Georgia, Times, "Times New Roman", serif !default +$mono: "source-code-pro", monospace !default +$heading-font-family: "adelle", sans-serif !default +$header-title-font-family: $heading-font-family !default +$header-subtitle-font-family: $heading-font-family !default + +/* + *Type-A-File "Field Report" designed by Russ Maschmeyer, aka StrangeNative. + *http://www.strangenative.com + *@strangenative + * + *Creative Commons License by Attribution. + *Feel free to take it, adapt it, & use it on both commercial and non-commercial projects. + *Though I'd like a smidgeon of credit, so just leave this bit in here. K? + +/*Pick Your Fonts +body, h4, h5, h6, .run-in, dt + font-family: $serif + +h1, h2, h3, .pullquote, .sidenote h1, aside h1, .pullquote, .drop-cap, cite + font-family: $heading-font-family + +/*Nav Fonts +nav[role=navigation] + font-family: $sans + +/*Size & Vertical Rhythm +body + font-size: 100% + font-size: 16px + line-height: 1.5em + +/*Color +body + color: $text-color + +/*HTML Standard Elements +h1 + font-size: 2.5em + line-height: 1.333em + margin: .97em 0 0em + +h2 + font-size: 1.75em + line-height: 1.1em + margin: 2em 0 .5em + +h1 + img, h2 + img + margin-top: 1em + +h3 + font-size: 1.125em + +h4 + font-weight: bold + font-size: 1em + +h1, h2, h3, h4, h5, h6 + font-weight: 500 + text-rendering: optimizelegibility + +article h1 + font-size: 1.5em + +strong + font-weight: 700 + +small + display: block + font-size: .75em + letter-spacing: .05em + margin: 2.2em 0 -0.2em + font-style: italic + line-height: 1.75em + +p, ul, ol, form + margin: 1.5em 0 1em + +h3 + margin-top: 1.5em + +ul + list-style-position: outside + list-style-type: disc + line-height: 1.5 + padding-left: 0 + +li + margin-bottom: .75em + +ol + list-style-position: outside + list-style-type: decimal + +blockquote + font-style: italic + line-height: 1.6em + margin-left: 0 + margin-right: 0 + +blockquote:before + font-family: Georgia, serif + content: "“" + font-size: 2.75em + text-indent: -0.6em + margin-top: .1em + float: left + opacity: .3 + +cite + display: block + text-transform: uppercase + letter-spacing: .2em + margin-top: 1.5em + margin-left: 1em + font-weight: 900 + font-style: normal + font-size: .8em + +cite:before + content: "— " + margin-left: -3.4em + margin-right: .9em + opacity: .3 + +pre,code,tt + font-family: $mono + font-weight: 300 + +pre + margin: 1.5em + +dl + margin: 1.75em 0 1.75em + +dt + font-style: italic + margin-top: 1.25em + font-size: 1.13em + font-weight: 700 + border-bottom: 1px solid #999 + background: #DDD + +dd + font-style: italic + font-size: .85em + margin-top: 1em + line-height: 1.6em + +abbr + text-transform: uppercase + font-size: .9em + letter-spacing: .1em + border-bottom: 1px dotted $text-color-light + +p + margin-bottom: 0 + hyphenate: auto + hyphenate-before: 2 + hyphenate-after: 3 + hyphenate-lines: 3 + orphans: 4 + +p span.pullquote + text-indent: 0 + +/*Compositional Elements +.kicker + font-size: 1.25em + line-height: 1.693em + /*font-style:italic; + margin: -0.35em 0 -0.35em + +.kicker, .pullquote + font-weight: 100 + +.run-in + font-style: italic + font-weight: bold + +.superscript + font-family: arial, sans-serif + vertical-align: super + font-size: 75% + margin-right: .4em + text-transform: lowercase + font-variant: small-caps + letter-spacing: .1em + line-height: 0 + +.subscript + font-family: arial, sans-serif + vertical-align: sub + font-size: 75% + margin-right: .4em + text-transform: lowercase + font-variant: small-caps + letter-spacing: .1em + line-height: 0em + +a.superscript, a.subscript + text-decoration: none + +aside, .sidenote + font-size: .83em + font-style: italic + margin-top: 1.25em + +aside h1, .sidenote h1 + text-transform: uppercase + font-size: 1em + line-height: 1.5em + font-style: normal + font-weight: 900 + +aside p, .sidenote p + line-height: 1.7em + margin: 1.3em 0 + font-style: normal + +aside ul, aside ol, .sidenote ul, .sidenote ol + margin-top: 1.3em + line-height: 1.7em + +aside ul li, aside ol li, .sidenote ul li, .sidenote ol li + margin-bottom: 1.3em + +.pullquote + font-style: italic + letter-spacing: .05em + margin: .5em .7em .3em 0em + padding-top: .15em + line-height: 1.7em + display: block + float: left + font-size: 1.6em + width: 55% + +.pullquote:before + font-family: Georgia, serif + content: "“" + font-size: 2em + text-indent: -0.8em + margin-top: .05em + float: left + opacity: .3 + +.footnote + border-top: 1px solid black + font-size: .75em + margin-top: 3.5em + +.footnote li + margin: 1.5em 0 1.5em + word-spacing: .1em + line-height: 1.75em + +.caption + font-size: .8em + font-style: italic + margin: 0.6em 0 -0.2em + +.kicker .run-in + text-transform: uppercase + font-style: normal + letter-spacing: .25em + font-size: .9em + +.drop-cap + display: block + font-style: normal + font-size: 5.1em + float: left + margin: .13em .1em 0 0 + line-height: .67em + font-weight: 100 + +/*Tweaks +.kern + letter-spacing: -0.1em diff --git a/_assets/stylesheets/lib/solarized.css.sass b/_assets/stylesheets/lib/solarized.css.sass new file mode 100644 index 0000000..390b7cf --- /dev/null +++ b/_assets/stylesheets/lib/solarized.css.sass @@ -0,0 +1,57 @@ +$base03: #002b36 !default + +//darkest blue +$base02: #073642 !default + +//dark blue +$base01: #586e75 !default + +//darkest gray +$base00: #657b83 !default + +//dark gray +$base0: #839496 !default + +//medium gray +$base1: #93a1a1 !default + +//medium light gray +$base2: #eee8d5 !default + +//cream +$base3: #fdf6e3 !default + +//white +$solar-yellow: #b58900 !default +$solar-orange: #cb4b16 !default +$solar-red: #dc322f !default +$solar-magenta: #d33682 !default +$solar-violet: #6c71c4 !default +$solar-blue: #268bd2 !default +$solar-cyan: #2aa198 !default +$solar-green: #859900 !default + +$solarized: dark !default + +@if $solarized == light + $_base03: $base03 + $_base02: $base02 + $_base01: $base01 + $_base00: $base00 + $_base0: $base0 + $_base1: $base1 + $_base2: $base2 + $_base3: $base3 + $base03: $_base3 + $base02: $_base2 + $base01: $_base1 + $base00: $_base0 + $base0: $_base00 + $base1: $_base01 + $base2: $_base02 + $base3: $_base03 + +/* non highlighted code colors +$pre-bg: $base03 !default +$pre-border: darken($base02, 5) !default +$pre-color: $base1 !default diff --git a/_assets/stylesheets/parts/archive.css.sass b/_assets/stylesheets/parts/archive.css.sass new file mode 100644 index 0000000..02ca1c2 --- /dev/null +++ b/_assets/stylesheets/parts/archive.css.sass @@ -0,0 +1,80 @@ +#archive + #content > div + &, > article + padding-top: 0 + +#blog-archives + padding-top: 1em + article + padding: 0 0 1em + position: relative + &:last-child + border: none + footer + padding: 0 + margin: 0 + h1 + margin-top: 0 + color: $text-color + margin-bottom: .3em + h2 + display: none + h1 + font-size: 1.5em + a + +hover-link + color: inherit + &:hover + color: $link-color-hover + font-weight: normal + display: inline-block + a.category, time + color: $text-color-light + color: $text-color-light + .entry-content + display: none + time + font-size: .9em + line-height: 1.2em + .month, .day + display: inline-block + .month + text-transform: uppercase + p + margin-bottom: 1em + &, .entry-content + a + +link-colors(inherit, $link-color-hover) + a:hover + color: $link-color-hover + @media only screen and (min-width: 550px) + article + margin-left: 5em + h2 + margin-top: 0 + margin-bottom: .3em + font-weight: normal + display: inline-block + position: relative + top: -1px + float: left + time + position: absolute + text-align: right + left: 0em + top: 0.3em + .year + display: none + article + padding: + left: 4.5em + bottom: .7em + a.category + line-height: 1.1em + +#content > .category + article + margin-left: 0 + padding-left: 6.8em + .year + display: inline diff --git a/_assets/stylesheets/parts/footer.css.sass b/_assets/stylesheets/parts/footer.css.sass new file mode 100644 index 0000000..097d1eb --- /dev/null +++ b/_assets/stylesheets/parts/footer.css.sass @@ -0,0 +1,30 @@ +body > footer + text-align: center + font-size: .8em + position: relative + padding-top: 1em + padding-bottom: 1em + margin-bottom: 3em + +border-bottom-radius(.4em) + z-index: 1 + a + +link-colors($footer-link-color, $footer-link-color-hover, $visited: $footer-link-color) + text-decoration: none + p:last-child + margin-bottom: 0 + + fieldset + border: 0 + input[type=search] + -webkit-appearance: none + font-family: $serif + font-size: 1em + color: $text-color + +border-radius(1em) + border: + width: 1px + style: solid + color: #999 #bbb #bbb #999 + &:focus + outline: none + +box-shadow(0 0 5px $link-color) diff --git a/_assets/stylesheets/parts/post.css.sass b/_assets/stylesheets/parts/post.css.sass new file mode 100644 index 0000000..3b649af --- /dev/null +++ b/_assets/stylesheets/parts/post.css.sass @@ -0,0 +1,66 @@ +article + border-bottom: 1px dashed $border-color + padding-bottom: 0 + margin-bottom: 1em + + .entry-content + margin-bottom: 2em + + header + position: relative + margin-top: 2em + padding-top: 0.6em + + .meta + text-transform: uppercase + color: $meta-text-color + font-size: 0.8em + letter-spacing: 0.1em + width: 100% + text-rendering: optimizelegibility + position: absolute + top: 0 + margin-top: 0 + + header a + color: $heading-color + text-decoration: none + &:hover, &:focus + color: $link-color-hover + + img, video, .flash-video + +box-shadow(0 1px 4px rgba(0, 0, 0, 0.15)) + padding: 0.5em + margin: -0.5em + + > footer + padding-left: 0 + padding-right: 0 + p.meta + margin-bottom: .8em + font-size: .85em + clear: both + overflow: hidden + .byline + time:before, time + time:before, .comments:before, .byline ~ .categories:before + @extend .separator + + footer + a[rel=full-article] + background: darken($background-color, 8) + +border-radius(2px) + display: inline-block + padding: .4em .8em + margin-right: .5em + margin-bottom: 1.5em + text-decoration: none + color: mix($text-color, $text-color-light) + +transition(background-color 0.5s) + &:hover + background: $link-color-hover + text-shadow: none + color: $background-color + +.separator + content: "\2022 " + padding: 0 .4em 0 .2em + display: inline-block diff --git a/_assets/stylesheets/styles.css.sass b/_assets/stylesheets/styles.css.sass new file mode 100644 index 0000000..6685fdc --- /dev/null +++ b/_assets/stylesheets/styles.css.sass @@ -0,0 +1,11 @@ +@import 'bourbon' + +@import 'includes/syntax.css.sass' +@import 'includes/main.css.sass' +@import 'includes/colors.css.sass' +@import 'includes/typography.css.sass' +@import 'includes/icons.css.sass' +@import 'includes/layout.css.sass' +@import 'lib/solarized.css.sass' +@import 'includes/syntax.css.sass' +@import 'includes/styles.css.sass' diff --git a/_config.yml b/_config.yml index e99b8ec..9f00ae4 100644 --- a/_config.yml +++ b/_config.yml @@ -8,6 +8,13 @@ exclude: ['Gemfile', 'Gemfile.lock', 'README.md'] permalink: /:title +excerpt_separator: '' + +paginate: 10 +paginate_path: "blog/page/:num" +recent_posts: 5 +excerpt_link: "Read on →" + assets: dirname: assets baseurl: /assets/ @@ -15,3 +22,17 @@ assets: - _assets/javascripts - _assets/stylesheets - _assets/images + - _assets/fonts + - _assets/icons + +redcarpet: + extensions: + - hard_wrap + - no_intra_emphasis + - autolink + - strikethrough + - fenced_code_blocks + - smart + +kramdown: + input: GFM diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..340f2d9 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,13 @@ + diff --git a/_includes/archive_post.html b/_includes/archive_post.html new file mode 100644 index 0000000..fef3328 --- /dev/null +++ b/_includes/archive_post.html @@ -0,0 +1,8 @@ +{% capture category %}{{ post.categories | size }}{% endcapture %} +

{{post.title}}

+ +{% if category != '0' %} + +{% endif %} diff --git a/_includes/article.html b/_includes/article.html new file mode 100644 index 0000000..fb2e4c3 --- /dev/null +++ b/_includes/article.html @@ -0,0 +1,41 @@ +{% unless page.no_header %} +
+ {% if index %} + {% if post.external-url %} +

{% if site.titlecase %}{{ post.title | titlecase }} →{% else %}{{ post.title }}{% endif %}

+ {% else %} +

{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}

+ {% endif %} + {% else %} + {% if page.external-url %} +

{% if site.titlecase %}{{ page.title | titlecase }} →{% else %}{{ page.title }}{% endif %}

+ {% else %} +

{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}

+ {% endif %} + {% endif %} +

+ {% include post/date.html %} +

+
+{% endunless %} +{% if index %} +
{{ post.excerpt }}
+ {% if post.excerpt != content %} + + {% endif %} +{% else %} +
{{ content }}
+ +{% endif %} +{% if post.external-url %} +

Permalink

+
+{% endif %} diff --git a/_includes/custom/category_feed.xml b/_includes/custom/category_feed.xml new file mode 100644 index 0000000..f47c553 --- /dev/null +++ b/_includes/custom/category_feed.xml @@ -0,0 +1,27 @@ +--- +layout: nil +--- + + + + <![CDATA[{{ page.title }} | {{ site.title }}]]> + + + {{ site.time | date_to_xmlschema }} + {{ site.url }}/ + + + {% if site.email %}{% endif %} + + Octopress + + {% for post in site.categories[page.category] limit: 5 %} + + <![CDATA[{{ post.title | cdata_escape }}]]> + + {{ post.date | date_to_xmlschema }} + {{ site.url }}{{ post.id }} + + + {% endfor %} + diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..d87d388 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,19 @@ + + +{% include analytics.html %} diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..d3f5fa4 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,6 @@ +
+
+

Dan Barber

+ +
+
diff --git a/_includes/navigation.html b/_includes/navigation.html new file mode 100644 index 0000000..06cd051 --- /dev/null +++ b/_includes/navigation.html @@ -0,0 +1,5 @@ + diff --git a/_includes/post/author.html b/_includes/post/author.html new file mode 100644 index 0000000..83dd6a8 --- /dev/null +++ b/_includes/post/author.html @@ -0,0 +1,8 @@ +{% if post.author %} + {% assign author = post.author %} +{% elsif page.author %} + {% assign author = page.author %} +{% else %} + {% assign author = site.author %} +{% endif %} +{% if author %}Posted by {{ author }}{% endif %} diff --git a/_includes/post/categories.html b/_includes/post/categories.html new file mode 100644 index 0000000..4a98b29 --- /dev/null +++ b/_includes/post/categories.html @@ -0,0 +1,10 @@ +{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %} +{% unless category == '0' %} + + {% if post %} + {{ post.categories | category_links }} + {% else %} + {{ page.categories | category_links }} + {% endif %} + +{% endunless %} diff --git a/_includes/post/date.html b/_includes/post/date.html new file mode 100644 index 0000000..9fa3667 --- /dev/null +++ b/_includes/post/date.html @@ -0,0 +1 @@ +{% if post.date %}{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index 22e7e3f..6a3fe7c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,44 +1,46 @@ - + +{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %} - - - - {{ page.title }} - + + + {% if page.title %}{{ page.title }} - {% endif %}{{ site.title }} - - + + - - + {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} + + {% if page.keywords %}{% endif %} + - - + + + -
-
-

{{ site.name }}

- home -
+ + - {{ content }} + + + {{ 'styles' | stylesheet }} + + + + + + + + - -
+ + + + - + + + + + {{ content | expand_urls: root_url }} + diff --git a/_layouts/post.html b/_layouts/post.html index 04e3586..45c98f0 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,9 +1,22 @@ --- layout: default +single: true --- -

{{ page.title }}

-

{{ page.date | date_to_string }}

-
-{{ content }} +{% include header.html %} + +
+
+ {% include article.html %} +
+
+ +{% include footer.html %} diff --git a/_plugins/date.rb b/_plugins/date.rb new file mode 100644 index 0000000..229e5cb --- /dev/null +++ b/_plugins/date.rb @@ -0,0 +1,12 @@ +require 'date' +require 'facets/integer/ordinal' + +module Jekyll + module DateFilter + def pretty(date) + "#{date.strftime('%b')} #{date.strftime('%e').to_i.ordinalize}, #{date.strftime('%Y')}" + end + end +end + +Liquid::Template.register_filter(Jekyll::DateFilter) diff --git a/_plugins/ext.rb b/_plugins/ext.rb new file mode 100644 index 0000000..7af062f --- /dev/null +++ b/_plugins/ext.rb @@ -0,0 +1,2 @@ +require 'jekyll-assets' +require 'jekyll-assets/bourbon' diff --git a/about/index.markdown b/about/index.markdown new file mode 100644 index 0000000..9a94569 --- /dev/null +++ b/about/index.markdown @@ -0,0 +1,11 @@ +--- +layout: page +title: "About Dan" +# date: 2012-01-17 09:07 +comments: false +sharing: true +footer: true +--- +Hi, my name is Dan Barber. I’m a web designer and developer in Devon. I design and build standards compliant websites that are simple, usable and attractive using open source software technologies. + +My chosen web technology is Ruby on Rails, and I love creating beautiful and usable interfaces. diff --git a/atom.xml b/atom.xml new file mode 100644 index 0000000..83af3f8 --- /dev/null +++ b/atom.xml @@ -0,0 +1,27 @@ +--- +layout: nil +--- + + + + <![CDATA[{{ site.title }}]]> + + + {{ site.time | date_to_xmlschema }} + {{ site.url }}/ + + + {% if site.email %}{% endif %} + + Octopress + + {% for post in site.posts limit: 20 %} + + <![CDATA[{{ post.title | cdata_escape }}]]> + + {{ post.date | date_to_xmlschema }} + {{ site.url }}{{ post.id }} + + + {% endfor %} + diff --git a/css/main.css b/css/main.css deleted file mode 100755 index 1a2c013..0000000 --- a/css/main.css +++ /dev/null @@ -1,160 +0,0 @@ -/*****************************************************************************/ -/* -/* Common -/* -/*****************************************************************************/ - -/* Global Reset */ -* { - margin: 0; - padding: 0; -} - -html, body { height: 100%; } - -body { - background-color: #FFF; - font: 13.34px Helvetica, Arial, sans-serif; - font-size: small; - text-align: center; -} - -h1, h2, h3, h4, h5, h6 { - font-size: 100%; } - -h1 { margin-bottom: 1em; } -p { margin: 1em 0; } - -a { color: #00a; } -a:hover { color: #000; } -a:visited { color: #a0a; } - -/*****************************************************************************/ -/* -/* Home -/* -/*****************************************************************************/ -.posts { - list-style-type: none; - margin-bottom: 2em; -} - -.posts li { - line-height: 1.75em; -} - -.posts span { - color: #aaa; - font-family: Monaco, "Courier New", monospace; - font-size: 80%; -} - -/*****************************************************************************/ -/* -/* Site -/* -/*****************************************************************************/ - -.site { - font-size: 115%; - text-align: justify; - width: 42em; - margin: 3em auto 2em; - line-height: 1.5em; -} - -.header a { - font-weight: bold; - text-decoration: none; -} - -.title { - display: inline-block; - margin-bottom: 2em; -} - -.title a { - color: #a00; -} - -.title a:hover { - color: #000; -} - -.header a.extra { - color: #aaa; - margin-left: 1em; -} - -.header a.extra:hover { - color: #000; -} - -.meta { - color: #aaa; -} - -.footer { - font-size: 80%; - color: #666; - border-top: 4px solid #eee; - margin-top: 2em; - overflow: hidden; -} - -.footer .contact { - float: left; - margin-right: 3em; -} - -.footer .contact a { - color: #8085C1; -} - -.footer .rss { - margin-top: 1.1em; - margin-right: -.2em; - float: right; -} - -.footer .rss img { - border: 0; -} - -/*****************************************************************************/ -/* -/* Posts -/* -/*****************************************************************************/ - -/* standard */ -.post pre { - border: 1px solid #ddd; - background-color: #eef; - padding: 0 .4em; -} - -.post ul, .post ol { - margin-left: 1.35em; -} - -.post code { - border: 1px solid #ddd; - background-color: #eef; - padding: 0 .2em; -} - -.post pre code { - border: none; -} - -/* terminal */ -.post pre.terminal { - border: 1px solid #000; - background-color: #333; - color: #FFF; -} - -.post pre.terminal code { - background-color: #333; -} diff --git a/css/syntax.css b/css/syntax.css deleted file mode 100644 index 2774b76..0000000 --- a/css/syntax.css +++ /dev/null @@ -1,60 +0,0 @@ -.highlight { background: #ffffff; } -.highlight .c { color: #999988; font-style: italic } /* Comment */ -.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.highlight .k { font-weight: bold } /* Keyword */ -.highlight .o { font-weight: bold } /* Operator */ -.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ -.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ -.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #aa0000 } /* Generic.Error */ -.highlight .gh { color: #999999 } /* Generic.Heading */ -.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ -.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #555555 } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ -.highlight .gt { color: #aa0000 } /* Generic.Traceback */ -.highlight .kc { font-weight: bold } /* Keyword.Constant */ -.highlight .kd { font-weight: bold } /* Keyword.Declaration */ -.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ -.highlight .kr { font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ -.highlight .m { color: #009999 } /* Literal.Number */ -.highlight .s { color: #d14 } /* Literal.String */ -.highlight .na { color: #008080 } /* Name.Attribute */ -.highlight .nb { color: #0086B3 } /* Name.Builtin */ -.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ -.highlight .no { color: #008080 } /* Name.Constant */ -.highlight .ni { color: #800080 } /* Name.Entity */ -.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ -.highlight .nn { color: #555555 } /* Name.Namespace */ -.highlight .nt { color: #000080 } /* Name.Tag */ -.highlight .nv { color: #008080 } /* Name.Variable */ -.highlight .ow { font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mf { color: #009999 } /* Literal.Number.Float */ -.highlight .mh { color: #009999 } /* Literal.Number.Hex */ -.highlight .mi { color: #009999 } /* Literal.Number.Integer */ -.highlight .mo { color: #009999 } /* Literal.Number.Oct */ -.highlight .sb { color: #d14 } /* Literal.String.Backtick */ -.highlight .sc { color: #d14 } /* Literal.String.Char */ -.highlight .sd { color: #d14 } /* Literal.String.Doc */ -.highlight .s2 { color: #d14 } /* Literal.String.Double */ -.highlight .se { color: #d14 } /* Literal.String.Escape */ -.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ -.highlight .si { color: #d14 } /* Literal.String.Interpol */ -.highlight .sx { color: #d14 } /* Literal.String.Other */ -.highlight .sr { color: #009926 } /* Literal.String.Regex */ -.highlight .s1 { color: #d14 } /* Literal.String.Single */ -.highlight .ss { color: #990073 } /* Literal.String.Symbol */ -.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #008080 } /* Name.Variable.Class */ -.highlight .vg { color: #008080 } /* Name.Variable.Global */ -.highlight .vi { color: #008080 } /* Name.Variable.Instance */ -.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/design-for-developers/index.markdown b/design-for-developers/index.markdown new file mode 100644 index 0000000..97ca37c --- /dev/null +++ b/design-for-developers/index.markdown @@ -0,0 +1,44 @@ +--- +layout: page +title: "design for developers" +date: 2013-03-24 09:35 +comments: true +sharing: true +footer: true +--- + +This is a page of useful links associated with my talk "Design Eye for the Developer Guy". + +## Grid + +* [Designing With Grid-Based Approach][1] +* [How You Make A Grid (PDF)][2] +* [Design & Build a Grid Based Web Design with CSS][3] + +## Colour + +* [Basic Color Theory][4] +* [Color Theory for Designers, Part 1: The Meaning of Color][5] +* [Color Theory For Designers, Part 2: Understanding Concepts And Terminology][6] +* [Color Theory for Designer, Part 3: Creating Your Own Color Palettes][7] +* [Color Scheme Designer][8] + +## Typography + +* [How to Choose a Typeface][9] +* [Five simple steps to better typography][10] (Internal links from here are broken, but will work again if you remove the trailing slash) +* [8 Simple Ways to Improve Typography In Your Designs][11] +* [The Elements of Typographic Style Applied to the Web][12] + + [1]: http://www.smashingmagazine.com/2007/04/14/designing-with-grid-based-approach/ + [2]: http://typophile.com/files/How%20you%20make%20a%20grid.pdf + [3]: http://line25.com/tutorials/design-build-a-grid-based-web-design-with-css + [4]: http://www.colormatters.com/color-and-design/basic-color-theory + [5]: http://www.smashingmagazine.com/2010/01/28/color-theory-for-designers-part-1-the-meaning-of-color/ + [6]: http://www.smashingmagazine.com/2010/02/02/color-theory-for-designers-part-2-understanding-concepts-and-terminology/ + [7]: http://www.smashingmagazine.com/2010/02/08/color-theory-for-designer-part-3-creating-your-own-color-palettes/ + [8]: http://colorschemedesigner.com + [9]: http://www.smashingmagazine.com/2011/03/24/how-to-choose-a-typeface/ + [10]: http://markboulton.co.uk/journal/five-simple-steps-to-better-typography + [11]: http://coding.smashingmagazine.com/2009/04/03/8-simple-ways-to-improve-typography-in-your-designs/ + [12]: http://webtypography.net diff --git a/index.html b/index.html index c726819..ea1c79f 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,28 @@ --- layout: default -title: Your New Jekyll Site --- -
-

Blog Posts

- -
\ No newline at end of file +{% assign index = true %} + +{% include header.html %} + +
+ {% assign index = true %} + {% for post in paginator.posts %} + {% assign content = post.content %} +
+ {% include article.html %} +
+ {% endfor %} + +
+ +{% include footer.html %} diff --git a/sale/index.markdown b/sale/index.markdown new file mode 100644 index 0000000..f5e37e6 --- /dev/null +++ b/sale/index.markdown @@ -0,0 +1,28 @@ +--- +layout: page +title: "Stuff for sale" +date: 2014-04-20 +footer: true +--- + +I'm selling my DSLR gear to make way for a smaller more compact camera setup. The following items are available. Contact me on sale@danbarber.me if you're interested in any of the items. + +Check my [Flickr](https://www.flickr.com/photos/danbee/) stream for example shots from this gear. Most of the photos on there were taken with the 30D with one of the two lenses listed. + +Prices don't include shipping. + +### [Canon EOS 30D body](http://www.canon.co.uk/For_Home/Product_Finder/Cameras/Digital_SLR/eos30d/) -- £100 + +This body is in excellent condition and comes with two batteries, charger, cables and manual. I'll throw in a couple of CF cards too. + +### [Sigma EX Macro 18-50mm f2.8 lens](http://www.ephotozine.com/article/sigma-18-50-f-2-8-ex-dc-interchangeable-lens-review-4040) -- £150 + +In excellent condition, with box and case. This is a great alternative to the usual Canon kit lens as it has a wide f2.8 aperture through the zoom range. + +### [Canon L series 70-200 f4 USM lens](http://www.canon.co.uk/For_Home/Product_Finder/Cameras/EF_Lenses/Telephoto_Zoom/EF_70-200mm_f4L_USM/) -- £350 + +Widely regarded as one of the sharpest lenses Canon makes! This is an amazing lens. + +### [Canon RS-80N3 remote shutter release](http://www.amazon.co.uk/Canon-Remote-Switch-RS-80-N3/dp/B00007EEA4/ref=sr_1_1?ie=UTF8&qid=1398012676&sr=8-1&keywords=canon+rs+80n3) -- Sold! + +Bought new, barely used.