Slide 1

Slide 1 text

Welcome! modern web dev workshop

Slide 2

Slide 2 text

Schedule 9am - 11am: Introduction / Bootstrap 15 min BREAK 11:15am - 1pm: Sass/SCSS 1 hr LUNCH 2pm - 3pm: Git/Github 15 min BREAK 3:15pm - 4:45pm: Jekyll 4:45pm - 5pm: Q/A

Slide 3

Slide 3 text

Modern Web Dev Workshop Starter Files- modernwebworkshop.com/workshop-files.zip Example site- jackbouba.github.io Cheat Sheet- modernwebworkshop.com/reference.html Install Guide- modernwebworkshop.com/install-guide.pdf For Section One Please download starter files For Section Three Please install git ( git-scm.com ) For Section Two Please install Scout app ( mhs.github.io/scout-app ) For Section Four Please install jekyll ( gem install jekyll )

Slide 4

Slide 4 text

Wh Are These Guy ?

Slide 5

Slide 5 text

Who are we? Jack

Slide 6

Slide 6 text

Who are we? Brian

Slide 7

Slide 7 text

Why these technologies?

Slide 8

Slide 8 text

Why these technologies? FAST • Reusable • Modular

Slide 9

Slide 9 text

Why these technologies? FAST • Reusable • Modular SMART • Programmatic

Slide 10

Slide 10 text

Why these technologies? FAST • Reusable • Modular SMART • Programmatic EFFICIENT • Local • Version Controlled • Streamlined Deployment

Slide 11

Slide 11 text

The PA Bicycles Site

Slide 12

Slide 12 text

Wh are you? What do you do & why are you here?

Slide 13

Slide 13 text

Section One bootstrap

Slide 14

Slide 14 text

Getting Bootstrap

Slide 15

Slide 15 text

Getting Bootstrap http://twitter.github.io/bootstrap/

Slide 16

Slide 16 text

Customizable

Slide 17

Slide 17 text

What Is Bootstrap?

Slide 18

Slide 18 text

What Is Bootstrap? Bootstrap is an open-source library of design components built with HTML, CSS and Javascript.

Slide 19

Slide 19 text

Why Bootstrap?

Slide 20

Slide 20 text

Why Bootstrap? Easy to prototype sites

Slide 21

Slide 21 text

Why Bootstrap? Easy to prototype sites Jumpstart your projects with modular elements

Slide 22

Slide 22 text

Why Bootstrap? Easy to prototype sites Jumpstart your projects with modular elements Allow developers to make a pretty interface

Slide 23

Slide 23 text

Bootstrap OK, so what does Bootstrap offer us?

Slide 24

Slide 24 text

Bootstrap Grid System

Slide 25

Slide 25 text

Bootstrap Grid System 12 Column Responsive Grid

Slide 26

Slide 26 text

Bootstrap Grid System 12 Column Responsive Grid

Slide 27

Slide 27 text

Responsive Design Responsive design is a mix of CSS media queries and flexible images that will reorganize the content on a page according to the size of the browser window.

Slide 28

Slide 28 text

Responsive Design Responsive design is a mix of CSS media queries and flexible images that will reorganize the content on a page according to the size of the browser window. Ethan Marcotte http://unstoppablerobotninja.com/

Slide 29

Slide 29 text

Responsive Design

Slide 30

Slide 30 text

Responsive Design

Slide 31

Slide 31 text

Responsive Design

Slide 32

Slide 32 text

Responsive Design

Slide 33

Slide 33 text

Responsive Design

Slide 34

Slide 34 text

Components Nav Elements

Slide 35

Slide 35 text

Components Form Elements

Slide 36

Slide 36 text

Components Buttons

Slide 37

Slide 37 text

Components .btn .btn-large .btn-small .btn-mini Buttons

Slide 38

Slide 38 text

Javascript Components Dropdowns Popovers

Slide 39

Slide 39 text

Javascript Components Example Alerts Carousel

Slide 40

Slide 40 text

Let’ Get Started!

Slide 41

Slide 41 text

Modern Web Dev Workshop Starter Files- modernwebworkshop.com/workshop-files.zip Example site- jackbouba.github.io Cheat Sheet- modernwebworkshop.com/reference.html Install Guide- modernwebworkshop.com/install-guide.pdf For Section One Please download starter files For Section Three Please install git ( git-scm.com ) For Section Two Please install Scout app ( mhs.github.io/scout-app ) For Section Four Please install jekyll ( gem install jekyll )

Slide 42

