From 1ca5ffca2b402f59ace003f9c1eee79e3b9a677c Mon Sep 17 00:00:00 2001
From: Yaroslav
Date: Wed, 3 Jun 2020 23:56:17 +0300
Subject: new recipes section, first recipe
---
config.toml | 2 +-
.../carbonara.jpg | Bin 0 -> 231573 bytes
.../2020-06-03_spaghetti-alla-carbonara/index.md | 48 +++++++++++++++++++++
.../ruchlen.jpg | Bin 0 -> 1199445 bytes
content/food/_index.md | 5 +++
templates/base.html | 6 ++-
templates/page.html | 8 +++-
templates/weblog.html | 14 ++++++
8 files changed, 79 insertions(+), 4 deletions(-)
create mode 100644 content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg
create mode 100644 content/food/2020-06-03_spaghetti-alla-carbonara/index.md
create mode 100644 content/food/2020-06-03_spaghetti-alla-carbonara/ruchlen.jpg
create mode 100644 content/food/_index.md
diff --git a/config.toml b/config.toml
index f4edb34..742f268 100644
--- a/config.toml
+++ b/config.toml
@@ -1,4 +1,4 @@
-title = "A weblog by Yaroslav de la Peña Smirnov"
+title = "A website by Yaroslav de la Peña Smirnov"
base_url = "https://www.yaroslavps.com/"
generate_feed = true
diff --git a/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg
new file mode 100644
index 0000000..a4ac84e
Binary files /dev/null and b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg differ
diff --git a/content/food/2020-06-03_spaghetti-alla-carbonara/index.md b/content/food/2020-06-03_spaghetti-alla-carbonara/index.md
new file mode 100644
index 0000000..b264ae8
--- /dev/null
+++ b/content/food/2020-06-03_spaghetti-alla-carbonara/index.md
@@ -0,0 +1,48 @@
++++
+title = "Spaghetti alla carbonara"
+date = 2020-06-03T20:51:00Z
++++
+
+[![Spaghetti alla carbonara](carbonara.jpg)](ruchlen.jpg)
+
+I don't know many pasta or spaghetti recipes, but this is definitely one of my
+favorite. You don't need many ingredients to cook it, and it is very fast and
+easy to cook. This is of course not the "original" version, but rather my own
+version of the dish, but I believe it is still quite delicious.
+
+
+
+The main difference is that the original recipe uses pancetta (a type of Italian
+salami). However, since nobody sells that where I live, I use bacon, which is
+the next best thing (and because I love bacon). I also add some sour cream to
+the egg mix to make the sauce more creamy, but you can forgo that if you'd like.
+
+## Ingredients
+
+Here is the ingredient list for about two adult-sized portions.
+
+* 2 eggs
+* 250g of spaghetti
+* 6-8 bacon stripes
+* ½ - 1 tablespoon sour cream (optional)
+* Some Parmigiano (Parmesan cheese)
+* Salt
+* Black pepper
+* Olive oil
+
+## Instructions
+
+1. Boil some water in a pot and add some salt to it. After the water has begun
+ to boil add the spaghetti and cook it al dente.
+2. Cut the bacon stripes and fry them on a frying pan over medium heat.
+3. While the spaghetti and the bacon are being cooked, prepare the sauce. Beat
+ two eggs in a bowl and add the spoonful of sour cream. Add salt and pepper to
+ taste. Shred the Parmesano and add it to the sauce mix. How much Parmesano
+ you want to add depends on your taste, I like to add as much Parmesano as
+ about half the volume of the egg mix (i.e. plenty).
+4. Once the spaghetti is done, drain it, add some olive oil to the frying pan
+ with the bacon, and add the spaghetti to the frying pan. Sauté for about 3
+ minutes over medium-low heat.
+5. Turn off the flame (very important) and add the egg and cheese sauce to the
+ pan and mix thoroughly.
+6. Serve and enjoy!
diff --git a/content/food/2020-06-03_spaghetti-alla-carbonara/ruchlen.jpg b/content/food/2020-06-03_spaghetti-alla-carbonara/ruchlen.jpg
new file mode 100644
index 0000000..a39154e
Binary files /dev/null and b/content/food/2020-06-03_spaghetti-alla-carbonara/ruchlen.jpg differ
diff --git a/content/food/_index.md b/content/food/_index.md
new file mode 100644
index 0000000..9813b83
--- /dev/null
+++ b/content/food/_index.md
@@ -0,0 +1,5 @@
++++
+sort_by = "date"
+template = "weblog.html"
+paginate_by = 10
++++
diff --git a/templates/base.html b/templates/base.html
index cb9fcb7..ccb167a 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -3,7 +3,11 @@
- {{ config.title }}
+
+ {% block title %}
+ {{ config.title }}
+ {% endblock %}
+
diff --git a/templates/page.html b/templates/page.html
index 5fc80db..36e34b8 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,9 +1,13 @@
{% extends "base.html" %}
-{% set post = page %}
{% block header %}
{{ page.title }}
Published {{ page.date | date(format="%b %d, %Y
- %H:%M UTC") }} on Yaroslav's weblog
+ %H:%M UTC") }} on
+ {% if page.permalink is containing("weblog") %}
+ Yaroslav's weblog