1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<!DOCTYPE html> <html> {{ template "head.html" }} <body> <header> <nav> <a href="./add_recipes">add recipe</a> </nav> <h1>Recipes</h1> </header> <main> <p>Here are the available recipes 😋🍳🍔🍕🥘</p> <ul>{{range .}} <li><a href="./recipe?id={{.Id}}">{{.Title}}</a></li>{{end}} </ul> {{ template "footer.html" }} </main> </body> </html>