diff options
Diffstat (limited to 'templates/index.hbs')
| -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> |