forked from notBrad/bubo-rss
Added 'last updated' timestamp info
This commit is contained in:
parent
859a1ea212
commit
a3a4685819
@ -20,6 +20,9 @@ env.addFilter("formatDate", function(dateString) {
|
|||||||
return formattedDate !== 'Invalid Date' ? formattedDate : dateString;
|
return formattedDate !== 'Invalid Date' ? formattedDate : dateString;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const buildDate = new Date();
|
||||||
|
env.addGlobal('now', `${buildDate.toLocaleDateString()} ${buildDate.toLocaleTimeString()}` );
|
||||||
|
|
||||||
// parse XML or JSON feeds
|
// parse XML or JSON feeds
|
||||||
function parseFeed(response) {
|
function parseFeed(response) {
|
||||||
const contentType = response.headers.get("content-type")
|
const contentType = response.headers.get("content-type")
|
||||||
|
@ -39,5 +39,10 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<p>
|
||||||
|
Last updated {{ now }}. Powered by <a href="https://github.com/georgemandis/bubo-rss">Bubo Reader</a>, a project by <a href="https://george.mand.is">George Mandis</a>
|
||||||
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user