From be0d305bf5d158a8ee2c89d985c8a36ec9e9816f Mon Sep 17 00:00:00 2001 From: Dario Ernst Date: Sun, 31 Oct 2021 20:48:39 +0100 Subject: [PATCH] Clean up and toolize --- .gitignore | 2 + content/_example_chicken-ramen.md | 48 +++++++++++++++++++ make.sh | 10 ++++ themes/cookbook/layouts/_default/list.html | 3 +- themes/cookbook/layouts/_default/single.html | 2 +- .../cookbook/layouts/partials/printhead.html | 1 - .../layouts/partials/printmetadata.html | 3 +- .../layouts/partials/printscript.html | 4 +- .../layouts/partials/printstatstable.html | 8 +--- 9 files changed, 67 insertions(+), 14 deletions(-) create mode 100644 .gitignore create mode 100644 content/_example_chicken-ramen.md create mode 100755 make.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5286d64 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +pdf/ diff --git a/content/_example_chicken-ramen.md b/content/_example_chicken-ramen.md new file mode 100644 index 0000000..9f8d704 --- /dev/null +++ b/content/_example_chicken-ramen.md @@ -0,0 +1,48 @@ +--- +draft: false +title: "Homemade Chicken Ramen" +servings: 8 +prep_time: 60 #in minutes #can be BLANK +cook: true # If we are cooking this, leave true, if we are cooling set to false +cook_increment: minutes # set to minutes or hours +cook_time: 20 #in minutes #can be BLANK +--- + + +## Ingredients + +#### Chicken + +- 4 Chicken Breasts (boneless) +- 2 tbsp unsalted butter +- Salt and Pepper + +#### Broth + +- 4 tsp sesame or vegetable oil +- 4 tsp fresh ginger, minced +- 6 tsp fresh garlic, minced +- 6 tbsp low-sodium soy sauce +- 4 tbsp mirin +- 8 cups rich chicken stock +- 1 1/2 cups fresh shitake or bella mushrooms +- Sea Salt (to taste) + +#### Noodles + +- 6 (2-3oz) packs of dried ramen noodles + +#### Extras + +- 6 Eggs +- 1 cup scallions or green onions, tops sliced +- optional: fresh jalapeno slices + +## Directions + +1. Cook the chicken: Preheat the oven to 375 degrees. Season the chicken generously with salt and pepper. Melt the butter in a large oven-safe skillet over medium heat. Add the chicken, and cook until it is golden brown. + 1. Transfer the skillet to the oven and roast for 15-20 minutes, until the chicken is cooked through. Remove from the oven, transfer the chicken to a plate and cover with foil until ready to serve. +2. Make the ramen broth: Heat the oil in a large pot (enough for 10 cups at least) over medium heat, until shimmering. Add the garlic and ginger, and cook for a few minutes until softened. Add the soy sauce and mirin, and stir to combine. Cook for another minute. Add the stock, and the bulbs of the green onions (if using, tops cut off) cover, and bring to boil. Remove the lid, and let simmer uncovered for 5 minutes, then add the dried mushrooms. Simmer gently for another 10 minutes, then remove the green onion bulbs and season with salt, to taste. +3. Make the soft-boiled eggs: Fill a pot with enough water to cover the eggs, and bring to a boil. Gently lower the eggs (still cold from the fridge) into the boiling water, and let simmer for 8 minutes (for a soft, but set-up yoke). + 1. Meanwhile, fill a large bowl with ice water. When the timer finishes, transfer the eggs to the ice bath to stop the cooking process. Wait at least 5 minutes, or until cool enough to handle, then carefully peel away the shell and slice in half, lengthwise. Set aside until ready to serve. +4. Assemble the ramen bowls: Meanwhile, chop the scallions and jalapeño (if using). Slice the chicken into thin pieces. Set aside. When the eggs finish cooking, add the ramen noodles to the boiling water. Cook for 2-3 minutes, until soft, then divide the noodles into two large bowls. Add the sliced chicken and the ramen broth. Top with the fresh scallions, jalapeño and the soft boiled egg. Serve immediately. diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..55dee4a --- /dev/null +++ b/make.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +rm -rf public/ +hugo +rm -rf pdf +mkdir pdf +for dir in public/print/* +do + chromium --temp-profile --headless --disable-gpu --run-all-compositor-stages-before-draw --allow-file-access-from-files --allow-running-insecure-content --print-to-pdf-no-header --print-to-pdf="pdf/$(basename $dir).pdf" "${dir}/print.html" +done diff --git a/themes/cookbook/layouts/_default/list.html b/themes/cookbook/layouts/_default/list.html index f28f6fe..2394ace 100644 --- a/themes/cookbook/layouts/_default/list.html +++ b/themes/cookbook/layouts/_default/list.html @@ -8,7 +8,6 @@

{{ .Title }} -

{{ $.Scratch.Set "category" .Title }} @@ -60,4 +59,4 @@ {{ end }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/cookbook/layouts/_default/single.html b/themes/cookbook/layouts/_default/single.html index 7ddb378..c6e19db 100644 --- a/themes/cookbook/layouts/_default/single.html +++ b/themes/cookbook/layouts/_default/single.html @@ -7,7 +7,7 @@ Placeholder image
- + print
diff --git a/themes/cookbook/layouts/partials/printhead.html b/themes/cookbook/layouts/partials/printhead.html index 11d8e76..db78ff0 100644 --- a/themes/cookbook/layouts/partials/printhead.html +++ b/themes/cookbook/layouts/partials/printhead.html @@ -2,7 +2,6 @@ - {{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} {{ $title }} diff --git a/themes/cookbook/layouts/partials/printmetadata.html b/themes/cookbook/layouts/partials/printmetadata.html index 4dc5dcf..21f887c 100644 --- a/themes/cookbook/layouts/partials/printmetadata.html +++ b/themes/cookbook/layouts/partials/printmetadata.html @@ -1,7 +1,6 @@ {{ with .Params.tags }} - {{ range . }} {{/* {{ $href := print (absURL "tags/") (urlize .) }} */}} {{ . }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/cookbook/layouts/partials/printscript.html b/themes/cookbook/layouts/partials/printscript.html index 15d4e8c..bb82e73 100644 --- a/themes/cookbook/layouts/partials/printscript.html +++ b/themes/cookbook/layouts/partials/printscript.html @@ -1,2 +1,2 @@ - - + + diff --git a/themes/cookbook/layouts/partials/printstatstable.html b/themes/cookbook/layouts/partials/printstatstable.html index 01b6b3f..a9c1c18 100644 --- a/themes/cookbook/layouts/partials/printstatstable.html +++ b/themes/cookbook/layouts/partials/printstatstable.html @@ -1,20 +1,17 @@
-

Servings

{{ .Params.Servings | default "---"}} Servings
-

Prep time

{{ .Params.Prep_time | default "---"}} Minutes
-
{{ if .Params.Cook }}

Cooking Time

@@ -29,10 +26,9 @@ {{ end }}
-

Calories

{{ .Params.Calories | default "---" }} Kcal -
-
\ No newline at end of file + +