summaryrefslogtreecommitdiff
path: root/templates/index.hbs
blob: f0d6d916337e9458c35e8ffc22f955a09b0390bd (plain)
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
29
30
31
32
33
34
35
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>