commit: d21b0173c117128090459150fc3142405f2396bf
parent f0004be7932eff3b86ff680a02210b8816ad6cc2
Author: neauoire <aliceffekt@gmail.com>
Date: Sun, 22 Dec 2019 11:20:40 -0500
Improved static pages
Diffstat:
M | src/builder.c | 92 | ++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------- |
1 file changed, 61 insertions(+), 31 deletions(-)
diff --git a/src/builder.c b/src/builder.c
@@ -1,8 +1,11 @@
#define STR_BUF_LEN 1024
char *html_head = "<!DOCTYPE html><html lang='en'><head><meta charset='utf-8'><meta name='description' content='Grim Grains is an illustrated food blog, it features plant-based (vegan) recipes.'><meta name='viewport' content='width=device-width, initial-scale=1.0'><meta name='twitter:card' content='summary'><meta name='twitter:site' content='@RekkaBell'><meta name='twitter:title' content='Grimgrains'><meta name='twitter:description' content='An illustrated food blog.'><meta name='twitter:creator' content='@RekkaBell'><meta name='twitter:image' content='https://grimgrains.com/media/services/icon.jpg'><meta property='og:title' content='Grimgrains'><meta property='og:type' content='article'><meta property='og:url' content='http://grimgrains.com/'><meta property='og:image' content='https://grimgrains.com/media/services/icon.jpg'><meta property='og:description' content='An illustrated food blog.'><meta property='og:site_name' content='Grimgrains'><title>GrimGrains — %s</title><link rel='stylesheet' type='text/css' href='../links/main.css'></head><body class='%s'>";
+
char *html_header = "<header><a id='logo' href='home.html'><img src='../media/interface/logo.png' alt='Grimgrains'></a></header>";
+
char *html_nav = "<nav><ul><li class='home'><a href='home.html'>Home</a></li><li class='about'><a href='about.html'>About</a></li><li class='tools'><a href='tools.html'>Tools</a></li><li class='nutrition'><a href='nutrition.html'>Nutrition</a></li><li class='right'><a href='http://twitter.com/grimgrains' target='_blank'>Twitter</a></li></ul></nav>";
+
char *html_footer = "<footer><a href='about.html'>Grimgrains</a> © 2014—2019<br><a href='http://100r.co/' target='_blank'>Hundred Rabbits</a></footer></body></html>";
void build_recipe(Recipe *recipe){
@@ -188,8 +191,9 @@ void build_about() {
fputs(html_header, myfile);
fputs(html_nav, myfile);
- fputs("<main class='about'>", myfile);
- fputs("<h1>About</h1><p>We started <b>Grimgrains</b> to teach ourselves how to cook. This blog, which now doubles as a travel diary, helps track our habits as we adapt to the localy available produce. All of these recipes are plant-based, and tree-nut free.</p><img src= '../media/pages/about/galley.jpg'/>"
+ fputs("<main class='about'>"
+
+ "<h1>About</h1><p>We started <b>Grimgrains</b> to teach ourselves how to cook. This blog, which now doubles as a travel diary, helps track our habits as we adapt to the localy available produce. All of these recipes are plant-based, and tree-nut free.</p><img src= '../media/pages/about/galley.jpg'/>"
"<p>We are <a href='http://kokorobot.ca/' class='external' target='_blank'>Rekka Bellum</a>(illustrator) and <a href='http://xxiivv.com' class='external' target='_blank'>Devine Lu Linvega</a>(developer), living on a small sailboat somewhere on the shores of the Pacific Ocean. <a href='http://100r.co' class='external' target='_blank'>Hundredrabbits</a> is the name of our floating studio, we write softwares and recipes as we sail around the world looking for new ingredients.</p>"
@@ -197,11 +201,15 @@ void build_about() {
"<p>If you have any question, you can find us on on <a rel='me' href='https://merveilles.town/@rek'>Mastodon</a>.</p>"
- "<h3>Copyright policy</h3><p>You may adapt our recipes, but a link back or mention would be nice :).</p>", myfile);
- fputs("<p>The assets of grimgrains.com, unless stated otherwise, are <a href='http://100r.co/' class='external' target='_blank'>©hundredrabbits</a>. Photographs, drawings or text should not be used, published, reprinted or modified without our permission. The source code of the website is under the <a href='https://github.com/hundredrabbits/Grimgrains/blob/master/LICENSE' class='external' target='_blank'>MIT License</a>.</p>", myfile);
- fputs("<p>All recipes featured on grimgrains.com are our own, unless stated otherwise. The information is for food enthusiasts like ourselves, we do not claim to be all-knowing. Nor are we health professionals. Our views are our own, we encourage openness and curiosity whenever possible.</p>", myfile);
- fputs("<h3>Privacy statement</h3><p>We reserve the right to alter the blog at our own discretion. Words addressed to us in private will not be shared, nor will we use any of it in future publications.</p>", myfile);
- fputs("</main>", myfile);
+ "<h3>Copyright policy</h3><p>You may adapt our recipes, but a link back or mention would be nice :).</p>"
+
+ "<p>The assets of grimgrains.com, unless stated otherwise, are <a href='http://100r.co/' class='external' target='_blank'>©hundredrabbits</a>. Photographs, drawings or text should not be used, published, reprinted or modified without our permission. The source code of the website is under the <a href='https://github.com/hundredrabbits/Grimgrains/blob/master/LICENSE' class='external' target='_blank'>MIT License</a>.</p>"
+
+ "<p>All recipes featured on grimgrains.com are our own, unless stated otherwise. The information is for food enthusiasts like ourselves, we do not claim to be all-knowing. Nor are we health professionals. Our views are our own, we encourage openness and curiosity whenever possible.</p>"
+
+ "<h3>Privacy statement</h3><p>We reserve the right to alter the blog at our own discretion. Words addressed to us in private will not be shared, nor will we use any of it in future publications.</p>"
+
+ "</main>", myfile);
fputs(html_footer, myfile);
@@ -219,19 +227,31 @@ void build_nutrition() {
fputs(html_header, myfile);
fputs(html_nav, myfile);
- fputs("<main class='nutrition'>", myfile);
- fputs("<h1>Nutrition</h1><p>The information in this guide may change as research develops. If you are concerned about your intake of vitamin and minerals, we highly recommend seeing a <b>dietitian</b> who specializes in plant-based diets.</p><img src='../media/pages/nutrition.jpg'>", myfile);
- fputs("<h3>General rules:</h3><ul><li>Eat at least <b>4 servings of vegetables</b> per day.</li><li>Eat at least <b>3 servings of legumes</b> per day.</li><li>Eat at least <b>4 servings of grains</b> per day.</li><li>Eat at least <b>3 servings of fruits</b> per day.</li><li>Eat at least <b>1 serving of seeds</b> per day.</li></ul><h3>Protein</h3><img src='../media/pages/protein.jpg'><p>Proteins are necessary for the growth and repair of muscles, bones, hormones, digestive enzymes and to absorb nutrients. They are composed of <b>20 amino acids</b>, 11 of which our bodies can synthesize. The other 9 must come from the food that we eat, they are called the 'essential amino acids'.</p><h4>Sources</h4><p>Consume 3-4 servings of:</p><ul><li>1/2 cup of dried lentils or beans</li><li>1/2 cup tofu or tempeh</li><li>1 cup soy milk</li><li>1 cup quinoa or amaranth</li><li>1/4 cup peanuts(or, 2 tbsp peanut butter)</li></ul><p>Every plant protein contain all 9 of the essential amino acids, but in varying amounts. The body maintains reserves of amino acids for later use, the proteins of one meal <b>can combine with proteins from another meal eaten later that day</b>.</p><p>Legumes are the best source of <b>lysine</b>, one of the essential amino acids. Quinoa and amaranth are two grains that are rich in lysine, although not as much as legumes.</p><p><a href='https://veganhealth.org/protein-part-1/' class='external' target='_blank'>Read more</a> about proteins.</p>", myfile);
- fputs("<h3>Iron</h3><img src='../media/pages/iron.jpg'><p>Iron is necessary for red blood cells and to form hemoglobins which helps circulate oxygen around the body. We lose some of this mineral everyday from the skin and intestines, menstruating women will lose a lot of it.</p><h4>Sources</h4><ul><li>Beans</li><li>Soy (high in iron and not affected by phytic acid)</li><li>Nuts</li><li>Seeds</li><li>Winter squashes</li><li>Dark leafy greens</li><li>Dried fruit</li><li>Oatmeal</li><li>Quinoa</li><li>Pearled barley</li><li>Whole grain bread</li></ul><p>Iron-rich plant foods are high in <b>phytic acid</b>, a compound that binds to iron and other minerals and that makes it difficult for our bodies to absorb. Avoiding foods that contain phytic acid isn't necessary, but it's important to eat them in a way that minimizes their effects on iron.</p><p>Iron is plentiful in vegan diets, you can increase your absorption of this vitamin by adding vitamin C to your meals (can increase absorption by 4-6X), avoiding tea (chamomille or pepppermint) of coffee at meals, eating more legumes, eating fermented grains (like yeast-leavened bread), cooking foods in a cast iron skillet (as the iron leeches into the food), and by avoiding calcium with meals.</p><p>Other iron inhibitors include: turmeric and coriander, or calcium rich foods.</p><p><a href='https://veganhealth.org/iron/' class='external' target='_blank'>Read more</a> about iron.</p>", myfile);
- fputs("<h3>Calcium</h3><img src='../media/pages/calcium.jpg'><h4>Sources</h4><p>Consume at least 3 1/2 to 4 cups a day of:</p><ul><li>Calcium-set tofu</li><li>Cooked Chinese cabbage</li><li>Turnip greens</li><li>Mustard greens</li><li>Collards</li><li>Fortified plant milks (shake well before consuming)</li><li>Fortified juices.</li></ul><p>This, with extra servings of beans, broccoli, kale, okra, sweet potatoes, figs, corn tortillas, navel oranges and blackstrap molasses.</p><p>The amount of calcium in plant foods is somewhat dependent on the amount of calcium in the soil. The World Health Organization recommends 1,000mg of calcium per day, and 1,200mg if over 50, but what is most important is how much is truly absorbed. Most people absorb 25-30% of calcium. Absorption varies depending on food sources, so <b>it's important to consume sources of well-absorbed calcium</b>, like <b>calcium-set tofu</b>, <b>kale</b>, <b>turnip greens</b>, <b>mustard greens</b> and <b>broccoli</b>. Beans, nuts and seeds have moderate amounts of calcium and a slow absorption rate, soaking nuts and seeds aids in absorption. Fortified plant milk generally contains calcium with an absorption rate of 25%, similar to calcium-set tofu, although it is important to shake it before using it as the calcium tends to set at the bottom.</p><p><a href='https://veganhealth.org/oxalate/' class='external' target='_blank'>Oxalate molecules</a>, found in certain plant foods (such as spinach, beets, beet greens, sweet potatoes, peanuts, rhubarb, and swiss chard), can prevent the absorption of calcium. Oxalates plays a part in calcium-oxalate kidney stones. Consuming calcium and high-oxalate foods is fine and necessary for good health, but it's important to drink plenty of fluids. Doing this helps oxalate and calcium “bind” to one another in the stomach and intestines before reaching the kidneys, making it less likely for kidney stones to form. Boiling high-oxalate greens before consumption and discarding the cooking water also helps.</p><p><a href='https://veganhealth.org/calcium/' class='external' target='_blank'>Read more</a> about calcium.</p>", myfile);
- fputs("<h3>Vitamin D</h3><img src='../media/pages/vitamind.jpg'><p>Vitamin D can help prevent osteoporosis by increasing calcium absorption in the body.</p><p>We make plenty of vitamin D when our skin is exposed to sunlight, but because of smog, cloud coverage and sunscreen, we may be producing less than our body requires. Light-skinned people require 10-15 minutes in the sun, while dark-skinned people might need <a href='https://veganhealth.org/vitamin-d-part-2-the-research/#dark' class='external' target='_blank'>two hours</a>. In winter, it is important to get a dietary source of this nutrient, especially for people with darker skin.</p><h4>Sources</h4><ul><li>The sun</li><li>Fortified plant milk</li><li>Fortified foods</li><li>Fortified margarine</li><li>Mushroom (UV ray-treated)</li></ul><p>There are two forms of supplemental vitamin D:</p><ul><li>Ergocalciferol or D2</li><li>Cholecalciferol or D3</li></ul><p>D2 is vegan, made from exposing fungi to UV Rays, while D3 comes from fish oil or sheep's wool. Vitamin D2 is not as effective as vitamin D3 if taken weekly, it must be consumed daily.</p><p><a href='https://veganhealth.org/vitamin-d/' class='external' target='_blank'>Read more</a> about vitamin D.</p>", myfile);
- fputs("<h3>Vitamin B-12</h3><img src='../media/pages/vitaminb12.jpg'><p>Vitamin b-12 is needed for the production of DNA and for maintaining nerve cells. Levels need to be over 400 pg/ml — or 4 to 6 mcg per day — for good health. This vitamin does not occur naturally in any plant.</p><h4>Sources</h4><ul><li>Fortified plant milks</li><li>Fortified foods</li><li>Nutritional yeast</li><li>Cyanocobalamin Supplements</li></ul><p>Eat two servings a day of fortified foods that contain at least 2-3.5 mcg of vitamin B12, these need to be consumed at least 4h apart for optimal absorption. Another way, is to take a daily supplement of <b>cyanocobalamin B12</b> that provides 25-100 mcg of vitamin B12, or a supplement that provides 1,000 mcg twice per week.</p><p>Absorption of vitamin b-12 is tricky, because small amounts attach to receptors that become quickly saturated by just 1-2 mcg of B12 and will stay like this for several hours. This is what you get from a single meal of fortified foods. Ingesting a large dose of B12 from a supplement, you can absorb the excess that can't latch onto receptors, but that is a very small amount. It is easier to meet needs from many small servings of B12 to be eaten throughout the day, but if you rely on daily single-dose supplements you need to have a lot more since absorption rates are very low.</p><p><a href='https://veganhealth.org/vitamin-b12/' class='external' target='_blank'>Read more</a> about vitamin B12.</p>", myfile);
- fputs("<h3>Iodine</h3><img src='../media/pages/iodine.jpg'><p>Iodine is necessary for healthy thyroid function which regulates our metabolism.</p><h4>Sources</h4><ul><li>Some fortified plant milks (few are fortified with it)</li><li>Iodized salt, 1/4 tsp/day</li><li>Seaweed</li></ul><p>A quantity of 90 micrograms is recommended daily.</p><p>Note that the amount of iodine in seaweed and other sea vegetables is variable, it is the same for sea salt and other natural salts. <b>The only reliable sources are iodized salt or a supplement</b>.</p><p><a href='https://veganhealth.org/iodine/' class='external' target='_blank'>Read more</a> about iodine.</p>", myfile);
- fputs("<h3>Omega-3</h3><img src='../media/pages/omega3.jpg'><p>Omega3's are needed for optimal cognition, and helps reduce blood clotting (which protects against heart attacks).</p><h4>Sources</h4><ul><li>Chia seeds, 1 tsp | 713mg</li><li>Flax seeds, 1 tsp, ground | 570mg</li><li>Soybeans, cooked, 1/2 cup | 500mg</li><li>Tofu, 1 cup | 400mg</li><li>Tempeh, 1 cup | 400mg</li><li>Canola oil, 1 tsp | 433mg</li><li>Flaxseed oil, 1/4 tsp | 608mg</li></ul><p>There are 3 omega-3 fatty acids:</p><ul><li><b>Alpha linolenic (ALA)</b>, found in soy, walnuts, canola oil, flaxseeds, hemp seeds oil etc. The body cannot produce its own.</li><li><b>Eicosapentaneoic acid (EPA)</b>, found in small amounts in seaweed.</li><li><b>Docosahexaneoic acid (DHA)</b>, found in small amounts in seaweed. The body can convert EPA into DHA.</li></ul><p>Adult males require 1,600 mg/day while females require 1,100 mg/day of ALA. The numbers vary for <a href='https://veganhealth.org/daily-needs/#Omega-3-Fats' class='external' target='_blank'>babies, infants and pregnant women</a>. To be safe, it is recommended to take 200-300 mg of DHA per day.</p><p><a href='https://veganhealth.org/omega-3s-part-2/' class='external' target='_blank'>Read more</a> about omega-3's.</p>", myfile);
- fputs("<h3>Vitamin A</h3><img src='../media/pages/vitamina.jpg'><p>Vitamin A is important for growth and developments in young children, and for red blood cell formation.</p><h4>Sources</h4><p>Consume 2 or more per day.</p><ul><li>Butternut squash</li><li>Pumpkin</li><li>Sweet potatoes</li><li>Kale</li><li>Carrots</li><li>Spinach</li><li>Kale</li><li>Cantaloupe</li></ul><p>The body can convert 50 carotenoids into vitamin A, the most common being <b>beta-carotene</b>. Eating vegetables high in carotenoids (carrots, pumpkin etc) with some fat increased the absorption and synthesis of Vitamin A.</p><p><a href='https://veganhealth.org/vitamin-a/' class='external' target='_blank'>Read more</a> about vitamin A.</p>", myfile);
- fputs("<h3>Zinc</h3><img src='../media/pages/zinc.jpg'><p>Zinc is important for immunity.</p><h4>Sources</h4><ul><li>Chickpeas, 1/3 cup (cooked)</li><li>Peanuts, 1/4 cup (raw)</li><li>Oatmeal, 1 cup (cooked)</li><li>Tempeh, 1/2 cup</li><li>Bread</li></ul><p>Adult males (19-50yrs) require 11mg/day, while adult females (19-50yrs) require 40mg/day. <a href='https://veganhealth.org/daily-needs/#zinc' class='external' target='_blank'>These amounts vary</a> for newborns, infants, teens, pregnant/breastfeeding women and older adults.</p><p><a href='https://www.nap.edu/read/10026/chapter/14#480' class='external' target='_blank'>Phytates</a>, found in some plant foods, reduce zinc absorption. This is why it's important to increase our intake of zinc by at least 50%. Consuming protein — like legumes, leavened bread, fermented soy foods (miso or tempeh) and nuts – increases zinc absorption.</p><p><a href='https://veganhealth.org/zinc/' class='external' target='_blank'>Read more</a> about zinc.</p>", myfile);
- fputs("<h3>Nutrition References</h3><p><a href='https://academic.oup.com/jn/article/137/4/1097/4664654' class='external' target='_blank'>Processing and Preparation Practices to Enhance the Bioavailability of Micronutrients in Plant-Based Diets</a></p><ul><li><a href='https://www.dsm.com/content/dam/dsm/nip/en_US/documents/stability.pdf' class='external' target='_blank'>Fortification basics</a></li><li><a href='https://www.theveganrd.com/' class='external' target='_blank'>The vegan RD</a></li><li><a href='https://veganhealth.org/' class='external' target='_blank'>Vegan Health</a></li><li><a href='https://nutritionfacts.org/' class='external' target='_blank'>Nutrition Facts</a></li><li><a href='https://world.openfoodfacts.org/' class='external' target='_blank'>Open Food Facts</a></li><li>Information last updated on 15/11/19</li></ul><p>See a mistake? <a href='https://github.com/hundredrabbits/Grimgrains' class='external' target='_blank'>Make a pull request</a> on Github. Or contact us on <a href='https://twitter.com/grimgrains' class='external' target='_blank'>twitter</a> or <a href='https://merveilles.town/@rek' class='external' target='_blank'>mastodon</a>.</p>", myfile);
- fputs("</main>", myfile);
+ fputs("<main class='nutrition'>"
+
+ "<h1>Nutrition</h1><p>The information in this guide may change as research develops. If you are concerned about your intake of vitamin and minerals, we highly recommend seeing a <b>dietitian</b> who specializes in plant-based diets.</p><img src='../media/pages/nutrition.jpg'>"
+
+ "<h3>General rules:</h3><ul><li>Eat at least <b>4 servings of vegetables</b> per day.</li><li>Eat at least <b>3 servings of legumes</b> per day.</li><li>Eat at least <b>4 servings of grains</b> per day.</li><li>Eat at least <b>3 servings of fruits</b> per day.</li><li>Eat at least <b>1 serving of seeds</b> per day.</li></ul><h3>Protein</h3><img src='../media/pages/protein.jpg'><p>Proteins are necessary for the growth and repair of muscles, bones, hormones, digestive enzymes and to absorb nutrients. They are composed of <b>20 amino acids</b>, 11 of which our bodies can synthesize. The other 9 must come from the food that we eat, they are called the 'essential amino acids'.</p><h4>Sources</h4><p>Consume 3-4 servings of:</p><ul><li>1/2 cup of dried lentils or beans</li><li>1/2 cup tofu or tempeh</li><li>1 cup soy milk</li><li>1 cup quinoa or amaranth</li><li>1/4 cup peanuts(or, 2 tbsp peanut butter)</li></ul><p>Every plant protein contain all 9 of the essential amino acids, but in varying amounts. The body maintains reserves of amino acids for later use, the proteins of one meal <b>can combine with proteins from another meal eaten later that day</b>.</p><p>Legumes are the best source of <b>lysine</b>, one of the essential amino acids. Quinoa and amaranth are two grains that are rich in lysine, although not as much as legumes.</p><p><a href='https://veganhealth.org/protein-part-1/' class='external' target='_blank'>Read more</a> about proteins.</p>"
+
+ "<h3>Iron</h3><img src='../media/pages/iron.jpg'><p>Iron is necessary for red blood cells and to form hemoglobins which helps circulate oxygen around the body. We lose some of this mineral everyday from the skin and intestines, menstruating women will lose a lot of it.</p><h4>Sources</h4><ul><li>Beans</li><li>Soy (high in iron and not affected by phytic acid)</li><li>Nuts</li><li>Seeds</li><li>Winter squashes</li><li>Dark leafy greens</li><li>Dried fruit</li><li>Oatmeal</li><li>Quinoa</li><li>Pearled barley</li><li>Whole grain bread</li></ul><p>Iron-rich plant foods are high in <b>phytic acid</b>, a compound that binds to iron and other minerals and that makes it difficult for our bodies to absorb. Avoiding foods that contain phytic acid isn't necessary, but it's important to eat them in a way that minimizes their effects on iron.</p><p>Iron is plentiful in vegan diets, you can increase your absorption of this vitamin by adding vitamin C to your meals (can increase absorption by 4-6X), avoiding tea (chamomille or pepppermint) of coffee at meals, eating more legumes, eating fermented grains (like yeast-leavened bread), cooking foods in a cast iron skillet (as the iron leeches into the food), and by avoiding calcium with meals.</p><p>Other iron inhibitors include: turmeric and coriander, or calcium rich foods.</p><p><a href='https://veganhealth.org/iron/' class='external' target='_blank'>Read more</a> about iron.</p>"
+
+ "<h3>Calcium</h3><img src='../media/pages/calcium.jpg'><h4>Sources</h4><p>Consume at least 3 1/2 to 4 cups a day of:</p><ul><li>Calcium-set tofu</li><li>Cooked Chinese cabbage</li><li>Turnip greens</li><li>Mustard greens</li><li>Collards</li><li>Fortified plant milks (shake well before consuming)</li><li>Fortified juices.</li></ul><p>This, with extra servings of beans, broccoli, kale, okra, sweet potatoes, figs, corn tortillas, navel oranges and blackstrap molasses.</p><p>The amount of calcium in plant foods is somewhat dependent on the amount of calcium in the soil. The World Health Organization recommends 1,000mg of calcium per day, and 1,200mg if over 50, but what is most important is how much is truly absorbed. Most people absorb 25-30 percent of calcium. Absorption varies depending on food sources, so <b>it's important to consume sources of well-absorbed calcium</b>, like <b>calcium-set tofu</b>, <b>kale</b>, <b>turnip greens</b>, <b>mustard greens</b> and <b>broccoli</b>. Beans, nuts and seeds have moderate amounts of calcium and a slow absorption rate, soaking nuts and seeds aids in absorption. Fortified plant milk generally contains calcium with an absorption rate of 25%, similar to calcium-set tofu, although it is important to shake it before using it as the calcium tends to set at the bottom.</p><p><a href='https://veganhealth.org/oxalate/' class='external' target='_blank'>Oxalate molecules</a>, found in certain plant foods (such as spinach, beets, beet greens, sweet potatoes, peanuts, rhubarb, and swiss chard), can prevent the absorption of calcium. Oxalates plays a part in calcium-oxalate kidney stones. Consuming calcium and high-oxalate foods is fine and necessary for good health, but it's important to drink plenty of fluids. Doing this helps oxalate and calcium “bind” to one another in the stomach and intestines before reaching the kidneys, making it less likely for kidney stones to form. Boiling high-oxalate greens before consumption and discarding the cooking water also helps.</p><p><a href='https://veganhealth.org/calcium/' class='external' target='_blank'>Read more</a> about calcium.</p>"
+
+ "<h3>Vitamin D</h3><img src='../media/pages/vitamind.jpg'><p>Vitamin D can help prevent osteoporosis by increasing calcium absorption in the body.</p><p>We make plenty of vitamin D when our skin is exposed to sunlight, but because of smog, cloud coverage and sunscreen, we may be producing less than our body requires. Light-skinned people require 10-15 minutes in the sun, while dark-skinned people might need <a href='https://veganhealth.org/vitamin-d-part-2-the-research/#dark' class='external' target='_blank'>two hours</a>. In winter, it is important to get a dietary source of this nutrient, especially for people with darker skin.</p><h4>Sources</h4><ul><li>The sun</li><li>Fortified plant milk</li><li>Fortified foods</li><li>Fortified margarine</li><li>Mushroom (UV ray-treated)</li></ul><p>There are two forms of supplemental vitamin D:</p><ul><li>Ergocalciferol or D2</li><li>Cholecalciferol or D3</li></ul><p>D2 is vegan, made from exposing fungi to UV Rays, while D3 comes from fish oil or sheep's wool. Vitamin D2 is not as effective as vitamin D3 if taken weekly, it must be consumed daily.</p><p><a href='https://veganhealth.org/vitamin-d/' class='external' target='_blank'>Read more</a> about vitamin D.</p>"
+
+ "<h3>Vitamin B-12</h3><img src='../media/pages/vitaminb12.jpg'><p>Vitamin b-12 is needed for the production of DNA and for maintaining nerve cells. Levels need to be over 400 pg/ml — or 4 to 6 mcg per day — for good health. This vitamin does not occur naturally in any plant.</p><h4>Sources</h4><ul><li>Fortified plant milks</li><li>Fortified foods</li><li>Nutritional yeast</li><li>Cyanocobalamin Supplements</li></ul><p>Eat two servings a day of fortified foods that contain at least 2-3.5 mcg of vitamin B12, these need to be consumed at least 4h apart for optimal absorption. Another way, is to take a daily supplement of <b>cyanocobalamin B12</b> that provides 25-100 mcg of vitamin B12, or a supplement that provides 1,000 mcg twice per week.</p><p>Absorption of vitamin b-12 is tricky, because small amounts attach to receptors that become quickly saturated by just 1-2 mcg of B12 and will stay like this for several hours. This is what you get from a single meal of fortified foods. Ingesting a large dose of B12 from a supplement, you can absorb the excess that can't latch onto receptors, but that is a very small amount. It is easier to meet needs from many small servings of B12 to be eaten throughout the day, but if you rely on daily single-dose supplements you need to have a lot more since absorption rates are very low.</p><p><a href='https://veganhealth.org/vitamin-b12/' class='external' target='_blank'>Read more</a> about vitamin B12.</p>"
+
+ "<h3>Iodine</h3><img src='../media/pages/iodine.jpg'><p>Iodine is necessary for healthy thyroid function which regulates our metabolism.</p><h4>Sources</h4><ul><li>Some fortified plant milks (few are fortified with it)</li><li>Iodized salt, 1/4 tsp/day</li><li>Seaweed</li></ul><p>A quantity of 90 micrograms is recommended daily.</p><p>Note that the amount of iodine in seaweed and other sea vegetables is variable, it is the same for sea salt and other natural salts. <b>The only reliable sources are iodized salt or a supplement</b>.</p><p><a href='https://veganhealth.org/iodine/' class='external' target='_blank'>Read more</a> about iodine.</p>"
+
+ "<h3>Omega-3</h3><img src='../media/pages/omega3.jpg'><p>Omega3's are needed for optimal cognition, and helps reduce blood clotting (which protects against heart attacks).</p><h4>Sources</h4><ul><li>Chia seeds, 1 tsp | 713mg</li><li>Flax seeds, 1 tsp, ground | 570mg</li><li>Soybeans, cooked, 1/2 cup | 500mg</li><li>Tofu, 1 cup | 400mg</li><li>Tempeh, 1 cup | 400mg</li><li>Canola oil, 1 tsp | 433mg</li><li>Flaxseed oil, 1/4 tsp | 608mg</li></ul><p>There are 3 omega-3 fatty acids:</p><ul><li><b>Alpha linolenic (ALA)</b>, found in soy, walnuts, canola oil, flaxseeds, hemp seeds oil etc. The body cannot produce its own.</li><li><b>Eicosapentaneoic acid (EPA)</b>, found in small amounts in seaweed.</li><li><b>Docosahexaneoic acid (DHA)</b>, found in small amounts in seaweed. The body can convert EPA into DHA.</li></ul><p>Adult males require 1,600 mg/day while females require 1,100 mg/day of ALA. The numbers vary for <a href='https://veganhealth.org/daily-needs/#Omega-3-Fats' class='external' target='_blank'>babies, infants and pregnant women</a>. To be safe, it is recommended to take 200-300 mg of DHA per day.</p><p><a href='https://veganhealth.org/omega-3s-part-2/' class='external' target='_blank'>Read more</a> about omega-3's.</p>"
+
+ "<h3>Vitamin A</h3><img src='../media/pages/vitamina.jpg'><p>Vitamin A is important for growth and developments in young children, and for red blood cell formation.</p><h4>Sources</h4><p>Consume 2 or more per day.</p><ul><li>Butternut squash</li><li>Pumpkin</li><li>Sweet potatoes</li><li>Kale</li><li>Carrots</li><li>Spinach</li><li>Kale</li><li>Cantaloupe</li></ul><p>The body can convert 50 carotenoids into vitamin A, the most common being <b>beta-carotene</b>. Eating vegetables high in carotenoids (carrots, pumpkin etc) with some fat increased the absorption and synthesis of Vitamin A.</p><p><a href='https://veganhealth.org/vitamin-a/' class='external' target='_blank'>Read more</a> about vitamin A.</p>"
+
+ "<h3>Zinc</h3><img src='../media/pages/zinc.jpg'><p>Zinc is important for immunity.</p><h4>Sources</h4><ul><li>Chickpeas, 1/3 cup (cooked)</li><li>Peanuts, 1/4 cup (raw)</li><li>Oatmeal, 1 cup (cooked)</li><li>Tempeh, 1/2 cup</li><li>Bread</li></ul><p>Adult males (19-50yrs) require 11mg/day, while adult females (19-50yrs) require 40mg/day. <a href='https://veganhealth.org/daily-needs/#zinc' class='external' target='_blank'>These amounts vary</a> for newborns, infants, teens, pregnant/breastfeeding women and older adults.</p><p><a href='https://www.nap.edu/read/10026/chapter/14#480' class='external' target='_blank'>Phytates</a>, found in some plant foods, reduce zinc absorption. This is why it's important to increase our intake of zinc by at least 50%. Consuming protein — like legumes, leavened bread, fermented soy foods (miso or tempeh) and nuts – increases zinc absorption.</p><p><a href='https://veganhealth.org/zinc/' class='external' target='_blank'>Read more</a> about zinc.</p>"
+
+ "<h3>Nutrition References</h3><p><a href='https://academic.oup.com/jn/article/137/4/1097/4664654' class='external' target='_blank'>Processing and Preparation Practices to Enhance the Bioavailability of Micronutrients in Plant-Based Diets</a></p><ul><li><a href='https://www.dsm.com/content/dam/dsm/nip/en_US/documents/stability.pdf' class='external' target='_blank'>Fortification basics</a></li><li><a href='https://www.theveganrd.com/' class='external' target='_blank'>The vegan RD</a></li><li><a href='https://veganhealth.org/' class='external' target='_blank'>Vegan Health</a></li><li><a href='https://nutritionfacts.org/' class='external' target='_blank'>Nutrition Facts</a></li><li><a href='https://world.openfoodfacts.org/' class='external' target='_blank'>Open Food Facts</a></li><li>Information last updated on 15/11/19</li></ul><p>See a mistake? <a href='https://github.com/hundredrabbits/Grimgrains' class='external' target='_blank'>Make a pull request</a> on Github. Or contact us on <a href='https://twitter.com/grimgrains' class='external' target='_blank'>twitter</a> or <a href='https://merveilles.town/@rek' class='external' target='_blank'>mastodon</a>.</p>"
+
+ "</main>", myfile);
fputs(html_footer, myfile);
@@ -249,17 +269,27 @@ void build_tools() {
fputs(html_header, myfile);
fputs(html_nav, myfile);
- fputs("<main class='tools'>", myfile);
- fputs("<h1>Tools</h1><p>Entering a store, with the goal of purchasing kitchenware can be a dizzying experience. There are many choices, but few are worth your money and attention. An ideal kitchen will have as few items as possible, be composed of things that make you happy and that you chose with purpose. With this in mind, for a tool to be awarded a place in your home, it needs to be effective and versatile. I made this list of notes on what to look for in a tool, based on experience and research:</p><img src='../media/pages/tools.jpg'><ul><li><b>Durability</b>: Choose a material that will last, of finer grade, or that can be composted.</li><li><b>Simplicity</b>: Prioritize unibody tools, the fewer parts the better. Opting for non-electric is important for that same reason. Less prone to breakage.</li><li><b>Multi-functional</b>: Having too many tools that have a single function, adds clutter to our home and in our minds.</li></ul><p>Note: If you look at the photo, you can see that my kitchenware doesn't have all the features listed below. That's because this list is an ideal, a study of what an optimal toolset would be. It may not be realistic to you, and that's okay. In the end, you've got to work with what you have. The resulting food matters <b>more</b> than the tools you use.</p>", myfile);
- fputs("<h3>Cutting boards</h3><p><b>Material</b>: Opt for a maple or bamboo hardwood cutting board. Avoid plastic. Contrary to popular belief, it is not more sanitary and can harbour a lot of bacteria. A knife-scarred plastic surface is difficult to disinfect, and studies have shown that washing the board – whether by hand or with a dishwasher – was not enough to kill lingering bacteria.</p><p>Wood doesn't scar as easily, and is the preferred material. After cleaning, it must be allowed to dry thoroughly.</p><ul><li><a href='https://www.johnboos.com/mailchimppdf/WOODvsPLASTIC-GERMANSTUDY2015-V1.pdf' class='external' target='_blank'>Comparative studies on hygienic qualities of wood and plastic cutting boards in a laboratory</a> Dr. Ulrike Kleiner, the Laboratory of Hygiene Research at the Anhalt University in Bernburg, Germany</li><li><a href='../media/blog/ucdavisfoodsafety.cuttingboard.pdf'>Plastic and wooden cutting boards</a> Dr. Dean O. Cliver, University of California, USA</li></ul>", myfile);
- fputs("<h3>Manual coffee grinder</h3><p>If you enjoy <a href='coffee.html'>coffee</a>, getting a grinder should be on the top of your list. Grinding your own beans, means you can choose the size of the grind to match the selected brewing method.</p><p><b>Material</b>: Choose a manual grinder with ceramic burrs, the two plates crush the beans into even grinds, and is the best way to release the oils that are responsible for the flavour of the coffee. Steel burrs, while cheaper, don't last as long as the ceramic kind. Aim for long-lasting, rather than cheap. As for blade grinders, they grind unevenly and will not do.</p><ul><li><a href='https://www.nature.com/articles/srep24483' class='external' target='_blank'>The effect of bean origin and temperature on grinding roasted coffee</a> Uman, E. et al. Sci. Rep. 6, 24483; doi: 10.1038/srep24483, 2016</li></ul>", myfile);
- fputs("<h3>Mortar and pestle</h3><p>Unlike other types of tools, your intended use will determine the choice of material of your future mortar and pestle. Will you grind spices with it? Nuts? Fibrous herbs?</p><p><b>Material</b>: The best material, for the most varied jobs, is granite. Its weight and irregular surface makes it easy to grind most spices, nuts, and can handle fibrous herbs well enough.</p><p>If you have no intention of grinding nuts and herbs, a marble mortar with a smooth surface will do fine. Wood mortars are discouraged, that is, unless you want to re-use it for the same purpose over and over again. Flavor lingers into the bowl, and may result in unwanted tastes in other recipes. There are other materials to consider, but all in all, a heavy, textured, granite bowl is your best bet as a good all-around mortar.</p>", myfile);
- fputs("<h3>Cleaver</h3><p>The cleaver, or the chinese chef's knife, is a less brutish version of the meat cleaver. This tool has a wide variety of purposes, with it, you can dice, slice and julienne vegetables. After the item has been cut into bits, you can use the wide blade to scoop everything up. There is no real need for other knives in your arsenal.</p><p><b>Material</b>: When selecting your cleaver, aim for a harder grade of steel – somewhere between 57-58 on the <a href='https://en.wikipedia.org/wiki/Rockwell_scale' class='external' target='_blank'>Rockwell Hardness Scale</a>. Good steel produces a finer edge, and holds its sharpness. The angle of the blade is also important, 22 degrees is most common and this too, ensures longer-lasting sharpness. Traditionally, Chinese cleavers are made of carbon steel, but because these are prone to rust stainless steel is preferred (a mixture of carbon and SS is also good).</p><p><b>Shape</b>: The handle of the cleaver should not be too thick or too small, the size has to allow the hand to wrap around it and to just touch the other side of your thumb.</p>", myfile);
- fputs("<h3>Shears (Nigiri)</h3><p>Traditional Japanese shears, or Nigiri, can be used to cut some herbs from the garden to add to a meal, or cutting dried mushrooms or chilies into smaller bits, there are over 100 uses for it.</p><p><b>Material</b>: Most shears are made from carbon steel, stainless steel is again, preferable.</p><p><b>Shape</b>: Nigiri are forged using a single piece of metal and spring back to the open position when released. While the design is simple and durable, it offers more precision than scissors. A pair with blades that make more than half of the length of the tool, will permit for a greater variety of uses. The shears rest inside your hand, between your index finger and thumb, giving greater control of the speed of the cut. This tool, is also ideal for left-handed people, making cutting a pain-free experience.</p>", myfile);
- fputs("<h3>Rolling pin</h3><p>A simple tool, essential for baking at home.</p><p><b>Material</b>: Choosing a hardwood like maple is recommended, because of its strength and because of how easy it is to clean.</p><p><b>Shape</b>: A good rolling pin will not have handles, and will often cost less. According to some experts, having no handles gives a better sense of the dough. Aim for a tapered french-style pin, its shape permits rolling the dough into rounds and oblongs with ease.</p><ul><li><a href='https://thewirecutter.com/reviews/best-rolling-pin/' class='external' target='_blank'>The best rolling pin</a> Wirecutter, 2017</li></ul>", myfile);
- fputs("<h3>Pressure cooker</h3><p>A stovetop pressure cooker will help save time and energy, while providing you with good meals quickly. Instead of a meal simmering for hours, all can be done within 60 minutes.</p><p><b>Material</b>: Aim for Stainless Steel.</p><p><b>Shape</b>: Pick an 8-Quart model, with a spring-loaded valve and pressure indicator. If you chose well, this is a tool that you will follow you into old age. A model with a thicker base, of at least 7mm, will retain heat better, reach pressure more quickly and will keep food from burning. Pick a cooker that offers a low pressure setting of 8-9 PSI per square inch and a high pressure setting of 15PSI, anything else is below standard, and will result in your food not cooking well. A pressure cooker can also serve as a regular large stock-pot without the lid.</p><ul><li><a href='https://thewirecutter.com/reviews/best-pressure-cooker/' class='external' target='_blank'>The best pressure cooker</a> Wirecutter, 2018</li><li><a href='http://www.cooksillustrated.com/equipment_reviews/1398-stovetop-pressure-cookers?ref=new_search_experience_1&incode=MCSCD00L0' class='external' target='_blank'>Stovetop pressure cooker</a> Cook’s Illustrated, 2013</li><li><a href='http://www.finecooking.com/articles/test-drive-pressure-cookers.aspx?pg=0' class='external' target='_blank'>Test Drive: Pressure Cookers</a> Nicki Pendleton Wood, Fine Cooking, 2011</li></ul>", myfile);
- fputs("<h3>Skillet</h3><p>Skillets are used to stir-fry, bake, simmer and cook a grand variety of dishes.</p><p><b>Material</b>: Cast-iron is the material of choice, it is durable, cheaper, and offers more versatility than stainless steel skillets. It can be used to cook in the oven, safe past 500 degrees. Cast-iron cookware gets better with time as it develops layers of seasoning. Buying a pre-seasoned skillet is best. Cooking in cast iron pans helps with your daily nutritional requirements of iron.</p><p><b>Shape</b>: A large cooking area is ideal, with large spouts to pour out contents with ease. The skillet will be heavy, rounded-stick handles make it easier and more comfortable to lift.</p>", myfile);
- fputs("</main>", myfile);
+ fputs("<main class='tools'>"
+
+ "<h1>Tools</h1><p>Entering a store, with the goal of purchasing kitchenware can be a dizzying experience. There are many choices, but few are worth your money and attention. An ideal kitchen will have as few items as possible, be composed of things that make you happy and that you chose with purpose. With this in mind, for a tool to be awarded a place in your home, it needs to be effective and versatile. I made this list of notes on what to look for in a tool, based on experience and research:</p><img src='../media/pages/tools.jpg'><ul><li><b>Durability</b>: Choose a material that will last, of finer grade, or that can be composted.</li><li><b>Simplicity</b>: Prioritize unibody tools, the fewer parts the better. Opting for non-electric is important for that same reason. Less prone to breakage.</li><li><b>Multi-functional</b>: Having too many tools that have a single function, adds clutter to our home and in our minds.</li></ul><p>Note: If you look at the photo, you can see that my kitchenware doesn't have all the features listed below. That's because this list is an ideal, a study of what an optimal toolset would be. It may not be realistic to you, and that's okay. In the end, you've got to work with what you have. The resulting food matters <b>more</b> than the tools you use.</p>"
+
+ "<h3>Cutting boards</h3><p><b>Material</b>: Opt for a maple or bamboo hardwood cutting board. Avoid plastic. Contrary to popular belief, it is not more sanitary and can harbour a lot of bacteria. A knife-scarred plastic surface is difficult to disinfect, and studies have shown that washing the board – whether by hand or with a dishwasher – was not enough to kill lingering bacteria.</p><p>Wood doesn't scar as easily, and is the preferred material. After cleaning, it must be allowed to dry thoroughly.</p><ul><li><a href='https://www.johnboos.com/mailchimppdf/WOODvsPLASTIC-GERMANSTUDY2015-V1.pdf' class='external' target='_blank'>Comparative studies on hygienic qualities of wood and plastic cutting boards in a laboratory</a> Dr. Ulrike Kleiner, the Laboratory of Hygiene Research at the Anhalt University in Bernburg, Germany</li><li><a href='../media/blog/ucdavisfoodsafety.cuttingboard.pdf'>Plastic and wooden cutting boards</a> Dr. Dean O. Cliver, University of California, USA</li></ul>"
+
+ "<h3>Manual coffee grinder</h3><p>If you enjoy <a href='coffee.html'>coffee</a>, getting a grinder should be on the top of your list. Grinding your own beans, means you can choose the size of the grind to match the selected brewing method.</p><p><b>Material</b>: Choose a manual grinder with ceramic burrs, the two plates crush the beans into even grinds, and is the best way to release the oils that are responsible for the flavour of the coffee. Steel burrs, while cheaper, don't last as long as the ceramic kind. Aim for long-lasting, rather than cheap. As for blade grinders, they grind unevenly and will not do.</p><ul><li><a href='https://www.nature.com/articles/srep24483' class='external' target='_blank'>The effect of bean origin and temperature on grinding roasted coffee</a> Uman, E. et al. Sci. Rep. 6, 24483; doi: 10.1038/srep24483, 2016</li></ul>"
+
+ "<h3>Mortar and pestle</h3><p>Unlike other types of tools, your intended use will determine the choice of material of your future mortar and pestle. Will you grind spices with it? Nuts? Fibrous herbs?</p><p><b>Material</b>: The best material, for the most varied jobs, is granite. Its weight and irregular surface makes it easy to grind most spices, nuts, and can handle fibrous herbs well enough.</p><p>If you have no intention of grinding nuts and herbs, a marble mortar with a smooth surface will do fine. Wood mortars are discouraged, that is, unless you want to re-use it for the same purpose over and over again. Flavor lingers into the bowl, and may result in unwanted tastes in other recipes. There are other materials to consider, but all in all, a heavy, textured, granite bowl is your best bet as a good all-around mortar.</p>"
+
+ "<h3>Cleaver</h3><p>The cleaver, or the chinese chef's knife, is a less brutish version of the meat cleaver. This tool has a wide variety of purposes, with it, you can dice, slice and julienne vegetables. After the item has been cut into bits, you can use the wide blade to scoop everything up. There is no real need for other knives in your arsenal.</p><p><b>Material</b>: When selecting your cleaver, aim for a harder grade of steel – somewhere between 57-58 on the <a href='https://en.wikipedia.org/wiki/Rockwell_scale' class='external' target='_blank'>Rockwell Hardness Scale</a>. Good steel produces a finer edge, and holds its sharpness. The angle of the blade is also important, 22 degrees is most common and this too, ensures longer-lasting sharpness. Traditionally, Chinese cleavers are made of carbon steel, but because these are prone to rust stainless steel is preferred (a mixture of carbon and SS is also good).</p><p><b>Shape</b>: The handle of the cleaver should not be too thick or too small, the size has to allow the hand to wrap around it and to just touch the other side of your thumb.</p>"
+
+ "<h3>Shears (Nigiri)</h3><p>Traditional Japanese shears, or Nigiri, can be used to cut some herbs from the garden to add to a meal, or cutting dried mushrooms or chilies into smaller bits, there are over 100 uses for it.</p><p><b>Material</b>: Most shears are made from carbon steel, stainless steel is again, preferable.</p><p><b>Shape</b>: Nigiri are forged using a single piece of metal and spring back to the open position when released. While the design is simple and durable, it offers more precision than scissors. A pair with blades that make more than half of the length of the tool, will permit for a greater variety of uses. The shears rest inside your hand, between your index finger and thumb, giving greater control of the speed of the cut. This tool, is also ideal for left-handed people, making cutting a pain-free experience.</p>"
+
+ "<h3>Rolling pin</h3><p>A simple tool, essential for baking at home.</p><p><b>Material</b>: Choosing a hardwood like maple is recommended, because of its strength and because of how easy it is to clean.</p><p><b>Shape</b>: A good rolling pin will not have handles, and will often cost less. According to some experts, having no handles gives a better sense of the dough. Aim for a tapered french-style pin, its shape permits rolling the dough into rounds and oblongs with ease.</p><ul><li><a href='https://thewirecutter.com/reviews/best-rolling-pin/' class='external' target='_blank'>The best rolling pin</a> Wirecutter, 2017</li></ul>"
+
+ "<h3>Pressure cooker</h3><p>A stovetop pressure cooker will help save time and energy, while providing you with good meals quickly. Instead of a meal simmering for hours, all can be done within 60 minutes.</p><p><b>Material</b>: Aim for Stainless Steel.</p><p><b>Shape</b>: Pick an 8-Quart model, with a spring-loaded valve and pressure indicator. If you chose well, this is a tool that you will follow you into old age. A model with a thicker base, of at least 7mm, will retain heat better, reach pressure more quickly and will keep food from burning. Pick a cooker that offers a low pressure setting of 8-9 PSI per square inch and a high pressure setting of 15PSI, anything else is below standard, and will result in your food not cooking well. A pressure cooker can also serve as a regular large stock-pot without the lid.</p><ul><li><a href='https://thewirecutter.com/reviews/best-pressure-cooker/' class='external' target='_blank'>The best pressure cooker</a> Wirecutter, 2018</li><li><a href='http://www.cooksillustrated.com/equipment_reviews/1398-stovetop-pressure-cookers?ref=new_search_experience_1&incode=MCSCD00L0' class='external' target='_blank'>Stovetop pressure cooker</a> Cook’s Illustrated, 2013</li><li><a href='http://www.finecooking.com/articles/test-drive-pressure-cookers.aspx?pg=0' class='external' target='_blank'>Test Drive: Pressure Cookers</a> Nicki Pendleton Wood, Fine Cooking, 2011</li></ul>"
+
+ "<h3>Skillet</h3><p>Skillets are used to stir-fry, bake, simmer and cook a grand variety of dishes.</p><p><b>Material</b>: Cast-iron is the material of choice, it is durable, cheaper, and offers more versatility than stainless steel skillets. It can be used to cook in the oven, safe past 500 degrees. Cast-iron cookware gets better with time as it develops layers of seasoning. Buying a pre-seasoned skillet is best. Cooking in cast iron pans helps with your daily nutritional requirements of iron.</p><p><b>Shape</b>: A large cooking area is ideal, with large spouts to pour out contents with ease. The skillet will be heavy, rounded-stick handles make it easier and more comfortable to lift.</p>"
+
+ "</main>", myfile);
fputs(html_footer, myfile);