summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 52c633f..cb0e1fc 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -38,10 +38,10 @@
{% endif %}
{% if films %}
- <section class="diary-feed" aria-label="Diary entries">
+ <section class="diary-feed" id="film-feed" aria-label="Diary entries">
{% if active_shelf == 'diary' and grouped_films %}
{% for group in grouped_films %}
- <div class="month-group">
+ <div class="month-group" data-month="{{ group.month }}">
<p class="month-label">{{ group.month }}</p>
{% for film in group.films %}
{% include "_film_card.html" %}
@@ -54,6 +54,9 @@
{% endfor %}
{% endif %}
</section>
+ {% if has_more %}
+ <div id="feed-sentinel" data-shelf="{{ active_shelf }}" data-offset="20" data-total="{{ total_films }}" style="height: 1px; margin: 20px 0;"></div>
+ {% endif %}
{% else %}
<section class="empty-state">
<h2>{{ shelf_meta.empty_title }}</h2>