create new project = new vm
gem install jekyll
jekyll new ansi-jekyll
cd ansi-jekyll
jekyll serve --watch
index.html
assign the layout to use
Layouts
Define the layout of your index.html
We can use
{% include any.html %}
That way we can create repetitive html files
in includes folder
create
head-include.html
we assign css and javascript we want
The fastest way is to use a cdn
google
How to create our Rooms
(content type)
in folder _posts
create
folder rooms/_posts
and each post
in each post we can assign
"fields"
---
layout: rooms
title: Studio
date: 2014-07-03 21:40:10
categories: rooms
image: image-url
subtitle: 2 Persons
section: studio
---
with a lOOP
{% for post in site.categories['rooms'] %}
{% endfor %}
We collect all the post in category
in
chronological order
(based on the post title)
how to have a reservation form
see messages
Styling
jekyll now supports sass