Slide 42 text

Section 2 Sass (SCSS)

Slide 43

Slide 43 text

What is Sass?

Slide 44

Slide 44 text

What is Sass? Sass, which officially stands for Syntactically Awesome Stylesheets, is a CSS preprocessing language.

Slide 45

Slide 45 text

What is Sass? Sass, which officially stands for Syntactically Awesome Stylesheets, is a CSS preprocessing language. CSS has limitations; Sass was created to give it some extra functionality.

Slide 46

Slide 46 text

What is Sass? Sass, which officially stands for Syntactically Awesome Stylesheets, is a CSS preprocessing language. CSS has limitations; Sass was created to give it some extra functionality. There are 2 syntaxes (and 2 file extensions):

Slide 47

Slide 47 text

What is Sass? Sass, which officially stands for Syntactically Awesome Stylesheets, is a CSS preprocessing language. CSS has limitations; Sass was created to give it some extra functionality. There are 2 syntaxes (and 2 file extensions): • The original Sass indented, terse syntax (.sass)

Slide 48

Slide 48 text

What is Sass? Sass, which officially stands for Syntactically Awesome Stylesheets, is a CSS preprocessing language. CSS has limitations; Sass was created to give it some extra functionality. There are 2 syntaxes (and 2 file extensions): • The original Sass indented, terse syntax (.sass) • The default SCSS syntax (.scss)

Slide 49

Slide 49 text

What is Sass? Sass, which officially stands for Syntactically Awesome Stylesheets, is a CSS preprocessing language. CSS has limitations; Sass was created to give it some extra functionality. There are 2 syntaxes (and 2 file extensions): • The original Sass indented, terse syntax (.sass) • The default SCSS syntax (.scss) CSS is valid SCSS.

Slide 50

Slide 50 text

Why Sass?

Slide 51

Slide 51 text

Why Sass? Hampton Catlin, the creator of Haml, built and released Sass in 2007.

Slide 52

Slide 52 text

Why Sass? Hampton Catlin, the creator of Haml, built and released Sass in 2007. “Sass both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.”

Slide 53

Slide 53 text

Why Sass? Hampton Catlin, the creator of Haml, built and released Sass in 2007. “Sass both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.” • Sass makes scaling easier.

Slide 54

Slide 54 text

