Generate an index of the recipes
This commit is contained in:
parent
482859f212
commit
055358f2db
5 changed files with 42 additions and 3 deletions
21
templates/index.html.tmpl
Normal file
21
templates/index.html.tmpl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{.title}}</title>
|
||||
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
|
||||
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{.title}}</h1>
|
||||
|
||||
{{if ne (len .recipes) 0}}
|
||||
<ul>
|
||||
{{range .recipes}}
|
||||
<li><a href="{{.Path}}">{{.Name}}</a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
</body>
|
||||
</html>
|
|
@ -10,7 +10,7 @@ body {
|
|||
|
||||
.cookware {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
color: brown;
|
||||
}
|
||||
|
||||
.timer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue