diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.hbs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/index.hbs b/templates/index.hbs new file mode 100644 index 0000000..f0d6d91 --- /dev/null +++ b/templates/index.hbs @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> +<head> + <title>Hello, world!</title> + <link rel="stylesheet" type="text/css" href="/public/css/style.css"> + <meta charset="UTF-8"> +</head> +<body> + <header> + <h1>бирка-тян</h1> + </header> + <main> + {{#each images}} + <img src="/image/{{thumb_filename}}"> + {{/each}} + </main> + <aside id="tag-view"> + <section id="search"> + <h2>Search</h2> + <form id="search-box" method="GET" action="/posts"> + <input id="tags" name="tags" type="text" autocomplete="off"> + <button id="search-box-submit" type="submit">Search</button> + </form> + </section> + + <section id="search"> + <h2>Tags</h2> + <ul> + {{#each tags}} + <li><a href="/posts?tags={{ name }}">{{ name }}</a> {{ count }}</li> + {{/each}} + </ul> + </section> + </aside> +</body> +</html> |