|
Why static websites?
|
Easier to dive into the components making up a site.
Static websites render faster as code doesn’t need to be run first, databases don’t need to be queered.
Easier to backup as static websites are a set of static files that can just be copied.
Popular static websites have far fewer or no security patches required as compared to dynamic sites.
|
|
First Jekyll site
|
Jekyll converts Markdown to HTML
Site wide configuration in _config.yml
YAML is used to express settings using key : value pairs
Setting up a site in a new location often requires changing the sites baseurl
The jekyll build command generates a site from Markdown and a theme
|
|
Page front matter
|
|
|
Site configuration
|
|
|
Pages and markdown
|
Markdown allows you to include text and image content.
Markdown also allows some control on how the content is formatted.
HTML can be used along side Markdown in Jekyll
HTML can be used to embed YouTube videos in a page.
|
|
Posts and assets
|
|
|
Hosting a site on github
|
|