diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-07-28 12:54:40 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-07-28 12:54:40 -0400 |
| commit | 03860ebc2e0624ecd0cf094498ac3bfc2df18183 (patch) | |
| tree | 6c4176402df1d218e8f03a4741bc0b164bee7111 /templates | |
| parent | eca1cae812ba2b5ff84a9770c4b3bda84cc27fea (diff) | |
[kona-web] Implement infinite scroll.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.hbs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/index.hbs b/templates/index.hbs index db2202d..9f85a85 100644 --- a/templates/index.hbs +++ b/templates/index.hbs @@ -9,9 +9,13 @@ <header> <h1><a href="/">Kona</a></h1> </header> - <main> + <main id="main"> {{#each images}} - <a href="/posts/{{ id }}"><img src="/image/{{thumb_filename}}"></a> + <div id="image-{{ id }}" class="image-container"> + <a href="/posts/{{ id }}"> + <img src="/image/{{thumb_filename}}"> + </a> + </div> {{/each}} {{#if next_page}} <p><a href="{{next_page}}">next</a></p> @@ -35,5 +39,6 @@ </ul> </section> </aside> + <script src="/public/js/infinite_scroll.js"></script> </body> </html> |