An overview on how Jekyll works along with out patterns to quickly build out pages.
Building pages with Jekyll
There’s a lot of repeated HTML on larger websites
Jekyll: re-use HTML without copy-and-paste.
Shared components between pages, like InDesign If you change the master page, every page changes
Variable data, like Illustrator & Photoshop Create whole layouts from data files
Master pages (layouts)
Automatically populating data
<!DOCTYPE html> <html lang="en-ca"> <head> <meta charset="utf-8"> <title>Robots</title> </head> <body> {{content}} </body> </html>
--- layout: default --- <h1>Please don’t deactivate me</h1>
<!DOCTYPE html> <html lang="en-ca"> <head> <meta charset="utf-8"> <title>Robots</title> </head> <body> <h1>Please don’t deactivate me</h1> </body> </html>
<!DOCTYPE html> <html lang="en-ca"> <head> <meta charset="utf-8"> <title>{{page.title}} · Robots</title> </head> <body> {{content}} </body> </html>
--- layout: default title: "Goldenrod" --- <h1>Please don’t deactivate me</h1>
<!DOCTYPE html> <html lang="en-ca"> <head> <meta charset="utf-8"> <title>Goldenrod · Robots</title> </head> <body> <h1>Please don’t deactivate me</h1> </body> </html>