Why Sass? Hampton Catlin, the creator of Haml, built and released Sass in 2007. “Sass both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.” • Sass makes scaling easier. • Sass can help keep code DRY (Don't Repeat Yourself).

Slide 55

Slide 55 text

Why Sass? Hampton Catlin, the creator of Haml, built and released Sass in 2007. “Sass both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.” • Sass makes scaling easier. • Sass can help keep code DRY (Don't Repeat Yourself). • Sass is just plain smarter than CSS.

Slide 56

Slide 56 text

Sass OK, so how do we start using Sass?

Slide 57

Slide 57 text

Nesting .container { background-color: #333; color: #000; .headline { font-weight: bold; text-transform: uppercase; span { display: inline-block; padding: 5px; } } } SCSS .container { background-color: #333; color: #000; } .container .headline { font-weight: bold; text-transform: uppercase; } .container .headline span { display: inline-block; padding: 5px; } CSS

Slide 58

Slide 58 text

DANGER ZONE! .container { background-color: #FFF; .headline-wrap { width: 50%; .headline { color: #333; span { text-transform: uppercase; } } } } SCSS .container { background-color: #FFF; } .container .headline-wrap { width: 50%; } .container .headline-wrap .headline { color: #333; } .container .headline-wrap .headline span { text-transform: uppercase; } CSS

Slide 59

Slide 59 text

Parent Selector (&) a { color: #333; &:hover { color: #550000; } &:active { color: #330000; } } SCSS a { color: #333; } a:hover { color: #550000; } a:active { color: #330000; } CSS a { color: #333; :hover { color: #550000; } :active { color: #330000; } } a { color: #333; } a :hover { color: #550000; } a :active { color: #330000; }

Slide 60

Slide 60 text

Parent Selector (&) body { background-color: #DDD; &.light { background-color: #FFF; } } .container { width: 50%; &.narrow { width: 20%; } } SCSS body { background-color: #DDD; } body.light { background-color: #FFF; } .container { width: 50%; } .container.narrow { width: 20%; } CSS

Slide 61

Slide 61 text

Variables ( $ ) $main-color: #DDD; $border-type: solid; .headline { color: $main-color; border: 1px $border-type #000; } footer { background-color: $main-color; border: 2px $border-type #333; } SCSS .headline { color: #DDD; border: 1px solid #000; } footer { background-color: #DDD; border: 2px solid #333; } CSS

Slide 62

Slide 62 text

Variables ( $ ) $main-color: #ffa; $border-type: dashed; .headline { color: $main-color; border: 1px $border-type #000; } footer { background-color: $main-color; border: 2px $border-type #333; } SCSS .headline { color: #ffa; border: 1px dashed #000; } footer { background-color: #ffa; border: 2px dashed #333; } CSS

Slide 63

Slide 63 text

Mixins ( @mixin / @include ) @mixin button-base { color: #333; display: inline-block; padding: 5px; } .btn { @include button-base; } .callout a { @include button-base; } SCSS .btn { color: #333; display: inline-block; padding: 5px; } .callout a { color: #333; display: inline-block; padding: 5px; } CSS

Slide 64

Slide 64 text

Mixins ( @mixin / @include ) @mixin button-base($pad) { color: #333; display: inline-block; padding: $pad; } .btn { @include button-base(10px); } .callout a { @include button-base(5px); } SCSS .btn { color: #333; display: inline-block; padding: 10px; } .callout a { color: #333; display: inline-block; padding: 5px; } CSS

Slide 65

Slide 65 text

Mixins ( @mixin / @include ) @mixin button-base($pad:5px) { color: #333; display: inline-block; padding: $pad; } .btn { @include button-base(10px); } .callout a { @include button-base; } SCSS .btn { color: #333; display: inline-block; padding: 10px; } .callout a { color: #333; display: inline-block; padding: 5px; } CSS

Slide 66

Slide 66 text

Mixins ( @mixin / @include ) @mixin button-base($pad, $txt) { color: $txt; display: inline-block; padding: $pad; } .btn { @include button-base(10px, #333); } .callout a { @include button-base(5px, #555); } SCSS .btn { color: #333; display: inline-block; padding: 10px; } .callout a { color: #555; display: inline-block; padding: 5px; } CSS

Slide 67

Slide 67 text

DANGER ZONE! $prop: border; .callout { background-color: #C0FFEE; $prop-top: 1px solid #000; } SCSS ??? CSS

Slide 68

Slide 68 text

Interpolation ( #{ $var } ) $prop: border; .callout { background-color: #C0FFEE; #{$prop}-top: 1px solid #000; } SCSS .callout { background-color: #C0FFEE; border-top: 1px solid #000; } CSS

Slide 69

Slide 69 text

Extend ( @extend ) and Placeholders ( % ) .warning { font-weight: bold; font-size: 1.5em; font-style: italic; } .error { @extend .warning; color: #FF0000; } SCSS .warning, .error { font-weight: bold; font-size: 1.5em; font-style: italic; } .error { color: #FF0000; } CSS %warning { font-weight: bold; font-size: 1.5em; font-style: italic; } .error { @extend %warning; color: #FF0000; } .error { font-weight: bold; font-size: 1.5em; font-style: italic; color: #FF0000; }

Slide 70

Slide 70 text

Import ( @import ) .btn { background-color: #C0FFEE; display: inline-block; } buttons.scss .btn { background-color: #C0FFEE; display: inline-block; } .container { float: left; } styles.css @import "buttons"; .container { float: left; } styles.scss

Slide 71

Slide 71 text

So Much More!

Slide 72

Slide 72 text

So Much More! lighten(red, 35%) darken(red, 50%) rgba(red, .3) grayscale(red) invert(red) Color Functions

Slide 73

Slide 73 text

So Much More! round(143.3px) ceil(143.3px) percentage(50px/200px) 200px + 30px 350px - 80px Math lighten(red, 35%) darken(red, 50%) rgba(red, .3) grayscale(red) invert(red) Color Functions

Slide 74

Slide 74 text

So Much More! round(143.3px) ceil(143.3px) percentage(50px/200px) 200px + 30px 350px - 80px Math @if @for @each @while Control Directives lighten(red, 35%) darken(red, 50%) rgba(red, .3) grayscale(red) invert(red) Color Functions

Slide 75

Slide 75 text

So Much More! round(143.3px) ceil(143.3px) percentage(50px/200px) 200px + 30px 350px - 80px Math @if @for @each @while Control Directives .logo { width: 50%; @media (max-width: 700px) { width: 20%; } } Nested Media Queries lighten(red, 35%) darken(red, 50%) rgba(red, .3) grayscale(red) invert(red) Color Functions

Slide 76

Slide 76 text

How Do We Compile Sass?

Slide 77

Slide 77 text

How Do We Compile Sass? The sass RubyGem

Slide 78

Slide 78 text

How Do We Compile Sass? The sass RubyGem $ gem install sass $ sass --watch styles.scss:styles.css

Slide 79

Slide 79 text

How Do We Compile Sass? The sass RubyGem $ gem install sass $ sass --watch styles.scss:styles.css GUI Compilers

Slide 80

Slide 80 text

How Do We Compile Sass? The sass RubyGem $ gem install sass $ sass --watch styles.scss:styles.css GUI Compilers

Slide 81

Slide 81 text

How Do We Compile Sass? The sass RubyGem $ gem install sass $ sass --watch styles.scss:styles.css GUI Compilers

Slide 82

Slide 82 text

How Do We Compile Sass? The sass RubyGem $ gem install sass $ sass --watch styles.scss:styles.css GUI Compilers

Slide 83

Slide 83 text

How Do We Compile Sass? The sass RubyGem $ gem install sass $ sass --watch styles.scss:styles.css GUI Compilers http://mhs.github.io/scout-app/

Slide 84

Slide 84 text

Enough already, Let’s code!

Slide 85

Slide 85 text

Modern Web Dev Workshop Starter Files- modernwebworkshop.com/workshop-files.zip Example site- jackbouba.github.io Cheat Sheet- modernwebworkshop.com/reference.html Install Guide- modernwebworkshop.com/install-guide.pdf For Section One Please download starter files For Section Three Please install git ( git-scm.com ) For Section Two Please install Scout app ( mhs.github.io/scout-app ) For Section Four Please install jekyll ( gem install jekyll )

Slide 86

Slide 86 text

Section 3 Git/Github

Slide 87

Slide 87 text

Download and Insta git-scm.com

Slide 88

Slide 88 text

What Is Git? Git is a distributed revision control and source code management (SCM) system with an emphasis on speed.

Slide 89

Slide 89 text

What Is Git? Git is a distributed revision control and source code management (SCM) system with an emphasis on speed.

Slide 90

Slide 90 text

Why Use Git?

Slide 91

Slide 91 text

Why Use Git? Fast

Slide 92

Slide 92 text

Why Use Git? Fast Free and Open Source

Slide 93

Slide 93 text

Why Use Git? Fast Free and Open Source Version Control

Slide 94

Slide 94 text

Why Use Git? Fast Free and Open Source Version Control Branching

Slide 95

Slide 95 text

Version Control

Slide 96

Slide 96 text

Version Control Repository

Slide 97

Slide 97 text

Version Control Main Timeline Repository

Slide 98

Slide 98 text

Version Control Main Timeline Code Snapshots Repository

Slide 99

Slide 99 text

Main Timeline Branch Code Snapshots Repository Branching

Slide 100

Slide 100 text

Main Timeline Branch Merge Merge Code Snapshots Repository Branching

Slide 101

Slide 101 text

Collaborate With Others Developer

Slide 102

Slide 102 text

Collaborate With Others Remote Repository Developer

Slide 103

Slide 103 text

Collaborate With Others Remote Repository Developer Developer Developer

Slide 104

Slide 104 text

Collaborate With Others Remote Repository Developer Developer Developer

Slide 105

Slide 105 text

Github

Slide 106

Slide 106 text

Github

Slide 107

Slide 107 text

What Is Github?

Slide 108

Slide 108 text

What Is Github? Github is a the world’s largest open source community.

Slide 109

Slide 109 text

Who is Hosted on Github

Slide 110

Slide 110 text

Who is Hosted on Github Bootstrap Node jQuery html5-boilerplate Ruby on Rails (49,518) (21,898) (20,642) (20,058) (18,340)

Slide 111

Slide 111 text

Deploying Code With Github

Slide 112

Slide 112 text

Deploying Code With Github Github Deployment Hooks

Slide 113

Slide 113 text

Deploying Code With Github Github Deployment Hooks Heroku

Slide 114

Slide 114 text

Github Pages

Slide 115

Slide 115 text

Github Pages

Slide 116

Slide 116 text

Github Pages username.github.io

Slide 117

Slide 117 text

Let’ Get Started!

Slide 118

Slide 118 text

Modern Web Dev Workshop Starter Files- modernwebworkshop.com/workshop-files.zip Example site- jackbouba.github.io Cheat Sheet- modernwebworkshop.com/reference.html Install Guide- modernwebworkshop.com/install-guide.pdf For Section One Please download starter files For Section Three Please install git ( git-scm.com ) For Section Two Please install Scout app ( mhs.github.io/scout-app ) For Section Four Please install jekyll ( gem install jekyll )

Slide 119

Slide 119 text

Section 4 Jekyll

Slide 120

Slide 120 text

What is Jekyll?

Slide 121

Slide 121 text

What is Jekyll? Jekyll is “simple, blog aware, static site generator.”

Slide 122

Slide 122 text

What is Jekyll? Jekyll is “simple, blog aware, static site generator.” Jekyll _includes _layouts _posts assets index.html

Slide 123

Slide 123 text

What is Jekyll? Jekyll is “simple, blog aware, static site generator.” Jekyll _includes _layouts _posts assets index.html _sites blog assets index.html

Slide 124

Slide 124 text

What is Jekyll? “You can think of Jekyll as a normalish dynamic blog but rather than parsing content, templates, and tags on each request, Jekyll does this once beforehand and caches the entire website in a folder for serving statically.”

Slide 125

Slide 125 text

What is Jekyll?

Slide 126

Slide 126 text

What is Jekyll? In November 2008, Tom Preston-Werner, cofounder and CEO of GitHub, introduced Jekyll with a blog post and released the code.

Slide 127

Slide 127 text

What is Jekyll? In November 2008, Tom Preston-Werner, cofounder and CEO of GitHub, introduced Jekyll with a blog post and released the code. “I was tired of complicated blogging engines...I wanted to write great posts, not...lag behind the latest software release.”

Slide 128

Slide 128 text

What is Jekyll? In November 2008, Tom Preston-Werner, cofounder and CEO of GitHub, introduced Jekyll with a blog post and released the code. “I was tired of complicated blogging engines...I wanted to write great posts, not...lag behind the latest software release.” “First, all my writing would be stored in a Git repository. Complexity would be kept to an absolute minimum...”

Slide 129

Slide 129 text

What is Jekyll? In November 2008, Tom Preston-Werner, cofounder and CEO of GitHub, introduced Jekyll with a blog post and released the code. “I was tired of complicated blogging engines...I wanted to write great posts, not...lag behind the latest software release.” “First, all my writing would be stored in a Git repository. Complexity would be kept to an absolute minimum...” “Jekyll is a simple, blog aware, static site generator. It takes a template directory (representing the raw form of a website), runs it through Textile [or Markdown] and Liquid converters, and spits out a complete, static website.”

Slide 130

Slide 130 text

Why Jekyll?

Slide 131

Slide 131 text

Why Jekyll? Jekyll is static.

Slide 132

Slide 132 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary

Slide 133

Slide 133 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer

Slide 134

Slide 134 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer • Fast

Slide 135

Slide 135 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer • Fast • Secure

Slide 136

Slide 136 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer • Fast • Secure • Easier local testing

Slide 137

Slide 137 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer • Fast • Secure • Easier local testing Organize your code (into templates and partials) for scaling and reusability.

Slide 138

Slide 138 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer • Fast • Secure • Easier local testing Organize your code (into templates and partials) for scaling and reusability. Jekyll is built into GitHub Pages - host your Jekyll site for free.

Slide 139

Slide 139 text

Why Jekyll? Jekyll is static. • Minimal server and no database calls necessary • Doesn't require a caching layer • Fast • Secure • Easier local testing Organize your code (into templates and partials) for scaling and reusability. Jekyll is built into GitHub Pages - host your Jekyll site for free. Write in Textile or Markdown.

Slide 140

Slide 140 text

Textile and Markdown # Level One Headline ## Level Two Headline ### Level Three Headline This a parapraph full of **bold** and *italic* text, and a [link] (http://url.com) as well. * List item 1 * List item 2 Markdown

Level One Headline

Level Two Headline

Level Three Headline

This is a paragraph full of bold and italic text, and a link as well.

  • First list item
  • Second list item
Compiled HTML h1. Level One Headline h2. Level Two Headline h3. Level Three Headline This is a paragraph full of *bold* and _italic_ text, and a “link”:http://url.com as well. * List item 1 * List item 2 Textile

Slide 141

Slide 141 text

Jekyll OK, so how do we start using Jekyll?

Slide 142

Slide 142 text

Jekyll Structure ... {{ content }} ... Jekyll Compiled ( _site ) _layouts/default.html --- layout: default ---

Not too shabby, huh?

index.html

Not too shabby, huh?

index.html

Slide 143

Slide 143 text

Jekyll Structure ... {{ content }} ... _layouts/default.html

Slide 144

Slide 144 text

What is Jekyll? Jekyll is “a simple, blog aware, static site generator." Jekyll _includes _layouts _posts assets index.html _sites blog assets index.html

Slide 145

Slide 145 text

What is Jekyll? Jekyll is “a simple, blog aware, static site generator." Jekyll _includes _layouts _posts assets index.html _sites blog assets index.html

Slide 146

Slide 146 text

Jekyll Structure ... {{ content }} ... _layouts/default.html

Slide 147

Slide 147 text

Liquid

Slide 148

Slide 148 text

Liquid Liquid is a templating language, aka a templating engine, that was developed by Shopify for use on their own site.

Slide 149

Slide 149 text

Liquid Liquid is a templating language, aka a templating engine, that was developed by Shopify for use on their own site. Templating languages include Haml, ERB, Handlebars, Jade, etc.

Slide 150

Slide 150 text

Liquid Liquid is a templating language, aka a templating engine, that was developed by Shopify for use on their own site. Templating languages include Haml, ERB, Handlebars, Jade, etc. There are 2 types of Liquid markup:

Slide 151

Slide 151 text

Liquid Liquid is a templating language, aka a templating engine, that was developed by Shopify for use on their own site. Templating languages include Haml, ERB, Handlebars, Jade, etc. There are 2 types of Liquid markup: • Output Markup

Slide 152

Slide 152 text

Liquid Liquid is a templating language, aka a templating engine, that was developed by Shopify for use on their own site. Templating languages include Haml, ERB, Handlebars, Jade, etc. There are 2 types of Liquid markup: • Output Markup • Tag Markup

Slide 153

Slide 153 text

Liquid ( output markup )
{{ content }}
Liquid

Contact Us!

...

Compiled HTML

Slide 154

Slide 154 text

Liquid ( tag markup )

Hi there {% comment %} you sack of potatoes {% endcomment %}

Liquid

Hi there

Compiled HTML

{% if user.name == 'Jack' %} Hello Jack! {% else %} Hello Friend! {% endif %}

Hello Jack

Slide 155

Slide 155 text

Liquid {% if user %} Hello {{ user.name }} {% endif %} {% for item in array %} {{ item }} {% endfor %} {{ 'Brian Middleton!' | prepend:'Hi there' }} {{ 'Supercalifragilisticexpialidocious' | truncate:'5' }} {{ 'Hey there dude!' | replace:'dude','buddy' }} {{ 'This is my first paragraph.' | number_of_words }}

Slide 156

Slide 156 text

Jekyll Structure ... {{ content }} ... _layouts/default.html

Slide 157

Slide 157 text

Jekyll Structure --- layout: default ---

Not too shabby, huh?

index.html

Slide 158

Slide 158 text

Jekyll Structure ... {{ content }} ... Jekyll Compiled ( _site ) _layouts/default.html --- layout: default ---

Not too shabby, huh?

index.html

Not too shabby, huh?

index.html

Slide 159

Slide 159 text

How Do We Compile Jekyll?

Slide 160

Slide 160 text

How Do We Compile Jekyll? The jekyll RubyGem

Slide 161

Slide 161 text

How Do We Compile Jekyll? The jekyll RubyGem And, um, what’s a gem?

Slide 162

Slide 162 text

How Do We Compile Jekyll? The jekyll RubyGem And, um, what’s a gem? • Gems are Ruby programs and libraries distributed through RubyGems

Slide 163

Slide 163 text

How Do We Compile Jekyll? The jekyll RubyGem And, um, what’s a gem? • Gems are Ruby programs and libraries distributed through RubyGems $ gem install jekyll $ jekyll build

Slide 164

Slide 164 text

How Do We Compile Jekyll? The jekyll RubyGem And, um, what’s a gem? • Gems are Ruby programs and libraries distributed through RubyGems $ gem install jekyll $ jekyll build “Every GitHub Page is run through Jekyll when you push content to your repo.” GitHub Pages will compile our Jekyll site for us. MAGIC!

Slide 165

Slide 165 text

Jekyll Commands $ jekyll build $ jekyll serve $ jekyll serve --watch The jekyll build command compiles our site. jekyll serve fires up a server that will host your _site directory. The --watch flag tells Jekyll to rebuild the site whenever files are modified.

Slide 166

Slide 166 text

Enough already, Let’s code!

Slide 167

Slide 167 text

You did it! Thanks so much for joining us! [email protected] @jackbouba [email protected] @aapljack