package templates import ( "fmt" domain "github.com/haydenhargreaves/Potion/internal/domain/recipe" domainServer "github.com/haydenhargreaves/Potion/internal/domain/server" domainUser "github.com/haydenhargreaves/Potion/internal/domain/user" "github.com/haydenhargreaves/Potion/internal/templates/components" "time" ) templ servingIcon() { } templ timeIcon() { } templ starIcon(filled bool) { if filled { } else { } } templ metadataSection(recipe domain.Recipe) {
Prep: { recipe.Duration.Prep } min
Cook: { recipe.Duration.Cook } min
Beginner
case 2:Easy
case 3:Intermediate
case 4:Challenging
case 5:Extreme
}Serves { recipe.Serves }
Created: { created.Format("January 2, 2006") }
if modified != nil {Last Modified: { modified.Format("January 2, 2006") }
}{ content }
Author: { user.Name }
Category: { recipe.Category }
{ recipe.Description }