aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-06-03 23:56:17 +0300
committerYaroslav <contact@yaroslavps.com>2020-06-03 23:56:17 +0300
commit1ca5ffca2b402f59ace003f9c1eee79e3b9a677c (patch)
treea79ba6b3ebec61421a41410b20e7a52fc45d4ba6
parent93e66d4088b348899715e1f1a891c8a6092f4116 (diff)
downloadyaroslavps.com-1ca5ffca2b402f59ace003f9c1eee79e3b9a677c.tar.gz
yaroslavps.com-1ca5ffca2b402f59ace003f9c1eee79e3b9a677c.zip
new recipes section, first recipe
-rw-r--r--config.toml2
-rw-r--r--content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpgbin0 -> 231573 bytes
-rw-r--r--content/food/2020-06-03_spaghetti-alla-carbonara/index.md48
-rw-r--r--content/food/2020-06-03_spaghetti-alla-carbonara/ruchlen.jpgbin0 -> 1199445 bytes
-rw-r--r--content/food/_index.md5
-rw-r--r--templates/base.html6
-rw-r--r--templates/page.html8
-rw-r--r--templates/weblog.html14
8 files changed, 79 insertions, 4 deletions
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
--- /dev/null
+++ b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg
Binary files 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.
+
+<!-- more -->
+
+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
--- /dev/null
+++ b/content/food/2020-06-03_spaghetti-alla-carbonara/ruchlen.jpg
Binary files 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 @@
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
- <title>{{ config.title }}</title>
+ <title>
+ {% block title %}
+ {{ config.title }}
+ {% endblock %}
+ </title>
<link rel="stylesheet" href="{{ get_url(path="css/yaroslavps.css") }}">
<link rel="icon" type="image/png" href="{{ get_url(path="favicon32x32.png") }}">
<link rel="icon" type="image/png" href="{{ get_url(path="favicon64x64.png") }}">
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 %}
<h1>{{ page.title }}</h1>
<p class="publish-date">Published {{ page.date | date(format="%b %d, %Y
- %H:%M UTC") }} on <a href="/weblog">Yaroslav's weblog</a></p>
+ %H:%M UTC") }} on
+ {% if page.permalink is containing("weblog") %}
+ <a href="/weblog">Yaroslav's weblog</a></p>
+ {% elif page.permalink is containing("food") %}
+ <a href="/food">Yaroslav's recipe book</a></p>
+ {% endif %}
{% endblock %}
{% block content %}
<div class="post-container">
diff --git a/templates/weblog.html b/templates/weblog.html
index 43ebbdb..8bace98 100644
--- a/templates/weblog.html
+++ b/templates/weblog.html
@@ -1,6 +1,20 @@
{% extends "base.html" %}
+{% block title %}
+{% if section.permalink is containing("weblog") %}
+A weblog by Yaroslav de la Peña Smirnov
+{% elif section.permalink is containing("food") %}
+A collection of recipes by Yaroslav de la Peña Smirnov
+{% else %}
+{% endif %}
+{% endblock %}
{% block header %}
+{% if section.permalink is containing("weblog") %}
<h1>Yaroslav's weblog</h1>
+{% elif section.permalink is containing("food") %}
+<h1>Yaroslav's recipe book</h1>
+{% else %}
+<h1>Yaroslav's website</h1>
+{% endif %}
{% endblock %}
{% block content %}
<div class="posts-list">