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
|
||||
semblaient en valoir le coup.
|
||||
|
||||
Les recettes ici sont toutes végétariennes, mais beaucoup d'entre elles sont
|
||||
véganes ou trivialement véganisables. J'indique dans tous les cas leur
|
||||
Les recettes ici sont toutes végétariennes {{< partial1 "veganness_badge"
|
||||
"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*.
|
||||
|
||||
Les recettes sont classées en vastes catégories de saison *été* ou *hiver*, ou
|
||||
bien aucune des deux si ça ne nécessite pas de produits qui dépendent de la
|
||||
saison.
|
||||
Les recettes sont classées en vastes catégories de saison *été* {{< partial1
|
||||
"season_badge" "summer" >}} ou *hiver* {{< partial1 "season_badge" "winter"
|
||||
>}}, 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
|
||||
date: 2020-03-20T22:24:57+01:00 # FIXME?
|
||||
veganness: veganisable
|
||||
quality: true
|
||||
portions:
|
||||
qt: 7
|
||||
name: pains
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Pain de mie
|
||||
date: 2020-05-17T19:02:21+02:00 # FIXME?
|
||||
veganness: veganisable
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1
|
||||
name: pain
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: "Gougères au comté"
|
||||
date: 2019-12-01T15:29:33+01:00
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 20
|
||||
name: gougères moyennes
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Ginger beer
|
||||
date: 2020-03-31T23:19:25+02:00
|
||||
veganness: vegan
|
||||
quality: true
|
||||
portions:
|
||||
qt: 2
|
||||
name: litres
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Caramel au beurre salé
|
||||
date: 2020-06-08T20:05:51+02:00 # FIXME?
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 6
|
||||
name: personnes (eg. dans des crêpes)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Crème pâtissière
|
||||
date: 2020-07-04T20:20:43+02:00 # FIXME?
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1L
|
||||
name: de lait
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Tartelettes abricots-romarin
|
||||
date: 2020-07-05T22:28:11+02:00
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 12
|
||||
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
|
||||
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.
|
||||
|
||||
**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
|
||||
veganness: vegan
|
||||
season: summer
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1
|
||||
name: plaque 30x40cm
|
||||
|
|
|
@ -3,6 +3,7 @@ title: Pizza (base crème) patates et poireaux
|
|||
date: 2020-03-19T16:23:54+01:00
|
||||
veganness: vege
|
||||
season: winter
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1
|
||||
name: plaque 30x40cm
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: "Pâte à pizza"
|
||||
date: 2020-03-19T15:38:26+01:00
|
||||
veganness: vegan
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1
|
||||
name: plaque 30x40 cm
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Pizza tomates séchées et parmesan
|
||||
date: 2020-03-19T16:15:15+01:00
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1
|
||||
name: plaque 30x40cm
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Base de cake canonique
|
||||
date: 2018-10-03
|
||||
veganness: vege
|
||||
quality: true
|
||||
ingredients:
|
||||
- name: farine
|
||||
article: de
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Frites
|
||||
date: 2020-03-31T22:53:32+02:00
|
||||
veganness: vegan
|
||||
quality: true
|
||||
portions:
|
||||
qt: 3
|
||||
ingredients:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: "Muffins tomates séchées et parmesan"
|
||||
date: 2019-08-04T17:26:01+02:00
|
||||
veganness: "vege"
|
||||
quality: true
|
||||
portions:
|
||||
qt: 16
|
||||
name: muffins (env.)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Patates sautées
|
||||
date: 2020-01-09T00:27:04+01:00 # FIXME?
|
||||
veganness: vegan
|
||||
quality: true
|
||||
portions:
|
||||
qt: 1
|
||||
name: personne
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Pâte à crêpes
|
||||
date: 2020-06-08T22:53:34+02:00 # FIXME?
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 15
|
||||
name: crêpes (3-4 personnes)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Salade lentilles et patates sautées
|
||||
date: 2020-03-10T22:02:40+01:00
|
||||
veganness: veganisable
|
||||
quality: true
|
||||
portions:
|
||||
qt: 2
|
||||
ingredients:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: "Pavés de semoule grillés"
|
||||
date: 2019-12-30T19:00:31+01:00 # FIXME?
|
||||
veganness: vege
|
||||
quality: true
|
||||
portions:
|
||||
qt: 4
|
||||
ingredients:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Sauce béchamel
|
||||
date: 2019-05-16
|
||||
veganness: vege
|
||||
quality: true
|
||||
ingredients:
|
||||
- name: beurre
|
||||
qt: 50g
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
title: Rouille (au jaune d'œuf)
|
||||
date: 2020-03-19
|
||||
veganness: vege
|
||||
quality: true
|
||||
ingredients:
|
||||
- qt: 1
|
||||
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 }}
|
||||
<span class="badges">
|
||||
{{ with .Params.veganness }}
|
||||
<span
|
||||
class="badge badge-veganness badge-veganness-{{ . }}"
|
||||
title="{{ partial "humanize_veganness.html" . }}"
|
||||
>v</span>
|
||||
{{- partial "veganness_badge.html" . -}}
|
||||
{{ end }}
|
||||
{{ with .Params.season }}
|
||||
<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>
|
||||
{{- partial "season_badge.html" . -}}
|
||||
{{ end }}
|
||||
{{ with .Params.quality }}
|
||||
{{- partial "quality_badge.html" . -}}
|
||||
{{ end }}
|
||||
</span>
|
||||
</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" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.quality }}{{ if . }}
|
||||
<div class="headbadge headbadge-quality">
|
||||
Bien rodée
|
||||
</div>
|
||||
{{ end }}{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ 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_summer_color: #ff3838;
|
||||
|
||||
// Quality recipe
|
||||
$quality_recipe_color: #ffee00;
|
||||
|
||||
// Responsiveness
|
||||
$width_xlarge: 1250px;
|
||||
$width_large: 1000px;
|
||||
|
|
|
@ -249,6 +249,11 @@ ul {
|
|||
color: $season_summer_color;
|
||||
}
|
||||
}
|
||||
|
||||
&-quality {
|
||||
border-color: $quality_recipe_color;
|
||||
color: $quality_recipe_color;
|
||||
}
|
||||
}
|
||||
|
||||
.badges {
|
||||
|
@ -293,4 +298,9 @@ ul {
|
|||
color: $season_summer_color;
|
||||
}
|
||||
}
|
||||
|
||||
&-quality {
|
||||
border-color: $quality_recipe_color;
|
||||
color: $quality_recipe_color;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -177,6 +177,9 @@ ul {
|
|||
.headbadge-season-summer {
|
||||
border-color: #ff3838;
|
||||
color: #ff3838; }
|
||||
.headbadge-quality {
|
||||
border-color: #ffee00;
|
||||
color: #ffee00; }
|
||||
|
||||
.badges {
|
||||
display: inline-block;
|
||||
|
@ -208,3 +211,6 @@ ul {
|
|||
.badge-season-summer {
|
||||
border-color: #ff3838;
|
||||
color: #ff3838; }
|
||||
.badge-quality {
|
||||
border-color: #ffee00;
|
||||
color: #ffee00; }
|
||||
|
|
Loading…
Reference in a new issue