4. Static site generator ...
Blog or Site generation
Coding HTML pages with duplicated
markup
Too cumbersome
Approaching with language (Ruby on Rails/
PHP)
Learn the language
Store content in a database
5. Static site generator ...
Is a program, that generates an HTML website
Separates out the layout, content and styles
6. Advantages of a Static Site Generator?
No database layer
Less memory - to serve your website
Copy of your content
Easily choose website hosting
Website Hosting is cheaper
7. Disadvantages of a Static Site Generator?
Static site generator software needed
Can’t have local comments
Contact us forms (without some dynamic code
etc)
9. Selection Criteria?
Don’t force to learn languages
easy to understand layouts
example websites to learn from
server that provides me a development
environment
Good documentation
15. Flexible and configurable
Template scripting support
Blog aware
Draft publishing support
Use any front end framework...
Bootstrap
Foundation
21. Data Variables
This data is available to all templates regardless.
${version} = version of JBake
${posts} = collection of all posts (files that don’t have
type=page)
${pages} = collection of all pages (files that have
type=page)
${config.[options]} = map of configuration data
22. Data Variables
Expandable Header
Include extra meta data in the header - exposed to the
templates:
summary=This is a summary of the larger post
And access it from the template like so:
<p>${content.summary}</p>