From 65ae4de62d512f6f21fe7069f0e30f050d74faf1 Mon Sep 17 00:00:00 2001 From: nsosnsos Date: Wed, 24 Jul 2024 19:55:16 +0800 Subject: [PATCH] FEAT: REMOVED TIMELINE END TAG removed end tag for timeline articles, medias, and search results. --- hallelujah/templates/main/articles.html | 2 +- hallelujah/templates/main/medias.html | 2 +- hallelujah/templates/main/search.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hallelujah/templates/main/articles.html b/hallelujah/templates/main/articles.html index a9c4d37..f870b3b 100644 --- a/hallelujah/templates/main/articles.html +++ b/hallelujah/templates/main/articles.html @@ -58,7 +58,7 @@ function load_data(fetch_url) { fetch(fetch_url).then(response => response.json()).then(data => { if (!data.length || data.length < limit) { - sentinel.innerHTML = '
No more articles.
'; + sentinel.innerHTML = ''; intersectionObserver.unobserve(sentinel); } for (var index = 0; index < data.length; index++) { diff --git a/hallelujah/templates/main/medias.html b/hallelujah/templates/main/medias.html index d22decd..4081dab 100644 --- a/hallelujah/templates/main/medias.html +++ b/hallelujah/templates/main/medias.html @@ -188,7 +188,7 @@ function load_data(fetch_url) { fetch(fetch_url).then(response => response.json()).then(data => { if (!data.length || data.length < limit) { - sentinel.innerHTML = '
No more medias.
'; + sentinel.innerHTML = ''; intersectionObserver.unobserve(sentinel); } for (var index = 0; index < data.length; index++) { diff --git a/hallelujah/templates/main/search.html b/hallelujah/templates/main/search.html index 03e154c..7f8072e 100644 --- a/hallelujah/templates/main/search.html +++ b/hallelujah/templates/main/search.html @@ -44,7 +44,7 @@
"{{ ' '.join(keywords.split('+')) }}"
function load_data(fetch_url) { fetch(fetch_url).then(response => response.json()).then(data => { if (!data.length || data.length < limit) { - sentinel.innerHTML = '
No more articles.
'; + sentinel.innerHTML = ''; intersectionObserver.unobserve(sentinel); } for (var index = 0; index < data.length; index++) {