mirror of
https://github.com/georgemandis/bubo-rss.git
synced 2024-11-05 04:04:23 +00:00
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;
|
||||
});
|
||||
|
||||
const buildDate = new Date();
|
||||
env.addGlobal('now', `${buildDate.toLocaleDateString()} ${buildDate.toLocaleTimeString()}` );
|
||||
|
||||
// parse XML or JSON feeds
|
||||
function parseFeed(response) {
|
||||
const contentType = response.headers.get("content-type")
|
||||
|
@ -39,5 +39,10 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% 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>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user