Add Jekyll filles to repo

pull/2/head
Anna Debenham 9 years ago
parent da0c510244
commit f98656f889
  1. 4
      _config.yml
  2. 2
      _includes/foot.html
  3. 8
      _includes/head.html
  4. 9
      _includes/nav.html
  5. 9
      _layouts/default.html
  6. 9
      _layouts/post.html
  7. 21
      _layouts/recipe.html
  8. 24
      _posts/2013-12-15-welcome-to-jekyll.markdown
  9. 32
      gingerbread.md
  10. 6
      index.md

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

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

@ -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>

@ -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>

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

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

@ -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 %}

@ -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

@ -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.

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