@Model.Description
@* Temporarily disabled for main page performance
@if (Model.RecipeImage?.ImageData != null)
{
}
*@
@if (!string.IsNullOrEmpty(Model.Difficulty))
{
Difficulty: @Model.Difficulty
}
@if (!string.IsNullOrEmpty(Model.Time))
{
Time: @Model.Time
}
@if (Model.RecipeIngredients.Any())
{
Ingredients
@foreach (var recipeIngredient in Model.RecipeIngredients.Where(ri => ri.Ingredient?.Name != null).OrderBy(ri =>
ri.Ingredient!.Name))
{
-
@if (!string.IsNullOrEmpty(recipeIngredient.Amount))
{
@recipeIngredient.Amount
}
@if (!string.IsNullOrEmpty(recipeIngredient.Measurement))
{
@recipeIngredient.Measurement
}
@recipeIngredient.Ingredient?.Name
}
}
@if (Model.RecipeSteps.Any())
{
Instructions
@foreach (var step in Model.RecipeSteps.OrderBy(s => s.StepNumber))
{
-
@step.Text
}
}
@if (!string.IsNullOrEmpty(Model.Url))
{
}