Add Jekyll filles to repo

pull/2/head
Anna Debenham 2013-12-15 16:48:25 +00:00
parent da0c510244
commit f98656f889
10 changed files with 124 additions and 0 deletions

4
_config.yml Normal file
View File

@ -0,0 +1,4 @@
name: Christmas Recipes
markdown: redcarpet
pygments: true
baseurl: /christmas-recipes

2
_includes/foot.html Normal file
View File

@ -0,0 +1,2 @@
</body>
</html>

8
_includes/head.html Normal file
View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css" >
</head>
<body>

9
_includes/nav.html Normal file
View File

@ -0,0 +1,9 @@
<nav class="nav-primary" role="navigation" >
<ul>
{% for p in site.pages %}
<li>
<a {% if p.url == page.url %}class="active"{% endif %} href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a>
</li>
{% endfor %}
</ul>
</nav>

9
_layouts/default.html Normal file
View File

@ -0,0 +1,9 @@
{% include head.html %}
<h1>{{ page.title }}</h1>
{{ content }}
{% include nav.html %}
{% include foot.html %}

9
_layouts/post.html Normal file
View File

@ -0,0 +1,9 @@
---
layout: default
---
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="post">
{{ content }}
</div>

21
_layouts/recipe.html Normal file
View File

@ -0,0 +1,21 @@
{% include head.html %}
<main>
<h1>{{ page.title }}</h1>
<div class="img-wrapper">
<img src="{{ page.image }}" />
</div>
{{ content }}
<p>Recipe by <a href="{{ page.recipe-attribution-link }}">{{ page.recipe-attribution }}</a>.</p>
<p>Photo by <a href="{{ page.image-attribution-link }}">{{ page.image-attribution }}</a>.</p>
</main>
{% include nav.html %}
{% include foot.html %}

View File

@ -0,0 +1,24 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2013-12-15 13:25:16
categories: jekyll update
---
You'll find this post in your `_posts` directory - edit this post and re-build (or run with the `-w` switch) to see your changes!
To add new posts, simply add a file in the `_posts` directory that follows the convention: YYYY-MM-DD-name-of-post.ext.
Jekyll also offers powerful support for code snippets:
{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll's GitHub repo][jekyll-gh].
[jekyll-gh]: https://github.com/mojombo/jekyll
[jekyll]: http://jekyllrb.com

32
gingerbread.md Normal file
View File

@ -0,0 +1,32 @@
---
layout: recipe
title: Gingerbread
recipe-attribution: HungryJenny
recipe-attribution-link: http://www.opensourcefood.com/people/HungryJenny/recipes/soft-christmas-gingerbread-cookies
image: http://farm4.staticflickr.com/3121/3117777526_6399dc0e08_q.jpg
image-attribution: Deborah Lee Soltesz
image-attribution-link: http://www.flickr.com/photos/dsoltesz/3117777526/
---
Makes about 15 small cookies.
## Ingredients
* 175g plain flour
* 90g brown sugar
* 50g unsalted butter, diced, at room temperature
* 2 tbsp golden syrup
* 1 egg, beaten
* 1 tsp ground ginger
* 1 tsp cinnamon
* 1 tsp bicarbonate of soda
* Icing sugar to dust
## Method
1. Sift the flour, ginger, cinnamon and bicarbonate of soda into a large mixing bowl.
2. Use your fingers to rub in the diced butter. Mix in the sugar.
3. Mix the egg with the syrup then pour into the flour mixture. Fold in well to form a dough.
4. Tip some flour onto the work surface and knead the dough until smooth.
5. Preheat the oven to 180°C.
6. Roll the dough out flat and use a shaped cutter to make as many cookies as you like.
7. Transfer the cookies to a tray and bake in the oven for 15 minutes. Lightly dust the cookies with icing sugar.

6
index.md Normal file
View File

@ -0,0 +1,6 @@
---
layout: default
title: Home
---
Is this thing on?