summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2020-05-26 19:46:20 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2020-05-26 19:46:20 -0400
commit433c5fa1c56bee5a9032380a3c9a339869a47d16 (patch)
treec6ed8b5722b969abbf3239450466d4933dac039d /templates
parenta932889c9a01537a53e9c587e13e25843744b6f0 (diff)
Implement initial templating.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.hbs36
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>