Add quality recipe badge
This commit is contained in:
parent
923242800b
commit
7ec8c6f6b2
30 changed files with 81 additions and 18 deletions
|
@ -6,10 +6,18 @@ j'ai trouvées et que je veux garder, que j'ai adaptées d'une manière ou d'une
|
||||||
autre, … et que j'ai pris la peine de noter ici parce qu'elles me
|
autre, … et que j'ai pris la peine de noter ici parce qu'elles me
|
||||||
semblaient en valoir le coup.
|
semblaient en valoir le coup.
|
||||||
|
|
||||||
Les recettes ici sont toutes végétariennes, mais beaucoup d'entre elles sont
|
Les recettes ici sont toutes végétariennes {{< partial1 "veganness_badge"
|
||||||
véganes ou trivialement véganisables. J'indique dans tous les cas leur
|
"vege" >}}, mais beaucoup d'entre elles sont véganes {{< partial1
|
||||||
|
"veganness_badge" "vegan" >}} ou trivialement véganisables {{< partial1
|
||||||
|
"veganness_badge" "veganisable" >}}. J'indique dans tous les cas leur
|
||||||
*veganness*.
|
*veganness*.
|
||||||
|
|
||||||
Les recettes sont classées en vastes catégories de saison *été* ou *hiver*, ou
|
Les recettes sont classées en vastes catégories de saison *été* {{< partial1
|
||||||
bien aucune des deux si ça ne nécessite pas de produits qui dépendent de la
|
"season_badge" "summer" >}} ou *hiver* {{< partial1 "season_badge" "winter"
|
||||||
saison.
|
>}}, ou bien aucune des deux si ça ne nécessite pas de produits qui dépendent
|
||||||
|
de la saison.
|
||||||
|
|
||||||
|
Certaines recettes ont été plus testées que les autres et sont *bien rodées*
|
||||||
|
{{< partial1 "quality_badge" "true" >}}. Elles sont normalement très fiables en
|
||||||
|
termes de proportions — pour certaines, ça veut même dire que j'ai déjà fait
|
||||||
|
des batches pour de l'ordre de la centaine de personnes.
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Pain à burger
|
title: Pain à burger
|
||||||
date: 2020-03-20T22:24:57+01:00 # FIXME?
|
date: 2020-03-20T22:24:57+01:00 # FIXME?
|
||||||
veganness: veganisable
|
veganness: veganisable
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 7
|
qt: 7
|
||||||
name: pains
|
name: pains
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Pain de mie
|
title: Pain de mie
|
||||||
date: 2020-05-17T19:02:21+02:00 # FIXME?
|
date: 2020-05-17T19:02:21+02:00 # FIXME?
|
||||||
veganness: veganisable
|
veganness: veganisable
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1
|
qt: 1
|
||||||
name: pain
|
name: pain
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: "Gougères au comté"
|
title: "Gougères au comté"
|
||||||
date: 2019-12-01T15:29:33+01:00
|
date: 2019-12-01T15:29:33+01:00
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 20
|
qt: 20
|
||||||
name: gougères moyennes
|
name: gougères moyennes
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Ginger beer
|
title: Ginger beer
|
||||||
date: 2020-03-31T23:19:25+02:00
|
date: 2020-03-31T23:19:25+02:00
|
||||||
veganness: vegan
|
veganness: vegan
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 2
|
qt: 2
|
||||||
name: litres
|
name: litres
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Caramel au beurre salé
|
title: Caramel au beurre salé
|
||||||
date: 2020-06-08T20:05:51+02:00 # FIXME?
|
date: 2020-06-08T20:05:51+02:00 # FIXME?
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 6
|
qt: 6
|
||||||
name: personnes (eg. dans des crêpes)
|
name: personnes (eg. dans des crêpes)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Crème pâtissière
|
title: Crème pâtissière
|
||||||
date: 2020-07-04T20:20:43+02:00 # FIXME?
|
date: 2020-07-04T20:20:43+02:00 # FIXME?
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1L
|
qt: 1L
|
||||||
name: de lait
|
name: de lait
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Tartelettes abricots-romarin
|
title: Tartelettes abricots-romarin
|
||||||
date: 2020-07-05T22:28:11+02:00
|
date: 2020-07-05T22:28:11+02:00
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 12
|
qt: 12
|
||||||
name: tartelettes
|
name: tartelettes
|
||||||
|
@ -29,7 +30,8 @@ entière de la recette.*
|
||||||
|
|
||||||
**Pour la crème pâtissière,** chauffer le lait à petite ébullition, ajouter le
|
**Pour la crème pâtissière,** chauffer le lait à petite ébullition, ajouter le
|
||||||
romarin, laisser infuser avec couvercle hors du feu au moins 10 minutes,
|
romarin, laisser infuser avec couvercle hors du feu au moins 10 minutes,
|
||||||
filtrer, puis reprendre la préparation d'une crème pâtissière normale. Ajouter
|
filtrer, puis reprendre la préparation d'une [crème pâtissière
|
||||||
|
normale](/recettes/patisserie/creme_patissiere/). Ajouter
|
||||||
un peu d'extrait de vanille en fin de cuisson.
|
un peu d'extrait de vanille en fin de cuisson.
|
||||||
|
|
||||||
**Pour les abricots rôtis,** laisser au four beaucoup plus longtemps que dans
|
**Pour les abricots rôtis,** laisser au four beaucoup plus longtemps que dans
|
||||||
|
|
|
@ -3,6 +3,7 @@ title: Pizza courgettes et champignons
|
||||||
date: 2020-03-19T16:15:15+01:00
|
date: 2020-03-19T16:15:15+01:00
|
||||||
veganness: vegan
|
veganness: vegan
|
||||||
season: summer
|
season: summer
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1
|
qt: 1
|
||||||
name: plaque 30x40cm
|
name: plaque 30x40cm
|
||||||
|
|
|
@ -3,6 +3,7 @@ title: Pizza (base crème) patates et poireaux
|
||||||
date: 2020-03-19T16:23:54+01:00
|
date: 2020-03-19T16:23:54+01:00
|
||||||
veganness: vege
|
veganness: vege
|
||||||
season: winter
|
season: winter
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1
|
qt: 1
|
||||||
name: plaque 30x40cm
|
name: plaque 30x40cm
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: "Pâte à pizza"
|
title: "Pâte à pizza"
|
||||||
date: 2020-03-19T15:38:26+01:00
|
date: 2020-03-19T15:38:26+01:00
|
||||||
veganness: vegan
|
veganness: vegan
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1
|
qt: 1
|
||||||
name: plaque 30x40 cm
|
name: plaque 30x40 cm
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Pizza tomates séchées et parmesan
|
title: Pizza tomates séchées et parmesan
|
||||||
date: 2020-03-19T16:15:15+01:00
|
date: 2020-03-19T16:15:15+01:00
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1
|
qt: 1
|
||||||
name: plaque 30x40cm
|
name: plaque 30x40cm
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Base de cake canonique
|
title: Base de cake canonique
|
||||||
date: 2018-10-03
|
date: 2018-10-03
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
ingredients:
|
ingredients:
|
||||||
- name: farine
|
- name: farine
|
||||||
article: de
|
article: de
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Frites
|
title: Frites
|
||||||
date: 2020-03-31T22:53:32+02:00
|
date: 2020-03-31T22:53:32+02:00
|
||||||
veganness: vegan
|
veganness: vegan
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 3
|
qt: 3
|
||||||
ingredients:
|
ingredients:
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: "Muffins tomates séchées et parmesan"
|
title: "Muffins tomates séchées et parmesan"
|
||||||
date: 2019-08-04T17:26:01+02:00
|
date: 2019-08-04T17:26:01+02:00
|
||||||
veganness: "vege"
|
veganness: "vege"
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 16
|
qt: 16
|
||||||
name: muffins (env.)
|
name: muffins (env.)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Patates sautées
|
title: Patates sautées
|
||||||
date: 2020-01-09T00:27:04+01:00 # FIXME?
|
date: 2020-01-09T00:27:04+01:00 # FIXME?
|
||||||
veganness: vegan
|
veganness: vegan
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 1
|
qt: 1
|
||||||
name: personne
|
name: personne
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Pâte à crêpes
|
title: Pâte à crêpes
|
||||||
date: 2020-06-08T22:53:34+02:00 # FIXME?
|
date: 2020-06-08T22:53:34+02:00 # FIXME?
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 15
|
qt: 15
|
||||||
name: crêpes (3-4 personnes)
|
name: crêpes (3-4 personnes)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Salade lentilles et patates sautées
|
title: Salade lentilles et patates sautées
|
||||||
date: 2020-03-10T22:02:40+01:00
|
date: 2020-03-10T22:02:40+01:00
|
||||||
veganness: veganisable
|
veganness: veganisable
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 2
|
qt: 2
|
||||||
ingredients:
|
ingredients:
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: "Pavés de semoule grillés"
|
title: "Pavés de semoule grillés"
|
||||||
date: 2019-12-30T19:00:31+01:00 # FIXME?
|
date: 2019-12-30T19:00:31+01:00 # FIXME?
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
portions:
|
portions:
|
||||||
qt: 4
|
qt: 4
|
||||||
ingredients:
|
ingredients:
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Sauce béchamel
|
title: Sauce béchamel
|
||||||
date: 2019-05-16
|
date: 2019-05-16
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
ingredients:
|
ingredients:
|
||||||
- name: beurre
|
- name: beurre
|
||||||
qt: 50g
|
qt: 50g
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Rouille (au jaune d'œuf)
|
title: Rouille (au jaune d'œuf)
|
||||||
date: 2020-03-19
|
date: 2020-03-19
|
||||||
veganness: vege
|
veganness: vege
|
||||||
|
quality: true
|
||||||
ingredients:
|
ingredients:
|
||||||
- qt: 1
|
- qt: 1
|
||||||
name: jaune d'œuf
|
name: jaune d'œuf
|
||||||
|
|
6
layouts/partials/quality_badge.html
Normal file
6
layouts/partials/quality_badge.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{{- if . -}}
|
||||||
|
<span class="badge badge-quality"
|
||||||
|
title="Recette bien rodée">
|
||||||
|
<i class="fa fa-star" aria-hidden="true"></i>
|
||||||
|
</span>
|
||||||
|
{{- end -}}
|
|
@ -3,20 +3,13 @@
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
<span class="badges">
|
<span class="badges">
|
||||||
{{ with .Params.veganness }}
|
{{ with .Params.veganness }}
|
||||||
<span
|
{{- partial "veganness_badge.html" . -}}
|
||||||
class="badge badge-veganness badge-veganness-{{ . }}"
|
|
||||||
title="{{ partial "humanize_veganness.html" . }}"
|
|
||||||
>v</span>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.season }}
|
{{ with .Params.season }}
|
||||||
<span
|
{{- partial "season_badge.html" . -}}
|
||||||
class="badge badge-season badge-season-{{ . }}"
|
{{ end }}
|
||||||
title="{{ partial "humanize_season.html" . }}"
|
{{ with .Params.quality }}
|
||||||
>
|
{{- partial "quality_badge.html" . -}}
|
||||||
{{- if . | eq "summer" -}}✿
|
|
||||||
{{- else if . | eq "winter" -}}<i class="fa fa-snowflake-o" aria-hidden="true"></i>
|
|
||||||
{{- end -}}
|
|
||||||
</span>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
6
layouts/partials/season_badge.html
Normal file
6
layouts/partials/season_badge.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<span class="badge badge-season badge-season-{{ . }}"
|
||||||
|
title="{{ partial "humanize_season.html" . }}">
|
||||||
|
{{- if . | eq "summer" -}}✿
|
||||||
|
{{- else if . | eq "winter" -}}<i class="fa fa-snowflake-o" aria-hidden="true"></i>
|
||||||
|
{{- end -}}
|
||||||
|
</span>
|
3
layouts/partials/veganness_badge.html
Normal file
3
layouts/partials/veganness_badge.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<span class="badge badge-veganness badge-veganness-{{ . }}"
|
||||||
|
title="{{ partial "humanize_veganness.html" . }}"
|
||||||
|
>v</span>
|
|
@ -22,6 +22,12 @@
|
||||||
{{ partial "humanize_season.html" . }}
|
{{ partial "humanize_season.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .Params.quality }}{{ if . }}
|
||||||
|
<div class="headbadge headbadge-quality">
|
||||||
|
Bien rodée
|
||||||
|
</div>
|
||||||
|
{{ end }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
1
layouts/shortcodes/partial1.html
Normal file
1
layouts/shortcodes/partial1.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{- partial (.Get 0) (.Get 1) -}}
|
|
@ -25,6 +25,9 @@ $veganness_vege_color: #ce8649;
|
||||||
$season_winter_color: #02bace;
|
$season_winter_color: #02bace;
|
||||||
$season_summer_color: #ff3838;
|
$season_summer_color: #ff3838;
|
||||||
|
|
||||||
|
// Quality recipe
|
||||||
|
$quality_recipe_color: #ffee00;
|
||||||
|
|
||||||
// Responsiveness
|
// Responsiveness
|
||||||
$width_xlarge: 1250px;
|
$width_xlarge: 1250px;
|
||||||
$width_large: 1000px;
|
$width_large: 1000px;
|
||||||
|
|
|
@ -249,6 +249,11 @@ ul {
|
||||||
color: $season_summer_color;
|
color: $season_summer_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-quality {
|
||||||
|
border-color: $quality_recipe_color;
|
||||||
|
color: $quality_recipe_color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.badges {
|
.badges {
|
||||||
|
@ -293,4 +298,9 @@ ul {
|
||||||
color: $season_summer_color;
|
color: $season_summer_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-quality {
|
||||||
|
border-color: $quality_recipe_color;
|
||||||
|
color: $quality_recipe_color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,6 +177,9 @@ ul {
|
||||||
.headbadge-season-summer {
|
.headbadge-season-summer {
|
||||||
border-color: #ff3838;
|
border-color: #ff3838;
|
||||||
color: #ff3838; }
|
color: #ff3838; }
|
||||||
|
.headbadge-quality {
|
||||||
|
border-color: #ffee00;
|
||||||
|
color: #ffee00; }
|
||||||
|
|
||||||
.badges {
|
.badges {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -208,3 +211,6 @@ ul {
|
||||||
.badge-season-summer {
|
.badge-season-summer {
|
||||||
border-color: #ff3838;
|
border-color: #ff3838;
|
||||||
color: #ff3838; }
|
color: #ff3838; }
|
||||||
|
.badge-quality {
|
||||||
|
border-color: #ffee00;
|
||||||
|
color: #ffee00; }
|
||||||
|
|
Loading…
Reference in a new issue